1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Support stage

Modernize
This commit is contained in:
Baptiste Daroussin 2014-04-22 06:01:14 +00:00
parent 0a872bc63e
commit dcca29aded
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351749
2 changed files with 17 additions and 32 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gnome-pie
PORTVERSION= 0.5.5
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= nivit@FreeBSD.org
@ -14,11 +14,11 @@ LICENSE= GPLv3
BUILD_DEPENDS= valac:${PORTSDIR}/lang/vala
RUN_DEPENDS= gnome-icons-faenza>=1.3:${PORTSDIR}/x11-themes/gnome-icons-faenza \
gnome-settings-daemon>=2.32.1_4:${PORTSDIR}/sysutils/gnome-settings-daemon
LIB_DEPENDS= Xtst:${PORTSDIR}/x11/libXtst \
cairo:${PORTSDIR}/graphics/cairo \
gee:${PORTSDIR}/devel/libgee06 \
unique:${PORTSDIR}/x11-toolkits/unique
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
libgee.so:${PORTSDIR}/devel/libgee06 \
libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique
USE_XORG= xtst
GH_ACCOUNT= Simmesimme
GH_PROJECT= Gnome-Pie
GH_COMMIT= 5ea8b11
@ -28,30 +28,14 @@ INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS MANPAGES NLS
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
NO_STAGE= yes
.include <bsd.port.options.mk>
DOCS_CMAKE_ON= -DINSTALL_DOCS:BOOL=ON
MANPAGES_CMAKE_OFF= -DNO_INSTALL_MANPAGES:BOOL=ON
.if ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=ON
.endif
.if ${PORT_OPTIONS:MMANPAGES}
MAN1= gnome-pie.1
.else
CMAKE_ARGS+= -DNO_INSTALL_MANPAGES:BOOL=ON
.endif
.if ${PORT_OPTIONS:MNLS}
CMAKE_ARGS+= -DINSTALL_NLS:BOOL=ON
USES+= gettext
PLIST_SUB= NLS=""
.else
CMAKE_ARGS+= -DINSTALL_NLS:BOOL=OFF
PLIST_SUB= NLS="@comment "
.endif
PLIST_SUB+= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}
NLS_CMAKE_ON= -DINSTALL_NLS:BOOL=ON
NLS_USES= gettext
NLS_CMAKE_OFF= -DINSTALL_NLS:BOOL=OFF
REINPLACE_ARGS= -e 's,%%DATADIR%%,${DATADIR},1' \
-e 's,%%DESKTOPDIR%%,${DESKTOPDIR},1' \
@ -71,9 +55,6 @@ post-patch:
${WRKSRC}/src/utilities/paths.vala \
${WRKSRC}/resources/ui/*.ui
post-install:
@${CAT} ${PKGMESSAGE}
gnome-pie-user:
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "Faenza"
gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true

View File

@ -1,6 +1,6 @@
@comment FreeBSD$
bin/gnome-pie
%%DESKTOPDIR%%/gnome-pie.desktop
%%MANPAGES%%man/man1/gnome-pie.1.gz
share/applications/gnome-pie.desktop
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%DATADIR%%/themes/adwaita/arrow.svg
%%DATADIR%%/themes/adwaita/caption_mask.svg
@ -95,4 +95,8 @@ share/icons/hicolor/scalable/apps/gnome-pie.svg
@dirrm %%DATADIR%%/themes/adwaita
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%
@dirrmtry share/icons/hicolor/scalable/apps
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
%%PORTDOCS%%@dirrm %%DOCSDIR%%