aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/gnome-icons
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-11 22:01:59 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-11 22:01:59 +0000
commitd2b5596b162b30bdfb3600d06efec20a6cd7748a (patch)
tree952d4cb772f8b48afb58d189040cb6d74b945308 /x11-themes/gnome-icons
parente13e1bfde9ec4ad9bad65ebc80e39c407c2a104f (diff)
downloadports-d2b5596b162b30bdfb3600d06efec20a6cd7748a.tar.gz
ports-d2b5596b162b30bdfb3600d06efec20a6cd7748a.zip
- move MASTER_SITES to standalone ports
- autogenerate plists - tweak install a bit PR: ports/70285 Submitted by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> (maintainer)
Notes
Notes: svn path=/head/; revision=115969
Diffstat (limited to 'x11-themes/gnome-icons')
-rw-r--r--x11-themes/gnome-icons/bsd.gnome-icons.mk25
1 files changed, 17 insertions, 8 deletions
diff --git a/x11-themes/gnome-icons/bsd.gnome-icons.mk b/x11-themes/gnome-icons/bsd.gnome-icons.mk
index 51ffa0244054..4c3a7c48ee6e 100644
--- a/x11-themes/gnome-icons/bsd.gnome-icons.mk
+++ b/x11-themes/gnome-icons/bsd.gnome-icons.mk
@@ -9,8 +9,6 @@
# lioux@.
PKGNAMEPREFIX= gnome-icons-
-MASTER_SITES?= ${MASTER_SITE_GNOME}
-MASTER_SITE_SUBDIR?= teams/art.gnome.org/themes/icon
NO_BUILD= yes
USE_SIZE= yes
@@ -19,12 +17,23 @@ REASON= Themes may contain artwork not done by the author. \
Keep FreeBSD safe if theme author violated copyrights.
USE_X_PREFIX= yes
+PLIST= ${WRKDIR}/plist
+
+pre-install:
+ @${RM} -rf ${PLIST}
+
+ @cd ${WRKDIR} && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \
+ ${SED} -i "" -e "s:^:share/icons/:" ${PLIST}; \
+ ${FIND} * -type d ! -empty | ${SORT} -r | \
+ ${SED} -e "s:^:@dirrm share/icons/:" | \
+ ${GREP} / >> ${PLIST}; \
+ ${ECHO} "@unexec /bin/rmdir %D/share/icons 2> /dev/null || \
+ /usr/bin/true" >> ${PLIST}
do-install:
- ${MKDIR} ${PREFIX}/share/icons/${PORTNAME}
- cd ${WRKSRC} && ${FIND} . -type d ! -empty \
+ cd ${WRKDIR} && ${FIND} * -type d ! -empty \
-exec ${MKDIR} -m 0755 \
- ${PREFIX}/share/icons/${PORTNAME}/"{}" \;
- cd ${WRKSRC} && ${FIND} . -type f \
- -exec ${INSTALL_DATA} ${WRKSRC}/"{}" \
- ${PREFIX}/share/icons/${PORTNAME}/"{}" \;
+ ${PREFIX}/share/icons/"{}" \;
+ cd ${WRKDIR} && ${FIND} * ! -type d ! -name 'plist' \
+ -exec ${INSTALL_DATA} ${WRKDIR}/"{}" \
+ ${PREFIX}/share/icons/"{}" \;