From ba409e483bc9940208b321339aa9cac279287f0a Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Tue, 22 Jul 2014 19:52:34 +0200 Subject: [PATCH] libe-book: add recipe for version 0.1.1 --- app-text/libebook/libebook-0.1.1.recipe | 99 +++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 app-text/libebook/libebook-0.1.1.recipe diff --git a/app-text/libebook/libebook-0.1.1.recipe b/app-text/libebook/libebook-0.1.1.recipe new file mode 100644 index 000000000..59fb8419c --- /dev/null +++ b/app-text/libebook/libebook-0.1.1.recipe @@ -0,0 +1,99 @@ +SUMMARY="A library for import of many e-book formats" +DESCRIPTION=" +libe-book is a library and set of tools for reading and converting various \ +reflowable e-book formats. +" +HOMEPAGE="http://sourceforge.net/projects/libebook/" +SRC_URI="http://prdownloads.sourceforge.net/libebook/libe-book-$portVersion.tar.bz2" +LICENSE=" +MPL v2.0 +" +COPYRIGHT=" +David Tardon +" +REVISION="1" +CHECKSUM_SHA256="90353fc60827a33b391d0b63ecfe5239229d489af99ff6ea014ede3b39fa32b5" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +SOURCE_DIR="libe-book-$portVersion" + +PROVIDES=" + libebook$secondaryArchSuffix = $portVersion + cmd:ebook2html$secondaryArchSuffix + cmd:ebook2raw$secondaryArchSuffix + cmd:ebook2text$secondaryArchSuffix + lib:libe_book_0.1$secondaryArchSuffix = 1.0.1 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libboost_system$secondaryArchSuffix + lib:libicudata$secondaryArchSuffix + lib:libicui18n$secondaryArchSuffix + lib:libicuuc$secondaryArchSuffix + lib:librevenge_0.0$secondaryArchSuffix + lib:librevenge_generators_0.0$secondaryArchSuffix + lib:librevenge_stream_0.0$secondaryArchSuffix + lib:libxml2$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + devel:libboost_system$secondaryArchSuffix + devel:libcppunit$secondaryArchSuffix + devel:libicudata$secondaryArchSuffix + devel:libicui18n$secondaryArchSuffix + devel:libicuuc$secondaryArchSuffix + devel:librevenge_0.0$secondaryArchSuffix + devel:librevenge_generators_0.0$secondaryArchSuffix + devel:librevenge_stream_0.0$secondaryArchSuffix + devel:libxml2$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:libtoolize + cmd:autoheader + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:gperf + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoheader + automake + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libe-book-0.1 + fixPkgconfig + + packageEntries devel $developDir +} + +PROVIDES_devel=" + libebook${secondaryArchSuffix}_devel = $portVersion + devel:libe_book_0.1$secondaryArchSuffix = 1.0.1 compat >= 1 + " +REQUIRES_devel=" + libebook$secondaryArchSuffix == $portVersion base + "