summaryrefslogtreecommitdiff
path: root/editors/gnotepad+
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-05 14:41:54 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-05 14:41:54 +0000
commitf46af2ee22afd3a62b612f25bf4fb9739120fd09 (patch)
tree44bd8eeff43815766d12e99b74460f8fee914806 /editors/gnotepad+
parent- Fix LOCALBASE misuse (diff)
- Fix LICENSE
- Add LICENSE_FILE - Switch to USES=localbase - Optionize NLS - Switch to options helpers
Notes
Notes: svn path=/head/; revision=433414
Diffstat (limited to 'editors/gnotepad+')
-rw-r--r--editors/gnotepad+/Makefile22
-rw-r--r--editors/gnotepad+/pkg-plist6
2 files changed, 12 insertions, 16 deletions
diff --git a/editors/gnotepad+/Makefile b/editors/gnotepad+/Makefile
index a20d7d9c4d89..72ff19bfcbdc 100644
--- a/editors/gnotepad+/Makefile
+++ b/editors/gnotepad+/Makefile
@@ -12,33 +12,29 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple GTK-based text/HTML editor
-LICENSE= GPLv2 GPLv3
-LICENSE_COMB= dual
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
USE_XORG= xpm
USE_GNOME= gnomeprefix gtk12
-USES= gettext
+USES= gettext localbase:ldflags
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-gnome
-
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS= --disable-gnome --disable-nls
DOCVERSION= 1.2.0
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
-DOCS_DISTFILES= ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}:doc
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
-.include <bsd.port.options.mk>
+DOCS_DISTFILES= ${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}:doc
-post-extract:
-.if ${PORT_OPTIONS:MDOCS}
+post-extract-DOCS-on:
@${MV} ${WRKSRC}/docs ${WRKSRC}/docs.old
@${CP} -R ${WRKDIR}/${PORTNAME}-help-${DOCVERSION}/docs ${WRKSRC}/docs
-.endif
post-patch:
@${REINPLACE_CMD} -e 's|\(use_gtkhtml=\)yes|\1no|g' ${WRKSRC}/configure
diff --git a/editors/gnotepad+/pkg-plist b/editors/gnotepad+/pkg-plist
index 171c97261cff..5cd39cc903ca 100644
--- a/editors/gnotepad+/pkg-plist
+++ b/editors/gnotepad+/pkg-plist
@@ -146,6 +146,6 @@ share/gnome/help/gnotepad+/C/topic.dat
%%DATADIR%%/xpm/tb_unordered.xpm
%%DATADIR%%/xpm/tb_winclose.xpm
%%DATADIR%%/xpm/tb_winnew.xpm
-share/locale/da/LC_MESSAGES/gnotepad+.mo
-share/locale/fr/LC_MESSAGES/gnotepad+.mo
-share/locale/ja/LC_MESSAGES/gnotepad+.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gnotepad+.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gnotepad+.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gnotepad+.mo