On Tue, Apr 05, 2016 at 03:22:12PM +0000, Christian Weisgerber wrote: > I want us to move ahead on this. > > To summarize: > > When you update a port, drop the converters/libiconv and devel/gettext > MODULES and handle libiconv and libintl like any other library > dependency. make port-lib-depends-check will help you. > > If your port requires any of the utilities from gettext-tools to > build (typically: it runs something like "msgfmt -o foo.mo foo.po"), > you also need to add devel/gettext-tools to BUILD_DEPENDS. > > I'll see if I can remove the gettext-tools dependency from some > common build dependency paths. Like for the recent cleanups in the > wake of the vax removal, I'll be the little mouse that keeps nibbling > away at the edge of the moldy cheese. > > -- > Christian "naddy" Weisgerber na...@mips.inka.de >
This seems pretty easy. I just did this to my most complex port, and used the guidance from port-lib-depends-check. The portcheck(1) tool will need to be revised; I'd offer a patch but I'm unsure what tests should remain other than .mo for runtime. Index: Makefile =================================================================== RCS file: /systems/cvs/ports/net/transmission/Makefile,v retrieving revision 1.104 diff -u -p -r1.104 Makefile --- Makefile 27 Mar 2016 16:19:17 -0000 1.104 +++ Makefile 5 Apr 2016 22:26:43 -0000 @@ -32,8 +32,8 @@ FLAVOR?= .include <bsd.port.arch.mk> WANTLIB-common= c crypto curl event_core event_extra m miniupnpc>=2.0 \ - natpmp pthread ssl z ${MODGETTEXT_WANTLIB} -WANTLIB-main= ${WANTLIB-common} idn nghttp2 + natpmp pthread ssl z intl +WANTLIB-main= ${WANTLIB-common} idn nghttp2 iconv WANTLIB-gtk= ${WANTLIB-common} ICE SM X11 Xcomposite Xcursor Xdamage \ Xext Xfixes Xi Xinerama Xrandr Xrender \ atk-1.0 atk-bridge-2.0 atspi cairo cairo-gobject \ @@ -42,12 +42,12 @@ WANTLIB-gtk= ${WANTLIB-common} ICE SM X1 gobject-2.0 graphite2 gthread-2.0 gtk-3 \ harfbuzz pango-1.0 pangoft2-1.0 \ pangocairo-1.0 pixman-1 png pcre pthread-stubs xcb \ - xcb-render xcb-shm epoxy idn nghttp2 + xcb-render xcb-shm epoxy idn nghttp2 iconv WANTLIB-qt= ${WANTLIB-common} ${MODQT_WANTLIB} \ GL Qt5Core Qt5DBus Qt5Gui Qt5Network Qt5Widgets \ fontconfig freetype estdc++ -MODULES= devel/gettext textproc/intltool +MODULES= textproc/intltool LIB_DEPENDS-common=${MODGETTEXT_LIB_DEPENDS} \ devel/libevent2 \