From b71a2c4f1c1401ff708779bf8b99d998dc6e902f Mon Sep 17 00:00:00 2001 From: Tudor Nazarie Date: Sat, 21 Jan 2017 17:58:20 +0200 Subject: [PATCH] libepubgen: added recipe (#987) --- app-text/libepubgen/libepubgen-0.0.0.recipe | 82 +++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 app-text/libepubgen/libepubgen-0.0.0.recipe diff --git a/app-text/libepubgen/libepubgen-0.0.0.recipe b/app-text/libepubgen/libepubgen-0.0.0.recipe new file mode 100644 index 000000000..96be28b03 --- /dev/null +++ b/app-text/libepubgen/libepubgen-0.0.0.recipe @@ -0,0 +1,82 @@ +SUMMARY="EPUB generator for librevenge" +DESCRIPTION="libepubgen is an EPUB generator for librevenge. It supports \ +librevenge's text document interface and--currently in a very limited \ +way--presentation and vector drawing interfaces." +HOMEPAGE="https://sourceforge.net/projects/libepubgen" +COPYRIGHT="2016 David Tardon" +LICENSE="MPL v2.0" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/libepubgen/libepubgen-$portVersion.tar.gz" +CHECKSUM_SHA256="966f903626a5cea06e197e93d2b11c36c8ccc67655392dc8445856168bb9fe68" + +ARCHITECTURES="!x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libepubgen$secondaryArchSuffix = $portVersion compat >= 0 + lib:libepubgen_0.0$secondaryArchSuffix = $portVersion compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:librevenge_0.0$secondaryArchSuffix + lib:librevenge_generators_0.0$secondaryArchSuffix + lib:librevenge_stream_0.0$secondaryArchSuffix + lib:libboost_system$secondaryArchSuffix + lib:libcppunit$secondaryArchSuffix + " + +PROVIDES_devel=" + libepubgen${secondaryArchSuffix}_devel = $portVersion compat >= 0 + devel:libepubgen_0.0$secondaryArchSuffix = $portVersion compat >= 0 + " +REQUIRES_devel=" + libepubgen$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:librevenge_0.0$secondaryArchSuffix + devel:librevenge_generators_0.0$secondaryArchSuffix + devel:librevenge_stream_0.0$secondaryArchSuffix + devel:libboost_system$secondaryArchSuffix + devel:libcppunit$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoheader + cmd:automake + cmd:awk + cmd:diff + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoheader + automake -a -c --foreign + autoconf + runConfigure ./configure --without-docs --disable-werror + make $jobArgs +} + +INSTALL() +{ + make install + rm $libDir/libepubgen.la + + prepareInstalledDevelLib libepubgen + fixPkgconfig + packageEntries devel $developDir +} + +TEST() +{ + make check +}