libxslt 1.1.32
[git/cygwin-packages/libxslt.git] / libxslt.cygport
CommitLineData
cd775b2c 1inherit python2
8482005d
YS
2
3NAME="libxslt"
cd775b2c 4VERSION=1.1.32
d716cef5 5RELEASE=1
8482005d
YS
6CATEGORY="Libs"
7SUMMARY="GNOME XSLT library"
8DESCRIPTION="Libxslt is the XSLT C library developed for the Gnome project.
9XSLT itself is a an XML language to define transformation for XML. Libxslt is
10based on libxml2 the XML C library developed for the Gnome project. It also
11implements most of the EXSLT set of processor-portable extensions functions
12and some of Saxon's evaluate and expressions extensions."
13HOMEPAGE="http://xmlsoft.org/XSLT/"
14SRC_URI="ftp://xmlsoft.org/libxml2/${NAME}-${VERSION}.tar.gz"
15PATCH_URI="
cd775b2c 16 https://src.fedoraproject.org/cgit/rpms/libxslt.git/plain/libxslt-1.1.26-utf8-docs.patch
e924eec7 17 mirror://portage/dev-libs/libxslt/files/libxslt.m4-libxslt-1.1.26.patch
8482005d
YS
18"
19
cd775b2c 20PKG_NAMES="${NAME} ${NAME}-devel ${NAME}-doc python2-${NAME}"
8482005d
YS
21libxslt_SUMMARY="${SUMMARY} (runtime)"
22libxslt_CONTENTS="--exclude=*-config* --exclude=examples --exclude=html
e924eec7 23 --exclude=python-${NAME} usr/bin/ usr/share/doc/ usr/share/man/"
8482005d
YS
24libxslt_devel_SUMMARY="${SUMMARY} (development)"
25libxslt_devel_CONTENTS="--exclude=python* usr/bin/*-config usr/include/ usr/lib/ \
26 usr/share/aclocal/"
27libxslt_doc_SUMMARY="${SUMMARY} (API documentation)"
28libxslt_doc_CONTENTS="usr/share/doc/libxslt/html/"
cd775b2c
YS
29python2_libxslt_CATEGORY="Python"
30python2_libxslt_SUMMARY="${SUMMARY} (Python bindings)"
31python2_libxslt_OBSOLETES="python-libxslt"
32python2_libxslt_CONTENTS="${PYTHON2_SITELIB#/} usr/share/doc/python-libxslt/"
8482005d
YS
33
34DIFF_EXCLUDES='libxslt-export.c libxslt-py.* libxsltclass.* *xsltconfig.h'
35
36CYGCONF_ARGS="
37 --with-crypto
38 --with-debugger
39 --with-html-dir=/usr/share/doc/${NAME}
40 --with-html-subdir=html
41 --with-python
42"
43
44src_install() {
45 cd ${B}
46 cyginstall
47
e924eec7
YS
48 mv ${D}${PYTHON_SITELIB}/${NAME/lib/cyg}mod.dll ${D}${PYTHON_SITELIB}/${NAME}mod.dll
49 sed -i -e "s:${NAME/lib/cyg}mod:${NAME}mod:g" ${D}${PYTHON_SITELIB}/${NAME}mod.la
8482005d
YS
50 python_optimize
51
52 mv ${D}/usr/share/doc/libxslt-python-${PV} ${D}/usr/share/doc/python-libxslt
53}
This page took 0.043558 seconds and 6 git commands to generate.