cb5c1b2bea0ccbf98626b7899cdb3e5f4a9d751c
[git/cygwin-packages/libxslt.git] / libxslt.cygport
1 inherit python
2
3 NAME="libxslt"
4 VERSION=1.1.26
5 RELEASE=4
6 CATEGORY="Libs"
7 SUMMARY="GNOME XSLT library"
8 DESCRIPTION="Libxslt is the XSLT C library developed for the Gnome project.
9 XSLT itself is a an XML language to define transformation for XML. Libxslt is
10 based on libxml2 the XML C library developed for the Gnome project. It also
11 implements most of the EXSLT set of processor-portable extensions functions
12 and some of Saxon's evaluate and expressions extensions."
13 HOMEPAGE="http://xmlsoft.org/XSLT/"
14 SRC_URI="ftp://xmlsoft.org/libxml2/${NAME}-${VERSION}.tar.gz"
15 PATCH_URI="
16 mirror://portage/dev-libs/${PN}/files/libxslt.m4-${PN}-1.1.26.patch
17 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.23-parallel-install.patch
18 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-undefined.patch
19 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-id-generation.patch
20 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-pattern-out-of-bounds-read.patch
21 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-node-type-1.patch
22 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-node-type-2.patch
23 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-node-type-3.patch
24 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-pattern-compile-crash.patch
25 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-generate-id-crash.patch
26 mirror://portage/dev-libs/${PN}/files/${PN}-1.1.26-posix-comparison.patch
27 "
28
29 PKG_NAMES="${PN} ${PN}-devel ${PN}-doc python-${PN}"
30 libxslt_SUMMARY="${SUMMARY} (runtime)"
31 libxslt_CONTENTS="--exclude=*-config* --exclude=examples --exclude=html
32 --exclude=python-${PN} usr/bin/ usr/share/doc/ usr/share/man/"
33 libxslt_devel_SUMMARY="${SUMMARY} (development)"
34 libxslt_devel_CONTENTS="--exclude=python* usr/bin/*-config usr/include/ usr/lib/ \
35 usr/share/aclocal/"
36 libxslt_doc_SUMMARY="${SUMMARY} (API documentation)"
37 libxslt_doc_CONTENTS="usr/share/doc/libxslt/html/"
38 python_libxslt_CATEGORY="Python"
39 python_libxslt_SUMMARY="${SUMMARY} (Python bindings)"
40 python_libxslt_CONTENTS="${PYTHON_SITELIB#/} usr/share/doc/python-libxslt/"
41
42 DIFF_EXCLUDES='libxslt-export.c libxslt-py.* libxsltclass.* *xsltconfig.h'
43
44 CYGCONF_ARGS="
45 --with-crypto
46 --with-debugger
47 --with-html-dir=/usr/share/doc/${NAME}
48 --with-html-subdir=html
49 --with-python
50 "
51
52 src_install() {
53 cd ${B}
54 cyginstall
55
56 mv ${D}${PYTHON_SITELIB}/${PN/lib/cyg}mod.dll ${D}${PYTHON_SITELIB}/${PN}mod.dll
57 sed -i -e "s:${PN/lib/cyg}mod:${PN}mod:g" ${D}${PYTHON_SITELIB}/${PN}mod.la
58 python_optimize
59
60 mv ${D}/usr/share/doc/libxslt-python-${PV} ${D}/usr/share/doc/python-libxslt
61 }
62
63 KEEP_LA_FILES="shared"
This page took 0.038848 seconds and 4 git commands to generate.