Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+12 -16
View File
@@ -1,24 +1,19 @@
# $NetBSD: Makefile,v 1.44 2014/05/09 07:37:22 wiz Exp $
# $NetBSD: Makefile,v 1.47 2016/07/09 13:04:10 wiz Exp $
.include "../../textproc/libxslt/Makefile.common"
DISTNAME= libxslt-1.1.28
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= textproc python
MASTER_SITES= ftp://xmlsoft.org/libxslt/ \
http://xmlsoft.org/sources/
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://xmlsoft.org/XSLT/
COMMENT= Python wrapper for libxslt
LICENSE= mit # with no-advertising clause
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
DEPENDS+= ${PYPKGPREFIX}-libxml2>=2.6.8:../../textproc/py-libxml2
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 1.1.28
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # not yet ported as of 1.1.28
WRKSRC= ${WRKDIR}/${DISTNAME}/python
PYDISTUTILSPKG= yes
PYSETUPSUBDIR= python
NO_CONFIGURE= yes
MAKE_ENV+= PYLIBXSLTVERSION=${PKGVERSION}
@@ -26,18 +21,19 @@ MAKE_ENV+= PYLIBXSLTVERSION=${PKGVERSION}
SUBST_CLASSES+= setup
SUBST_MESSAGE.setup= Fixing hardcoded paths.
SUBST_STAGE.setup= pre-build
SUBST_FILES.setup= setup.py
SUBST_FILES.setup= python/setup.py
SUBST_SED.setup= -e "s,@LIBICONVDIR@,${BUILDLINK_PREFIX.iconv},g"
SUBST_SED.setup+= -e "s,@LIBXML2DIR@,${BUILDLINK_PREFIX.libxml2},g"
SUBST_SED.setup+= -e "s,@LIBXSLTDIR@,${BUILDLINK_PREFIX.libxslt},g"
post-extract: setuppy
.PHONY: setuppy
setuppy:
${CP} ${FILESDIR}/setup.py ${WRKSRC}/python
BUILDLINK_API_DEPENDS.libxslt+= libxslt>=${PKGVERSION}
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/distutils.mk"
.include "../../converters/libiconv/buildlink3.mk"
post-extract:
${CP} ${FILESDIR}/setup.py ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
-5
View File
@@ -1,5 +0,0 @@
$NetBSD: distinfo,v 1.20 2013/07/12 22:36:54 adam Exp $
SHA1 (libxslt-1.1.28.tar.gz) = 4df177de629b2653db322bfb891afa3c0d1fa221
RMD160 (libxslt-1.1.28.tar.gz) = a4e2f9c3ac235284cc58a37ed26707a870e0f976
Size (libxslt-1.1.28.tar.gz) = 3435907 bytes
+1 -10
View File
@@ -36,7 +36,6 @@ else:
# - iconv.h
# - libxslt/xsltconfig.h
includes_dir = [
"@LIBICONVDIR@/include",
"@LIBXML2DIR@/include",
"@LIBXSLTDIR@/include"
];
@@ -51,15 +50,7 @@ if xml_includes == "":
print "failed to find headers for libxml2: update includes_dir"
sys.exit(1)
iconv_includes=""
for dir in includes_dir:
if not missing(dir + "/iconv.h"):
iconv_includes=dir
break;
if iconv_includes == "":
print "failed to find headers for libiconv: update includes_dir"
sys.exit(1)
iconv_includes="@LIBICONVDIR@/include"
# those are added in the linker search path for libraries
libdirs = ["@LIBXML2DIR@/lib"]