mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Create an empty database in X11BASE
This is not strictly needed, and it violates a "stay in prefix" rule, but it's necessary to avoid pointyhat from reporting leftover files in ports which actually do create mime database in X11BASE, for example, comms/xlog. - Change @cwd+%D to %%X11BASE%%, there are no files listed after @cwd anymore.
This commit is contained in:
parent
2be100a16c
commit
e2021ef6a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125560
@ -6,7 +6,7 @@
|
||||
|
||||
PORTNAME= shared-mime-info
|
||||
PORTVERSION= 0.15
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= misc gnome
|
||||
MASTER_SITES= http://www.marcuscom.com/downloads/ \
|
||||
http://www.freedesktop.org/software/shared-mime-info/
|
||||
@ -36,6 +36,9 @@ post-patch:
|
||||
s|%%X11BASE%%|${X11BASE}|g' \
|
||||
${WRKSRC}/update-mime-database.c
|
||||
|
||||
pre-su-install:
|
||||
${MKDIR} ${X11BASE}/share/mime/packages
|
||||
|
||||
post-install:
|
||||
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
|
||||
s|%%MIMEDIRS%%|${MIMEDIRS}|' \
|
||||
|
@ -1,3 +1,4 @@
|
||||
@exec mkdir -p %%X11BASE%%/share/mime/packages
|
||||
bin/update-mime-database
|
||||
libdata/pkgconfig/shared-mime-info.pc
|
||||
@unexec [ -f %D/share/mime/XMLnamespaces ] && rm -f %D/share/mime/XMLnamespaces || true
|
||||
@ -398,18 +399,17 @@ share/mime/video/x-sgi-movie.xml
|
||||
@unexec rmdir %D/share/mime/audio 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/application 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime 2>/dev/null || true
|
||||
@cwd %%X11BASE%%
|
||||
@unexec [ -f %D/share/mime/XMLnamespaces ] && rm -f %D/share/mime/XMLnamespaces || true
|
||||
@unexec [ -f %D/share/mime/globs ] && rm -f %D/share/mime/globs || true
|
||||
@unexec [ -f %D/share/mime/magic ] && rm -f %D/share/mime/magic || true
|
||||
@unexec rmdir %D/share/mime/video 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/text 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/packages 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/multipart 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/model 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/message 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/inode 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/image 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/audio 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime/application 2>/dev/null || true
|
||||
@unexec rmdir %D/share/mime 2>/dev/null || true
|
||||
@unexec [ -f %%X11BASE%%/share/mime/XMLnamespaces ] && rm -f %%X11BASE%%/share/mime/XMLnamespaces || true
|
||||
@unexec [ -f %%X11BASE%%/share/mime/globs ] && rm -f %%X11BASE%%/share/mime/globs || true
|
||||
@unexec [ -f %%X11BASE%%/share/mime/magic ] && rm -f %%X11BASE%%/share/mime/magic || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/video 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/text 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/packages 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/multipart 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/model 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/message 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/inode 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/image 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/audio 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime/application 2>/dev/null || true
|
||||
@unexec rmdir %%X11BASE%%/share/mime 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user