View | Details | Raw Unified | Return to bug 279705 | Differences between
and this patch

Collapse All | Expand All

(-)b/textproc/libxml2-python/Makefile (+33 lines)
Added Link Here
1
PORTNAME=	libxml2-python
2
PORTREVISION=	0
3
CATEGORIES=	textproc gnome python
4
MASTER_SITES=	GNOME/sources/libxml2/${DISTVERSION:R}/
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
COMMENT=	Python interface for XML parser library for GNOME
8
MASTERDIR=	${.CURDIR}/../libxml2
9
10
BUILD_DEPENDS+=	${PY_SETUPTOOLS}
11
12
USES+=		gettext-runtime gnome python shebangfix
13
USE_GNOME=	libxml2
14
USE_PYTHON=	autoplist distutils
15
SHEBANG_FILES=	*.py doc/*.py python/*.py python/tests/*.py
16
17
OPTIONS_EXCLUDE=	${OPTIONS_DEFINE}
18
19
# Tell master port we're a slave port
20
LIBXML2_SLAVE=	python
21
# Grab pkg-descr from slave port
22
DESCR=		${.CURDIR}/pkg-descr
23
24
BUILD_WRKSRC=	${WRKSRC}/python
25
INSTALL_WRKSRC=	${BUILD_WRKSRC}
26
27
# Don't append pkg-plist from master port
28
PLIST=
29
30
DOCSDIR=	${PREFIX}/share/doc/libxml2-python
31
EXAMPLESDIR=	${PREFIX}/share/examples/libxml2-python
32
33
.include "${MASTERDIR}/Makefile"
(-)b/textproc/libxml2/Makefile (-26 / +30 lines)
Lines 1-8 Link Here
1
PORTNAME=	libxml2
1
PORTNAME?=	libxml2
2
DISTVERSION=	2.11.8
2
DISTVERSION=	2.13.2
3
PORTREVISION?=	0
3
PORTREVISION?=	0
4
CATEGORIES?=	textproc gnome
4
CATEGORIES?=	textproc gnome
5
MASTER_SITES=	GNOME/sources/${PORTNAME}/${DISTVERSION:R}/
5
MASTER_SITES?=	GNOME/sources/${PORTNAME}/${DISTVERSION:R}/
6
DISTNAME=	libxml2-${DISTVERSION}
6
DIST_SUBDIR=	gnome
7
DIST_SUBDIR=	gnome
7
8
8
MAINTAINER=	desktop@FreeBSD.org
9
MAINTAINER=	desktop@FreeBSD.org
Lines 11-50 WWW= http://xmlsoft.org/ Link Here
11
12
12
LICENSE=	MIT
13
LICENSE=	MIT
13
14
14
USES+=		cmake:testing cpe iconv localbase:ldflags pathfix \
15
# Upstream recommends autotools on Unix-like systems
15
		pkgconfig tar:xz
16
USES+=		autoreconf cpe gmake iconv libtool localbase pathfix pkgconfig tar:xz
16
CPE_VENDOR=	xmlsoft
17
CPE_VENDOR=	xmlsoft
17
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
19
GNU_CONFIGURE=	yes
18
# Don't build with Python support unless requested
20
# Don't build with Python support unless requested
19
CMAKE_${LIBXML2_SLAVE:DON:UOFF}=LIBXML2_WITH_PYTHON
21
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/share/ \
22
			--with-lzma=/usr \
23
			--${LIBXML2_SLAVE:Dwith:Uwithout}-python${LIBXML2_SLAVE:D=${PYTHON_CMD}:U}
20
24
21
# Many symbols in the linker version script libxml2.syms are only defined when
25
# Many symbols in the linker version script libxml2.syms are only defined when
22
# --with-xptr-locs is enabled at configure time. Suppress errors with lld >= 17
26
# --with-xptr-locs is enabled at configure time. Suppress errors with lld >= 17
23
# due to these undefined symbols.
27
# due to these undefined symbols.
24
LDFLAGS+=	-Wl,--undefined-version
28
LDFLAGS+=	-Wl,--undefined-version
25
29
26
CMAKE_TESTING_ON=	LIBXML2_WITH_TESTS
30
INSTALL_TARGET=	install-strip
27
31
TEST_TARGET=	check
28
CMAKE_ARGS=	-DCMAKE_INSTALL_SYSCONFDIR=share
29
CMAKE_OFF+=	LIBXML2_WITH_TESTS
30
32
31
PLIST_SUB+=	LIBVERSION=${DISTVERSION}
33
PLIST_SUB+=	LIBVERSION=${DISTVERSION}
32
34
33
OPTIONS_DEFINE=	DOCS ICU MEM_DEBUG READLINE THREAD_ALLOC
35
OPTIONS_DEFINE=	DOCS ICU LEGACY READLINE STATIC THREAD_ALLOC
34
OPTIONS_DEFAULT=	READLINE
36
OPTIONS_DEFAULT=	LEGACY READLINE STATIC
35
OPTIONS_SUB=		yes
37
OPTIONS_SUB=		yes
36
38
37
MEM_DEBUG_DESC=		Memory debugging (DEVELOPERS ONLY!)
39
LEGACY_DESC=		Enable legacy API compatibility
38
READLINE_DESC=		History for xmllint
40
READLINE_DESC=		History for xmllint
39
THREAD_ALLOC_DESC=	Per-thread memory (DEVELOPERS ONLY!)
41
THREAD_ALLOC_DESC=	Per-thread memory (DEVELOPERS ONLY!)
40
42
41
ICU_LIB_DEPENDS=		libicudata.so:devel/icu
43
ICU_LIB_DEPENDS=		libicudata.so:devel/icu
42
ICU_CMAKE_BOOL=			LIBXML2_WITH_ICU
44
ICU_CONFIGURE_WITH=		icu
43
MEM_DEBUG_CONFIGURE_WITH=	LIBXML2_WITH_MEM_DEBUG
45
LEGACY_CONFIGURE_WITH=		legacy
44
READLINE_LIB_DEPENDS=		libreadline.so:devel/readline
46
READLINE_LIB_DEPENDS=		libreadline.so:devel/readline
45
READLINE_CMAKE_OFF=		-DHAVE_LIBHISTORY=false \
47
READLINE_CONFIGURE_WITH=	history \
46
				-DHAVE_LIBREADLINE=false
48
				readline
47
THREAD_ALLOC_CMAKE_BOOL=	LIBXML2_WITH_THREAD_ALLOC
49
STATIC_CONFIGURE_ENABLE=	static
50
THREAD_ALLOC_CONFIGURE_WITH=	thread-alloc
48
51
49
post-patch:
52
post-patch:
50
	@${REINPLACE_CMD} -e \
53
	@${REINPLACE_CMD} -e \
Lines 53-66 post-patch: Link Here
53
		${WRKSRC}/doc/xmllint.1
56
		${WRKSRC}/doc/xmllint.1
54
57
55
post-install:
58
post-install:
56
.if defined(LIBXML2_SLAVE)
59
.if !defined(LIBXML2_SLAVE)
57
	${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/site-packages/libxml2mod.so
60
# Documentation should be in DOCSDIR
58
	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
61
	@${MV} ${STAGEDIR}${PREFIX}/share/gtk-doc/html/libxml2 \
59
		-f -d ${PYTHONPREFIX_SITELIBDIR} \
62
		${STAGEDIR}${DOCSDIR}/devhelp
60
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
63
	@${RM} -r ${STAGEDIR}${PREFIX}/share/gtk-doc
61
	${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
64
# Install remaining documentation that's not connected to autotools
62
		-f -d ${PYTHONPREFIX_SITELIBDIR} \
65
	${INSTALL_MAN} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
63
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
66
.else
67
	${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/site-packages/libxml2mod${PYTHON_EXT_SUFFIX}.so
64
.endif
68
.endif
65
69
66
.include <bsd.port.mk>
70
.include <bsd.port.mk>
(-)b/textproc/libxml2/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1715748402
1
TIMESTAMP = 1720743596
2
SHA256 (gnome/libxml2-2.11.8.tar.xz) = 53961af1721b72246180cd844b7ddae36ea8e1e4e27b683567990a1ee78b02c1
2
SHA256 (gnome/libxml2-2.13.2.tar.xz) = e7c8f5e0b5542159e0ddc409c22c9164304b581eaa9930653a76fb845b169263
3
SIZE (gnome/libxml2-2.11.8.tar.xz) = 2628212
3
SIZE (gnome/libxml2-2.13.2.tar.xz) = 2580584
(-)a/textproc/libxml2/files/patch-CMakeLists.txt (-33 lines)
Removed Link Here
1
--- CMakeLists.txt.orig	2023-08-11 18:59:11 UTC
2
+++ CMakeLists.txt
3
@@ -395,13 +395,17 @@ if(LIBXML2_WITH_ICU)
4
 	if(WIN32)
5
 		set(ICU_LIBS "-licudt -licuin -licuuc")
6
 	else()
7
-		set(ICU_LIBS "-licudata -licui18n -licuuc")
8
+		set(ICU_LIBS_DIR "${ICU_INCLUDE_DIRS}")
9
+		STRING(REGEX REPLACE "include" "lib" ICU_LIBS_DIR ${ICU_LIBS_DIR})
10
+		set(ICU_LIBS "-L${ICU_LIBS_DIR} -licudata -licui18n -licuuc")
11
 	endif()
12
 endif()
13
 
14
 if(LIBXML2_WITH_LZMA)
15
 	target_link_libraries(LibXml2 PRIVATE LibLZMA::LibLZMA)
16
-	set(LZMA_LIBS "-llzma")
17
+	set(LZMA_LIBS_DIR "${LIBLZMA_INCLUDE_DIRS}")
18
+	STRING(REGEX REPLACE "include" "lib" LZMA_LIBS_DIR ${LZMA_LIBS_DIR})
19
+	set(LZMA_LIBS "-L${LZMA_LIBS_DIR} -llzma")
20
 endif()
21
 
22
 if(LIBXML2_WITH_THREADS)
23
@@ -411,7 +415,9 @@ endif()
24
 
25
 if(LIBXML2_WITH_ZLIB)
26
 	target_link_libraries(LibXml2 PRIVATE ZLIB::ZLIB)
27
-	set(Z_LIBS "-lz")
28
+	set(Z_LIBS_DIR "${ZLIB_INCLUDE_DIRS}")
29
+	STRING(REGEX REPLACE "include" "lib" Z_LIBS_DIR ${Z_LIBS_DIR})
30
+	set(Z_LIBS "-L${Z_LIBS_DIR} -lz")
31
 endif()
32
 
33
 set_target_properties(
(-)b/textproc/libxml2/files/patch-Makefile.am (+20 lines)
Added Link Here
1
--- Makefile.am.orig	2024-01-14 01:24:01 UTC
2
+++ Makefile.am
3
@@ -123,7 +123,7 @@ runtest_DEPENDENCIES = $(DEPS)
4
 runtest_SOURCES=runtest.c
5
 runtest_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
6
 runtest_DEPENDENCIES = $(DEPS)
7
-runtest_LDADD= $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS)
8
+runtest_LDADD= -lpthread $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS)
9
 
10
 testrecurse_SOURCES=testrecurse.c
11
 testrecurse_DEPENDENCIES = $(DEPS)
12
@@ -162,7 +162,7 @@ testThreads_DEPENDENCIES = $(DEPS)
13
 testThreads_SOURCES = testThreads.c
14
 testThreads_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
15
 testThreads_DEPENDENCIES = $(DEPS)
16
-testThreads_LDADD= $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS)
17
+testThreads_LDADD= -lpthread $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS)
18
 
19
 testModule_SOURCES=testModule.c
20
 testModule_DEPENDENCIES = $(DEPS)
(-)a/textproc/libxml2/files/patch-python_libxml.c (-35 lines)
Removed Link Here
1
--- python/libxml.c.orig	2023-08-11 20:30:35 UTC
2
+++ python/libxml.c
3
@@ -1606,12 +1606,19 @@ libxml_xmlErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx,
4
     PyObject *message;
5
     PyObject *result;
6
     char str[1000];
7
+    unsigned char *ptr = (unsigned char *)str;
8
 
9
 #ifdef DEBUG_ERROR
10
     printf("libxml_xmlErrorFuncHandler(%p, %s, ...) called\n", ctx, msg);
11
 #endif
12
 
13
+#if PY_MAJOR_VERSION >= 3
14
+    /* Ensure the error string doesn't start at UTF8 continuation. */
15
+    while (*ptr && (*ptr & 0xc0) == 0x80)
16
+        ptr++;
17
+#endif
18
 
19
+
20
     if (libxml_xmlPythonErrorFuncHandler == NULL) {
21
         va_start(ap, msg);
22
         vfprintf(stderr, msg, ap);
23
@@ -1625,9 +1632,11 @@ libxml_xmlErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx,
24
         list = PyTuple_New(2);
25
         PyTuple_SetItem(list, 0, libxml_xmlPythonErrorFuncCtxt);
26
         Py_XINCREF(libxml_xmlPythonErrorFuncCtxt);
27
-        message = libxml_charPtrConstWrap(str);
28
+        message = libxml_charPtrConstWrap(ptr);
29
         PyTuple_SetItem(list, 1, message);
30
         result = PyObject_CallObject(libxml_xmlPythonErrorFuncHandler, list);
31
+        /* Forget any errors caused in the error handler. */
32
+        PyErr_Clear();
33
         Py_XDECREF(list);
34
         Py_XDECREF(result);
35
     }
(-)a/textproc/libxml2/files/patch-uri.c (-25 lines)
Removed Link Here
1
Revert the following commit, it makes the freebsd doc chain fail.
2
3
From 8eb55d782a2b9afacc7938694891cc6fad7b42a5 Mon Sep 17 00:00:00 2001
4
From: Dennis Filder <d.filder@web.de>
5
Date: Fri, 13 Jun 2014 14:56:14 +0800
6
Subject: xmlSaveUri() incorrectly recomposes URIs with rootless paths
7
8
For https://bugzilla.gnome.org/show_bug.cgi?id=731063
9
10
xmlSaveUri() of libxml2 (snapshot 2014-05-31 and earlier) returns
11
bogus values when called with URIs that have rootless paths
12
(e.g. "urx:b:b" becomes "urx://b%3Ab" where "urx:b%3Ab" would be
13
correct)
14
15
--- uri.c.orig	2019-10-22 18:46:01 UTC
16
+++ uri.c
17
@@ -1201,6 +1201,8 @@ xmlSaveUri(xmlURIPtr uri) {
18
                 if (temp == NULL) goto mem_error;
19
                 ret = temp;
20
 	    }
21
+	    ret[len++] = '/';
22
+	    ret[len++] = '/';
23
 	}
24
 	if (uri->path != NULL) {
25
 	    p = uri->path;
(-)b/textproc/libxml2/pkg-plist (-72 / +5 lines)
Lines 47-63 include/libxml2/libxml/xmlwriter.h Link Here
47
include/libxml2/libxml/xpath.h
47
include/libxml2/libxml/xpath.h
48
include/libxml2/libxml/xpathInternals.h
48
include/libxml2/libxml/xpathInternals.h
49
include/libxml2/libxml/xpointer.h
49
include/libxml2/libxml/xpointer.h
50
lib/cmake/libxml2-%%LIBVERSION%%/libxml2-config-version.cmake
50
lib/cmake/libxml2/libxml2-config.cmake
51
lib/cmake/libxml2-%%LIBVERSION%%/libxml2-config.cmake
51
%%STATIC%%lib/libxml2.a
52
lib/cmake/libxml2-%%LIBVERSION%%/libxml2-export-%%CMAKE_BUILD_TYPE%%.cmake
53
lib/cmake/libxml2-%%LIBVERSION%%/libxml2-export.cmake
54
lib/libxml2.so
52
lib/libxml2.so
55
lib/libxml2.so.2
53
lib/libxml2.so.2
56
lib/libxml2.so.%%LIBVERSION%%
54
lib/libxml2.so.%%LIBVERSION%%
57
libdata/pkgconfig/libxml-2.0.pc
55
libdata/pkgconfig/libxml-2.0.pc
58
share/man/man1/xml2-config.1.gz
59
share/man/man1/xmlcatalog.1.gz
60
share/man/man1/xmllint.1.gz
61
share/aclocal/libxml.m4
56
share/aclocal/libxml.m4
62
%%PORTDOCS%%%%DOCSDIR%%/devhelp/general.html
57
%%PORTDOCS%%%%DOCSDIR%%/devhelp/general.html
63
%%PORTDOCS%%%%DOCSDIR%%/devhelp/home.png
58
%%PORTDOCS%%%%DOCSDIR%%/devhelp/home.png
Lines 113-182 share/aclocal/libxml.m4 Link Here
113
%%PORTDOCS%%%%DOCSDIR%%/devhelp/right.png
108
%%PORTDOCS%%%%DOCSDIR%%/devhelp/right.png
114
%%PORTDOCS%%%%DOCSDIR%%/devhelp/style.css
109
%%PORTDOCS%%%%DOCSDIR%%/devhelp/style.css
115
%%PORTDOCS%%%%DOCSDIR%%/devhelp/up.png
110
%%PORTDOCS%%%%DOCSDIR%%/devhelp/up.png
116
%%PORTDOCS%%%%DOCSDIR%%/examples/index.html
117
%%PORTDOCS%%%%DOCSDIR%%/examples/io1.c
118
%%PORTDOCS%%%%DOCSDIR%%/examples/io2.c
119
%%PORTDOCS%%%%DOCSDIR%%/examples/parse1.c
120
%%PORTDOCS%%%%DOCSDIR%%/examples/parse2.c
121
%%PORTDOCS%%%%DOCSDIR%%/examples/parse3.c
122
%%PORTDOCS%%%%DOCSDIR%%/examples/parse4.c
123
%%PORTDOCS%%%%DOCSDIR%%/examples/reader1.c
124
%%PORTDOCS%%%%DOCSDIR%%/examples/reader2.c
125
%%PORTDOCS%%%%DOCSDIR%%/examples/reader3.c
126
%%PORTDOCS%%%%DOCSDIR%%/examples/reader4.c
127
%%PORTDOCS%%%%DOCSDIR%%/examples/testWriter.c
128
%%PORTDOCS%%%%DOCSDIR%%/examples/tree1.c
129
%%PORTDOCS%%%%DOCSDIR%%/examples/tree2.c
130
%%PORTDOCS%%%%DOCSDIR%%/examples/xpath1.c
131
%%PORTDOCS%%%%DOCSDIR%%/examples/xpath2.c
132
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apa.html
133
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apb.html
134
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apc.html
135
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apd.html
136
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ape.html
137
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apf.html
138
%%PORTDOCS%%%%DOCSDIR%%/tutorial/apg.html
139
%%PORTDOCS%%%%DOCSDIR%%/tutorial/aph.html
140
%%PORTDOCS%%%%DOCSDIR%%/tutorial/api.html
141
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s02.html
142
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s03.html
143
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s04.html
144
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s05.html
145
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s06.html
146
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s07.html
147
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s08.html
148
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ar01s09.html
149
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/blank.png
150
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/1.png
151
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/10.png
152
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/2.png
153
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/3.png
154
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/4.png
155
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/5.png
156
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/6.png
157
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/7.png
158
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/8.png
159
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/callouts/9.png
160
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/caution.png
161
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/draft.png
162
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/home.png
163
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/important.png
164
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/next.png
165
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/note.png
166
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/prev.png
167
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/tip.png
168
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/toc-blank.png
169
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/toc-minus.png
170
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/toc-plus.png
171
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/up.png
172
%%PORTDOCS%%%%DOCSDIR%%/tutorial/images/warning.png
173
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includeaddattribute.c
174
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includeaddkeyword.c
175
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includeconvert.c
176
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includegetattribute.c
177
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includekeyword.c
178
%%PORTDOCS%%%%DOCSDIR%%/tutorial/includexpath.c
179
%%PORTDOCS%%%%DOCSDIR%%/tutorial/index.html
180
%%PORTDOCS%%%%DOCSDIR%%/tutorial/ix01.html
181
%%PORTDOCS%%%%DOCSDIR%%/xmlcatalog.html
111
%%PORTDOCS%%%%DOCSDIR%%/xmlcatalog.html
182
%%PORTDOCS%%%%DOCSDIR%%/xmllint.html
112
%%PORTDOCS%%%%DOCSDIR%%/xmllint.html
113
share/man/man1/xml2-config.1.gz
114
share/man/man1/xmlcatalog.1.gz
115
share/man/man1/xmllint.1.gz
(-)a/textproc/py-libxml2/Makefile (-32 lines)
Removed Link Here
1
PORTREVISION=	1
2
CATEGORIES=	textproc gnome python
3
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
4
5
COMMENT=	Python interface for XML parser library for GNOME
6
7
USES+=		gnome python shebangfix
8
USE_GNOME=	libxml2
9
USE_PYTHON=	flavors
10
SHEBANG_FILES=	*.py doc/*.py python/*.py python/tests/*.py
11
12
# Help CMake determine the correct version of Python if
13
# multiple versions are installed
14
CMAKE_ARGS=	-DPython_EXECUTABLE=${PYTHON_CMD}
15
16
MASTERDIR=	${.CURDIR}/../libxml2
17
18
DESCR=		${.CURDIR}/pkg-descr
19
PLIST=		${.CURDIR}/pkg-plist
20
21
OPTIONS_EXCLUDE=	${OPTIONS_DEFINE}
22
23
# Tell master port we're a slave port
24
LIBXML2_SLAVE=	python
25
26
do-install:
27
		${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
28
		${INSTALL_SCRIPT} ${WRKSRC}/python/drv_libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR}
29
		${INSTALL_SCRIPT} ${BUILD_WRKSRC}/libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR}
30
		${INSTALL_LIB} ${BUILD_WRKSRC}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR}
31
32
.include "${MASTERDIR}/Makefile"
(-)a/textproc/py-libxml2/pkg-plist (-8 lines)
Removed Link Here
1
%%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
2
%%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2%%PYTHON_EXT_SUFFIX%%.pyc
3
%%PYTHON_SITELIBDIR%%/__pycache__/libxml2%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
4
%%PYTHON_SITELIBDIR%%/__pycache__/libxml2%%PYTHON_EXT_SUFFIX%%.pyc
5
%%PYTHON_SITELIBDIR%%/drv_libxml2.py
6
%%PYTHON_SITELIBDIR%%/libxml2.py
7
%%PYTHON_SITELIBDIR%%/libxml2mod.so
8
- 

Return to bug 279705