64bit packaging fix
[git/cygwin-packages/libxslt.git] / libxslt.cygport
1 inherit python
2
3 NAME="libxslt"
4 VERSION=1.1.27
5 RELEASE=2
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 "
18
19 PKG_NAMES="${PN} ${PN}-devel ${PN}-doc python-${PN}"
20 libxslt_SUMMARY="${SUMMARY} (runtime)"
21 libxslt_CONTENTS="--exclude=*-config* --exclude=examples --exclude=html
22 --exclude=python-${PN} usr/bin/ usr/share/doc/ usr/share/man/"
23 libxslt_devel_SUMMARY="${SUMMARY} (development)"
24 libxslt_devel_CONTENTS="--exclude=python* usr/bin/*-config usr/include/ usr/lib/ \
25 usr/share/aclocal/"
26 libxslt_doc_SUMMARY="${SUMMARY} (API documentation)"
27 libxslt_doc_CONTENTS="usr/share/doc/libxslt/html/"
28 python_libxslt_CATEGORY="Python"
29 python_libxslt_SUMMARY="${SUMMARY} (Python bindings)"
30 python_libxslt_CONTENTS="${PYTHON_SITELIB#/} usr/share/doc/python-libxslt/"
31
32 DIFF_EXCLUDES='libxslt-export.c libxslt-py.* libxsltclass.* *xsltconfig.h'
33
34 CYGCONF_ARGS="
35 --with-crypto
36 --with-debugger
37 --with-html-dir=/usr/share/doc/${NAME}
38 --with-html-subdir=html
39 --with-python
40 "
41
42 src_install() {
43 cd ${B}
44 cyginstall
45
46 mv ${D}${PYTHON_SITELIB}/${PN/lib/cyg}mod.dll ${D}${PYTHON_SITELIB}/${PN}mod.dll
47 sed -i -e "s:${PN/lib/cyg}mod:${PN}mod:g" ${D}${PYTHON_SITELIB}/${PN}mod.la
48 python_optimize
49
50 mv ${D}/usr/share/doc/libxslt-python-${PV} ${D}/usr/share/doc/python-libxslt
51 }
This page took 0.042723 seconds and 5 git commands to generate.