libcaca 0.99.beta19
[git/cygwin-packages/libcaca.git] / libcaca.cygport
1 inherit python python3 ruby autotools # java pypy
2
3 NAME="libcaca"
4 VERSION=0.99.beta19
5 RELEASE=1
6 CATEGORY="Libs"
7 SUMMARY="Color ASCII art library"
8 DESCRIPTION="libcaca is a graphics library that outputs text instead of pixels,
9 so that it can work on older video cards or text terminals. It is not unlike
10 the famous AAlib library, except that colors are supported. libcaca can use
11 almost any virtual terminal to work, and there is also a native X11 driver that
12 does not require a text terminal."
13 HOMEPAGE="http://caca.zoy.org/wiki/libcaca"
14 SRC_URI="http://caca.zoy.org/files/libcaca/libcaca-${VERSION}.tar.gz"
15 PATCH_URI="
16 0.99.16-caca-sharp-dllmap.patch
17 0.99.16-plugins.patch
18 0.99.16-ruby.patch
19 0.99.18-java.patch
20 0.99.18-ncurses6.patch
21 0.99.18-python-errno.patch
22 "
23
24 PKG_NAMES="${NAME}-bin ${NAME}0 ${NAME}++0 ${NAME}-devel ${NAME}++-devel ${NAME}-doc
25 python-caca python3-caca ruby-caca" # java-caca pypy-caca
26 libcaca_bin_SUMMARY="${SUMMARY} (sample programs)"
27 libcaca_bin_CONTENTS="--exclude=*-config.* --exclude=html --exclude=pdf \
28 usr/bin/*.exe usr/share/doc/ usr/share/${NAME} usr/share/man/man1/"
29 libcaca0_SUMMARY="${SUMMARY} (C runtime)"
30 libcaca0_CONTENTS="usr/bin/cygcaca-0.dll"
31 libcaca__0_SUMMARY="${SUMMARY} (C++ runtime)"
32 libcaca__0_CONTENTS="usr/bin/cygcaca++-0.dll"
33 libcaca_devel_SUMMARY="${SUMMARY} (C development)"
34 libcaca_devel_CONTENTS="--exclude=*++.* usr/bin/caca-config usr/include/ usr/lib/lib*
35 usr/lib/pkgconfig/ usr/share/man/man1/caca-config.*"
36 libcaca___devel_SUMMARY="${SUMMARY} (C++ development)"
37 libcaca___devel_CONTENTS="usr/include/*++.h usr/lib/lib*++.* usr/lib/pkgconfig/**++.pc"
38 libcaca_doc_SUMMARY="${SUMMARY} (API documentation)"
39 libcaca_doc_CONTENTS="usr/share/doc/${NAME}/*/ usr/share/man/man3/"
40 java_caca_CATEGORY="Java"
41 java_caca_SUMMARY="${SUMMARY} (Java JNI bindings)"
42 java_caca_CONTENTS="usr/bin/cygcaca-java.dll ${JAVA_DIR#/}/caca.jar"
43 pypy_caca_CATEGORY="Python"
44 pypy_caca_SUMMARY="${SUMMARY} (PyPy bindings)"
45 pypy_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
46 pypy_caca_CONTENTS=${PYPY_SITELIB#/}
47 python_caca_CATEGORY="Python"
48 python_caca_SUMMARY="${SUMMARY} (Python bindings)"
49 python_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
50 python_caca_CONTENTS=${PYTHON_SITELIB#/}
51 python3_caca_CATEGORY="Python"
52 python3_caca_SUMMARY="${SUMMARY} (Py3K bindings)"
53 python3_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
54 python3_caca_CONTENTS=${PYTHON3_SITELIB#/}
55 ruby_caca_CATEGORY="Ruby"
56 ruby_caca_SUMMARY="${SUMMARY} (Ruby bindings)"
57 ruby_caca_CONTENTS="${RUBY_VENDORARCH#/}/*.so ${RUBY_VENDORLIB#/}/*.rb"
58
59 # latex docs FTBFS
60 CYGCONF_ARGS="
61 --disable-debug --enable-doc
62 --enable-x11 --with-x --x-libraries=/usr/lib --enable-gl
63 --enable-imlib2 --enable-ncurses --disable-plugins
64 --disable-cocoa --disable-conio --disable-slang --disable-win32
65 --enable-cxx --disable-csharp --disable-java --enable-python --enable-ruby
66 ac_cv_header_windows_h=no ac_cv_header_winsock2_h=no
67 ac_cv_path_LATEX=no
68 "
69
70 src_install() {
71 cd ${B}
72 cyginstall RUBY_SITEARCHDIR=${RUBY_VENDORARCH} RUBY_SITELIBDIR=${RUBY_VENDORLIB}
73 mv ${D}/usr/share/doc/${NAME}{-dev,}
74 rm -f ${D}/usr/lib/libcucul*.la ${D}/usr/share/doc/libcucul*
75
76 # the python bindings are ctypes-based and Py3K compatible
77 python3into caca
78 dopython3 ${D}${PYTHON_SITELIB}/caca/*.py
79 python3_optimize
80
81 if inherited pypy
82 then
83 pypyinto caca
84 dopypy ${D}${PYTHON_SITELIB}/caca/*.py
85 pypy_optimize
86 fi
87
88 rm -f ${D}/usr/share/man/man1/cacademo.1
89 echo '.so cacafire.1' > ${D}/usr/share/man/man1/cacademo.1
90
91 find ${D}/usr/share/man/man3/ -type f ! -iname 'caca*' ! -iname 'cucul*' -exec rm -f '{}' +
92 }
93
94 KEEP_LA_FILES="none"
This page took 0.035612 seconds and 5 git commands to generate.