aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2021-05-21 11:58:52 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-05-21 11:59:40 +0000
commit643e95373d09c143cc4d82aa8fcdd1fc283c9706 (patch)
treef38efbcc1d0936f73c1ac7931db76f96f3ffb639 /graphics
parent93715fdbe16f18738c781d0ed73ce96a09fae239 (diff)
downloadports-643e95373d09c143cc4d82aa8fcdd1fc283c9706.tar.gz
ports-643e95373d09c143cc4d82aa8fcdd1fc283c9706.zip
graphics/goocanvas2: the port had been improved (+)
- Drop needless `localbase' from USES list - Install documentation in standard place - Convert to option helpers while I'm here
Diffstat (limited to 'graphics')
-rw-r--r--graphics/goocanvas2/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/graphics/goocanvas2/Makefile b/graphics/goocanvas2/Makefile
index c1469b553b6a..d88f3d99b9ec 100644
--- a/graphics/goocanvas2/Makefile
+++ b/graphics/goocanvas2/Makefile
@@ -12,7 +12,7 @@ COMMENT= Canvas widget for GTK+ 3
LICENSE= LGPL20
-USES= gmake gnome libtool localbase pathfix pkgconfig python:build tar:xz
+USES= gmake gnome libtool pathfix pkgconfig python:build tar:xz
USE_GNOME= cairo gdkpixbuf2 gtk30 introspection:build
USE_LDCONFIG= yes
@@ -20,26 +20,22 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-python=no
INSTALL_TARGET= install-strip
+DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PORTDOCS= *
-DOCSDIR= ${PREFIX}/share/gtk-doc/html/goocanvas2
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
post-patch:
-.if ! ${PORT_OPTIONS:MDOCS}
+ @${REINPLACE_CMD} -e 's|$${datadir}/gtk-doc/html|${DOCSDIR:H}|' \
+ ${WRKSRC}/configure
+
+post-patch-DOCS-off:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||g' ${WRKSRC}/Makefile.in
-.endif
-.if ! ${PORT_OPTIONS:MNLS}
+
+post-patch-NLS-off:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
-.endif
.include <bsd.port.mk>