pkgsrc/editors/pluma/Makefile
gutteridge 4221beb477 mate*: remove unintentional linkage against pkgsrc gettext-libs
As of 1.24, MATE requires GNU-specific msgfmt features. meta-pkgs/mate/
Makefile.common r. 1.10 expressed this tool dependency using
USE_BUILTIN.gettext=no, but this exposed pkgsrc gettext-libs in the
build environment as well, which some MATE packages then linked
against, but gettext-libs didn't end up being declared as a run-time
dependency, so binary package installations were broken (with the
workaround of manually installing the undeclared gettext-libs
dependency). Express this dependency differently, so GNU msgfmt is
used as a tool without exposing pkgsrc gettext-libs.

(The pkgsrc tooling infrastruture could be altered to provide a
distinct "gmsgfmt" tool, same with "gxgettext", and perhaps others.
Here I'm just immediately concerned with fixing this packaging issue.)

Addresses PR pkg/55503 by Jay Patel.
2020-08-24 04:41:39 +00:00

32 lines
1,010 B
Makefile

# $NetBSD: Makefile,v 1.31 2020/08/24 04:41:39 gutteridge Exp $
PYTHON_VERSIONS_INCOMPATIBLE= 27
DISTNAME= pluma-${VERSION:R}.0
PKGREVISION= 3
CATEGORIES= editors
COMMENT= Small and lightweight UTF-8 text editor for MATE
USE_TOOLS+= bash:run perl
TOOL_DEPENDS+= itstool-[0-9]*:../../textproc/itstool
TOOL_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2 # for xmllint
PKGCONFIG_OVERRIDE+= data/pluma.pc.in
REPLACE_PYTHON+= plugins/externaltools/data/switch-c.tool.in
REPLACE_BASH+= plugins/externaltools/data/search-recursive.tool.in
post-install:
find ${DESTDIR}${PREFIX} -type d -name __pycache__ | xargs rm -rf
.include "options.mk"
.include "../../devel/libpeas/buildlink3.mk"
.include "../../devel/glib2/schemas.mk"
.include "../../lang/python/application.mk"
.include "../../x11/mate-desktop/buildlink3.mk"
.include "../../x11/gtksourceview3/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../meta-pkgs/mate/Makefile.common"
.include "../../mk/bsd.pkg.mk"