diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-18 21:15:36 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-18 21:15:36 +0800 |
commit | 26017c4eb75ae4522abc3ca4d4752bcd9bbf30bf (patch) | |
tree | 039531f8f8941539bdeaf2407d5748b313875c5e /deskutils | |
parent | 8cc5659c7e81ab58fa33482e6729ce301c55a069 (diff) | |
download | freebsd-ports-gnome-26017c4eb75ae4522abc3ca4d4752bcd9bbf30bf.tar.gz freebsd-ports-gnome-26017c4eb75ae4522abc3ca4d4752bcd9bbf30bf.tar.zst freebsd-ports-gnome-26017c4eb75ae4522abc3ca4d4752bcd9bbf30bf.zip |
- Add LICENSE_FILE
- Switch to USES=localbase
- Simplify installation
- Switch to options helpers
- Fix plist for disabled NLS case
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/rubrica/Makefile | 28 | ||||
-rw-r--r-- | deskutils/rubrica/pkg-plist | 10 |
2 files changed, 13 insertions, 25 deletions
diff --git a/deskutils/rubrica/Makefile b/deskutils/rubrica/Makefile index a0f3555a71c5..3cbcf18368e0 100644 --- a/deskutils/rubrica/Makefile +++ b/deskutils/rubrica/Makefile @@ -11,11 +11,12 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Addressbook for the GNOME 2 desktop LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libnotify.so:devel/libnotify RUN_DEPENDS= gnome-icon-theme>=0:misc/gnome-icon-theme -USES= desktop-file-utils gmake libtool pathfix pkgconfig tar:bzip2 +USES= desktop-file-utils gmake libtool localbase pathfix pkgconfig tar:bzip2 GNU_CONFIGURE= yes USE_GNOME= gconf2 gnomeprefix libglade2 intltool USE_LDCONFIG= yes @@ -23,29 +24,16 @@ MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP} GCONF_SCHEMAS= rubrica2.schemas -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -LIBS+= `pkg-config` LIBS+= -lm -lgthread-2.0 PORTDOCS= * -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= CREDITS ChangeLog - -DOCSRCDIR2= ${WRKSRC}/doc/reference/html -DOCSDIR2= ${DOCSDIR}/doc/libRAL -DOC_FILES2= *.* - OPTIONS_DEFINE= DOCS NLS - OPTIONS_SUB= yes NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext -.include <bsd.port.options.mk> - post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|-Wall -g|-Wall|g ; \ @@ -54,20 +42,20 @@ post-patch: @${REINPLACE_CMD} -e 's|_Modifica|_Edit|' \ -e 's|A_iuto|_Help|' \ ${WRKSRC}/interface/MainWindow.glade - ${REINPLACE_CMD} -e \ + @${REINPLACE_CMD} -e \ 's|^Categories=.*|Categories=GNOME;Application;Office;System;Utility;|' \ ${WRKSRC}/rubrica2.desktop.in -.if ! ${PORT_OPTIONS:MNLS} +post-patch-NLS-off: @${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in -.endif post-install: @${LN} -sf ${LOCALBASE}/share/icons/gnome \ ${STAGEDIR}${PREFIX}/share/pixmaps/rubrica2/22x22/hicolor - @${MKDIR} ${STAGEDIR}${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CREDITS ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc/reference/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/libRAL-reference .include <bsd.port.mk> diff --git a/deskutils/rubrica/pkg-plist b/deskutils/rubrica/pkg-plist index b41edd5a0876..5d67ad283274 100644 --- a/deskutils/rubrica/pkg-plist +++ b/deskutils/rubrica/pkg-plist @@ -46,11 +46,11 @@ lib/libral/plugins/libvcard.so.1 lib/libral/plugins/libvcard.so.1.0.1 libdata/pkgconfig/libral.pc share/applications/rubrica2.desktop -share/locale/de/LC_MESSAGES/rubrica2.mo -share/locale/fr/LC_MESSAGES/rubrica2.mo -share/locale/it/LC_MESSAGES/rubrica2.mo -share/locale/ru/LC_MESSAGES/rubrica2.mo -share/locale/uk/LC_MESSAGES/rubrica2.mo +%%NLS%%share/locale/de/LC_MESSAGES/rubrica2.mo +%%NLS%%share/locale/fr/LC_MESSAGES/rubrica2.mo +%%NLS%%share/locale/it/LC_MESSAGES/rubrica2.mo +%%NLS%%share/locale/ru/LC_MESSAGES/rubrica2.mo +%%NLS%%share/locale/uk/LC_MESSAGES/rubrica2.mo share/mime-info/rubrica2.keys share/mime-info/rubrica2.mime share/pixmaps/rubrica2/16x16/ccare.png |