libebook-0.1.3.recipe revision aa55bfc6
1SUMMARY="A library to import many e-book formats"
2DESCRIPTION="libe-book is a library and set of tools for reading and \
3converting various reflowable e-book formats."
4HOMEPAGE="https://sourceforge.net/projects/libebook/"
5COPYRIGHT="David Tardon"
6LICENSE="MPL v2.0"
7REVISION="2"
8SOURCE_URI="http://prdownloads.sourceforge.net/libebook/libe-book-$portVersion.tar.bz2"
9CHECKSUM_SHA256="5170222409c13b75ffafa99a42b1125e16202e3ba5fa40be37e9b7e2edca95aa"
10SOURCE_DIR="libe-book-$portVersion"
11
12ARCHITECTURES="!x86_gcc2 x86 x86_64"
13SECONDARY_ARCHITECTURES="x86"
14
15PROVIDES="
16	libebook$secondaryArchSuffix = $portVersion
17	cmd:ebook2html$secondaryArchSuffix
18	cmd:ebook2raw$secondaryArchSuffix
19	cmd:ebook2text$secondaryArchSuffix
20	lib:libe_book_0.1$secondaryArchSuffix = 1.0.3 compat >= 1
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	lib:libicui18n$secondaryArchSuffix
25	lib:liblangtag$secondaryArchSuffix
26	lib:librevenge_0.0$secondaryArchSuffix
27	lib:librevenge_generators_0.0$secondaryArchSuffix
28	lib:librevenge_stream_0.0$secondaryArchSuffix
29	lib:libxml2$secondaryArchSuffix
30	lib:libz$secondaryArchSuffix
31	"
32
33PROVIDES_devel="
34	libebook${secondaryArchSuffix}_devel = $portVersion
35	devel:libe_book_0.1$secondaryArchSuffix = 1.0.3 compat >= 1
36	"
37REQUIRES_devel="
38	libebook$secondaryArchSuffix == $portVersion base
39	"
40
41BUILD_REQUIRES="
42	haiku${secondaryArchSuffix}_devel
43	devel:libboost_system$secondaryArchSuffix
44	devel:libcppunit$secondaryArchSuffix
45	devel:libicui18n$secondaryArchSuffix
46	devel:liblangtag$secondaryArchSuffix
47	devel:librevenge_0.0$secondaryArchSuffix
48	devel:librevenge_generators_0.0$secondaryArchSuffix
49	devel:librevenge_stream_0.0$secondaryArchSuffix
50	devel:libxml2$secondaryArchSuffix
51	devel:libz$secondaryArchSuffix
52	"
53BUILD_PREREQUIRES="
54	cmd:aclocal
55	cmd:autoconf
56	cmd:autoheader
57	cmd:automake
58	cmd:gcc$secondaryArchSuffix
59	cmd:gperf
60	cmd:icu_config$secondaryArchSuffix
61	cmd:ld$secondaryArchSuffix
62	cmd:libtoolize$secondaryArchSuffix
63	cmd:make
64	cmd:pkg_config$secondaryArchSuffix
65	"
66
67BUILD()
68{
69	autoreconf -fi
70	runConfigure ./configure --disable-werror
71	make $jobArgs
72}
73
74INSTALL()
75{
76	make install
77
78	rm $libDir/libe-book-0.1.la
79
80	prepareInstalledDevelLibs libe-book-0.1
81	fixPkgconfig
82
83	packageEntries devel $developDir
84}
85
86TEST()
87{
88	make check
89}
90