pkgsrc/textproc/gnome-doc-utils/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.61 2014/01/25 10:30:23 wiz Exp $
DISTNAME= gnome-doc-utils-0.20.10
PKGREVISION= 2
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-doc-utils/0.20/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnome.org/
COMMENT= Documentation utilities for the GNOME project
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
DEPENDS+= ${PYPKGPREFIX}-libxml2>=2.6.16:../../textproc/py-libxml2
DEPENDS+= ${PYPKGPREFIX}-libxslt>=1.1.12:../../textproc/py-libxslt
DEPENDS+= docbook-xml>=4.5:../../textproc/docbook-xml
DEPENDS+= getopt-[0-9]*:../../misc/getopt
PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-libxslt
USE_TOOLS+= intltool pkg-config gmake gawk msgfmt bash:run
GNU_CONFIGURE= YES
MAKE_JOBS_SAFE= no
TEST_TARGET= check
USE_PKGLOCALEDIR= YES
REPLACE_BASH= tools/gnome-doc-tool.in
CONFIGURE_ARGS+= PYTHON=${PYTHONBIN:Q}
PKGCONFIG_OVERRIDE= tools/gnome-doc-utils.pc.in
PKGCONFIG_OVERRIDE+= xml2po/xml2po.pc.in
SUBST_CLASSES+= getopt
SUBST_STAGE.getopt= pre-configure
SUBST_FILES.getopt= tools/gnome-doc-tool.in
SUBST_SED.getopt= "s|@GETOPT@|${LOCALBASE}/bin/getopt|g"
PY_PATCHPLIST= yes
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.6.12
BUILDLINK_DEPMETHOD.libxslt= build
BUILDLINK_DEPMETHOD.libxml2= build
post-install:
${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/share/xml2po
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/xmlcatmgr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"