- Update WWW

- Fix LICENSE
- Add LICENSE_FILE
- Switch to USES=localbase
- Fix build with disabled NLS
- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-02-26 09:03:01 +00:00
parent 74c98f3a56
commit 3e3203b121
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463003
2 changed files with 9 additions and 12 deletions

View File

@ -5,21 +5,20 @@ PORTNAME= fpm2
PORTVERSION= 0.79 PORTVERSION= 0.79
PORTREVISION= 1 PORTREVISION= 1
CATEGORIES= security CATEGORIES= security
MASTER_SITES= http://als.regnet.cz/fpm2/download/ MASTER_SITES= https://als.regnet.cz/fpm2/download
MAINTAINER= nemysis@FreeBSD.org MAINTAINER= nemysis@FreeBSD.org
COMMENT= Program that allows you to securely store the passwords COMMENT= Program that allows you to securely store the passwords
LICENSE= GPLv2 LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser
USES= gmake pkgconfig tar:bzip2 USES= gmake localbase pkgconfig tar:bzip2
USE_GNOME= gtk20 intltool USE_GNOME= gtk20 intltool
INSTALLS_OMF= yes INSTALLS_OMF= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
PORTDOCS= AUTHORS ChangeLog README PORTDOCS= AUTHORS ChangeLog README
@ -29,9 +28,8 @@ OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes OPTIONS_SUB= yes
NLS_USES= gettext NLS_USES= gettext
NLS_USES_OFF= gettext-tools
.include <bsd.port.options.mk>
# Restrict to stable (even) versions, indicated by the second component. # Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limit:^0.7\..* PORTSCOUT= limit:^0.7\..*
@ -48,11 +46,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|gdk_pixbuf_unref|g_object_unref|g' \ @${REINPLACE_CMD} -e 's|gdk_pixbuf_unref|g_object_unref|g' \
${WRKSRC}/src/interface.c ${WRKSRC}/src/interface.c
.if ! ${PORT_OPTIONS:MNLS} post-patch-NLS-off:
@${REINPLACE_CMD} -e 's|USE_NLS=yes|USE_NLS=no|' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|USE_NLS=yes|USE_NLS=no|' ${WRKSRC}/configure
.endif
post-install: post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

View File

@ -15,4 +15,4 @@ passwords using GTK2 interface. Features include:
- Auto-minimise and/or auto-locking passwords database after configurable time - Auto-minimise and/or auto-locking passwords database after configurable time
to the tray icon. to the tray icon.
WWW: http://als.regnet.cz/fpm2/ WWW: https://als.regnet.cz/fpm2/