From f46af2ee22afd3a62b612f25bf4fb9739120fd09 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sun, 5 Feb 2017 14:41:54 +0000 Subject: - Fix LICENSE - Add LICENSE_FILE - Switch to USES=localbase - Optionize NLS - Switch to options helpers --- editors/gnotepad+/Makefile | 22 +++++++++------------- editors/gnotepad+/pkg-plist | 6 +++--- 2 files changed, 12 insertions(+), 16 deletions(-) (limited to 'editors/gnotepad+') 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 +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 -- cgit v1.2.3