aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/gnome-icons/bsd.gnome-icons.mk
diff options
context:
space:
mode:
Diffstat (limited to 'x11-themes/gnome-icons/bsd.gnome-icons.mk')
-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/"{}" \;