1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: USES=libtool, bump version.
3: use options helper.
4: remove uneeded pkg-plist entries.
This commit is contained in:
Vanilla I. Shu 2014-07-01 14:53:55 +00:00
parent 1e74c78060
commit 4f03e22963
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360025
2 changed files with 11 additions and 20 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= equinox
PORTVERSION= 1.50
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-themes
MASTER_SITES= http://gnome-look.org/CONTENT/content-files/
PKGNAMEPREFIX= gtk-
@ -18,7 +18,7 @@ BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-t
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-themes/gtk-engines2 \
${LOCALBASE}/share/icons/Faenza/index.theme:${PORTSDIR}/x11-themes/gnome-icons-faenza
USES= pkgconfig
USES= pkgconfig libtool
USE_GNOME= gtk20
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/equinox-${PORTVERSION}
@ -35,14 +35,10 @@ EXAMPLES= "Equinox Evolution.crx" "Equinox Evolution Dawn.crx" \
OPTIONS_DEFINE= ANIMATION EXAMPLES DOCS
OPTIONS_DEFAULT= ANIMATION
ANIMATION_DESC= Enable animation support
ANIMATION_CONFIGURE_ENABLE= animation
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MANIMATION}
CONFIGURE_ARGS+= --enable-animation
.endif
post-patch:
@${FIND} ${WRKDIR} -name 'gtkrc' -exec \
${REINPLACE_CMD} -e 's!^include "apps/nautilus\.rc"!#&!' {} +
@ -51,21 +47,21 @@ post-patch:
${WRKSRC}/src/animation.c
post-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
.for i in ${SUBDIRS}
${CP} -R ${WRKDIR}/${i} ${DATADIR}
${FIND} ${DATADIR}/${i} -type d -exec ${CHMOD} 755 {} +
${FIND} ${DATADIR}/${i} -type f -exec ${CHMOD} ${SHAREMODE} {} +
${CP} -R ${WRKDIR}/${i} ${STAGEDIR}${DATADIR}
${FIND} ${STAGEDIR}${DATADIR}/${i} -type d -exec ${CHMOD} 755 {} +
${FIND} ${STAGEDIR}${DATADIR}/${i} -type f -exec ${CHMOD} ${SHAREMODE} {} +
.endfor
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${EXAMPLES}
${INSTALL_DATA} ${WRKDIR}/$i ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/$i ${STAGEDIR}${EXAMPLESDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,3 @@
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libequinox.la
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libequinox.so
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Equinox Evolution.crx
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Equinox Evolution Dawn.crx
@ -239,10 +238,6 @@ lib/gtk-2.0/%%GTK2_VERSION%%/engines/libequinox.so
@dirrm %%DATADIR%%/Equinox Evolution/gtk-2.0/apps
@dirrm %%DATADIR%%/Equinox Evolution/gtk-2.0
@dirrm %%DATADIR%%/Equinox Evolution
@dirrmtry %%DATADIR%%
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry lib/gtk-2.0/%%GTK2_VERSION%%/engines
@dirrmtry lib/gtk-2.0/%%GTK2_VERSION%%
@dirrmtry lib/gtk-2.0