diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-07 01:57:37 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-07 01:57:37 +0800 |
commit | 395939ccd5b2a6ba40f92188b884069fdec62c29 (patch) | |
tree | 850afd90f45b8593682e0b5894a7b03b2c410c78 /x11-themes | |
parent | ecdcaddf832b45f93f22fa2112f04eaf5ba8f9d5 (diff) | |
download | marcuscom-ports-395939ccd5b2a6ba40f92188b884069fdec62c29.tar.gz marcuscom-ports-395939ccd5b2a6ba40f92188b884069fdec62c29.tar.zst marcuscom-ports-395939ccd5b2a6ba40f92188b884069fdec62c29.zip |
dirrmtry share/themes...generate-plist stuff.
Reported by: pointyhat-exp
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9732 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-themes')
-rw-r--r-- | x11-themes/bluecurve-themes/Makefile | 105 | ||||
-rw-r--r-- | x11-themes/bluecurve-themes/bsd.bluecurve.mk | 5 | ||||
-rw-r--r-- | x11-themes/bluecurve-themes/distinfo | 3 | ||||
-rw-r--r-- | x11-themes/bluecurve-themes/pkg-descr | 16 | ||||
-rw-r--r-- | x11-themes/metacity-bluecurve-theme/Makefile | 2 |
5 files changed, 129 insertions, 2 deletions
diff --git a/x11-themes/bluecurve-themes/Makefile b/x11-themes/bluecurve-themes/Makefile new file mode 100644 index 000000000..3770ef888 --- /dev/null +++ b/x11-themes/bluecurve-themes/Makefile @@ -0,0 +1,105 @@ +# New ports collection makefile for: bluecurve-themes +# Date created: 29 May 2005 +# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org> +# +# $FreeBSD$ +# + +# NOTE TO VISITING COMMITTER: if you need to bump the port revisions +# of the slave ports, you should add PORTREVISION?= to the "master +# port" section below. + +PORTNAME?= bluecurve-themes +CATEGORIES= x11-themes + +MAINTAINER= jylefort@FreeBSD.org +COMMENT?= Meta-port for Bluecurve themes + +.if ${PORTNAME} == "bluecurve-themes" # meta-port + +PORTVERSION= 1.0 +# PORTREVISION is useless for a meta-port, but it was incorrectly +# added to the global section by someone (with the intent of bumping +# the revisions of the slave ports) and it cannot be removed without +# causing a version downgrade or using PORTEPOCH. +PORTREVISION= 4 +MASTER_SITES= # empty +DISTFILES= # empty +EXTRACT_ONLY= # empty + +# note: gtk-/icon-/metacity- are brought in by gnome- +RUN_DEPENDS= ${X11BASE}/lib/X11/icons/Bluecurve/cursors/X_cursor:${PORTSDIR}/x11-themes/cursor-bluecurve-theme \ + ${LOCALBASE}/share/themes/Bluecurve/index.theme:${PORTSDIR}/x11-themes/gnome-bluecurve-theme \ + ${LINUXBASE}/usr/share/themes/Bluecurve/gtk-2.0/gtkrc:${PORTSDIR}/x11-themes/linux-gtk-bluecurve-theme \ + ${X11BASE}/lib/plugins/styles/bluecurve.so:${PORTSDIR}/x11-themes/qt-bluecurve-theme \ + ${X11BASE}/share/xmms/Skins/Bluecurve-xmms.zip:${PORTSDIR}/x11-themes/xmms-bluecurve-theme + +NO_BUILD= yes + +do-install: # empty + +.else # master port + +PORTVERSION= 5.0.11 +PORTREVISION= 2 +CATEGORIES= x11-themes +MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX:S|$|:fedora|} ${MASTER_SITE_LOCAL:S|$|:local|} +MASTER_SITE_SUBDIR= development/source/SRPMS/:fedora jylefort/:local +DISTFILES= redhat-artwork-${PORTVERSION}-1.fc7.src.rpm:fedora,local + +EXTRACT_DEPENDS+= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio + +WRKSRC= ${WRKDIR}/redhat-artwork-${PORTVERSION} + +# the slave ports use their own pkg files and dirs +DESCR?= ${.CURDIR}/pkg-descr +PLIST?= ${.CURDIR}/pkg-plist +FILESDIR= ${.CURDIR}/files +SCRIPTDIR= ${.CURDIR}/scripts + +do-extract: + @${MKDIR} ${WRKDIR} + @cd ${WRKDIR} && \ + rpm2cpio.pl ${_DISTDIR}/${_DISTFILES} | ${CPIO} -id --quiet && \ + ${TAR} -zxf redhat-artwork-${PORTVERSION}.tar.gz + +.if defined(BC_HIERS) + +PLIST= ${WRKDIR}/pkg-plist + +pre-install: bc-generate-plist + +bc-generate-plist: + @${RM} -f ${PLIST} + @for h in ${BC_HIERS}; do \ + src=`${ECHO_CMD} "$$h" | ${CUT} -f 1 -d ':'` && \ + dst_rel=`${ECHO_CMD} "$$h" | ${CUT} -f 2 -d ':' | ${SED} -e 's|^${PREFIX}/||'` && \ + cd "$$src" && \ + ${FIND} * ! -type d | ${SORT} \ + | ${SED} -e "s|^|$$dst_rel/|" >> ${PLIST} && \ + ${FIND} * -type d ! -empty | ${SORT} -r \ + | ${SED} -e "s|^|@dirrm $$dst_rel/|" >> ${PLIST}; \ + done + @${ECHO_CMD} "@dirrmtry share/themes" >> ${PLIST} + + +do-install: + for h in ${BC_HIERS}; do \ + src=`${ECHO_CMD} "$$h" | ${CUT} -f 1 -d ':'` && \ + dst=`${ECHO_CMD} "$$h" | ${CUT} -f 2 -d ':'` && \ + ${MKDIR} "$$dst" && cd "$$src" && \ + ${FIND} * -type d ! -empty -exec \ + ${MKDIR} "$$dst/{}" \; && \ + ${FIND} * -type l -exec \ + ${CP} -Rf "{}" "$$dst/{}" \; && \ + ${FIND} * ! -type d ! -type l -exec \ + ${INSTALL_DATA} "{}" "$$dst/{}" \; ; \ + done + +.endif # BC_HIERS + +.endif # master port + +.if !defined(_BC_MK_INCLUDED) +.include <bsd.port.mk> +.endif diff --git a/x11-themes/bluecurve-themes/bsd.bluecurve.mk b/x11-themes/bluecurve-themes/bsd.bluecurve.mk new file mode 100644 index 000000000..e59b03257 --- /dev/null +++ b/x11-themes/bluecurve-themes/bsd.bluecurve.mk @@ -0,0 +1,5 @@ +# $FreeBSD$ + +_BC_MK_INCLUDED= yes + +.include "${MASTERDIR}/Makefile" diff --git a/x11-themes/bluecurve-themes/distinfo b/x11-themes/bluecurve-themes/distinfo new file mode 100644 index 000000000..15438b90f --- /dev/null +++ b/x11-themes/bluecurve-themes/distinfo @@ -0,0 +1,3 @@ +MD5 (redhat-artwork-5.0.11-1.fc7.src.rpm) = fe71858a6a24b93392a6610a3dae7889 +SHA256 (redhat-artwork-5.0.11-1.fc7.src.rpm) = 82493092994c9c05afa1022061a0d454e4e17ed60b180dde08eb7a0853a5d838 +SIZE (redhat-artwork-5.0.11-1.fc7.src.rpm) = 9155581 diff --git a/x11-themes/bluecurve-themes/pkg-descr b/x11-themes/bluecurve-themes/pkg-descr new file mode 100644 index 000000000..314299a66 --- /dev/null +++ b/x11-themes/bluecurve-themes/pkg-descr @@ -0,0 +1,16 @@ +Bluecurve is a set of themes created by the Red Hat Artwork project. +It attempts to provide an unified look for the open source desktop. + +This meta-port installs all the Bluecurve ports, namely: + + - the GTK+ themes (native and Linux versions) + - the QT theme + - the Metacity themes + - the icon set + - the X cursor themes + - the XMMS skin + +WWW: http://fedoraproject.org/wiki/Artwork/ + +- Jean-Yves Lefort +jylefort@FreeBSD.org diff --git a/x11-themes/metacity-bluecurve-theme/Makefile b/x11-themes/metacity-bluecurve-theme/Makefile index faed93878..8f9d7738e 100644 --- a/x11-themes/metacity-bluecurve-theme/Makefile +++ b/x11-themes/metacity-bluecurve-theme/Makefile @@ -7,8 +7,6 @@ PORTNAME= metacity-bluecurve-theme -PORTREVISION= 1 - COMMENT= The Bluecurve Metacity themes MASTERDIR= ${.CURDIR}/../bluecurve-themes |