summaryrefslogtreecommitdiffstats
path: root/x11-themes/gnome-icons
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-11 22:01:59 +0000
committerpav <pav@FreeBSD.org>2004-08-11 22:01:59 +0000
commitb647d262f917c5e31823e2406a4eda96fa2ba651 (patch)
tree7e688c061802520aa7643f5a9fc0574ac7dd4e83 /x11-themes/gnome-icons
parent93704eb9970863c281752c05f582f5ca442af653 (diff)
downloadFreeBSD-ports-b647d262f917c5e31823e2406a4eda96fa2ba651.zip
FreeBSD-ports-b647d262f917c5e31823e2406a4eda96fa2ba651.tar.gz
- move MASTER_SITES to standalone ports
- autogenerate plists - tweak install a bit PR: ports/70285 Submitted by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> (maintainer)
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 51ffa02..4c3a7c4 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/"{}" \;
OpenPOWER on IntegriCloud