ebook_tools: bump version, remove old bep file (#1367)

This commit is contained in:
Schrijvers Luc
2017-06-04 17:21:32 +02:00
committed by Jérôme Duval
parent 98a45b8e0b
commit 5178499277
2 changed files with 66 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
DESCRIPTION="Tools for accessing and converting various ebook file formats"
HOMEPAGE="http://sourceforge.net/projects/ebook-tools/"
SOURCE_URI="http://sourceforge.net/projects/ebook-tools/files/ebook-tools/0.2.1/ebook-tools-0.2.1.tar.gz"
CHECKSUM_MD5="cabbd2ef9148a61ca5f6e60ca63e6045"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND="libzip >= 0.10"
BUILD()
{
cd ebook-tools-0.2.1
sed -i 's/-Wmissing-format-attribute//' CMakeLists.txt
cmake .
make
}
INSTALL()
{
cd ebook-tools-0.2.1
make install
}
LICENSE="MIT"
COPYRIGHT="2008 Ely Levy"

View File

@@ -0,0 +1,66 @@
SUMMARY="Convert ebook file formats"
DESCRIPTION="Tools for accessing and converting various ebook file formats"
HOMEPAGE="http://sourceforge.net/projects/ebook-tools/"
COPYRIGHT="2008 Ely Levy"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/ebook-tools/files/ebook-tools/0.2.2/ebook-tools-0.2.2.tar.gz"
CHECKSUM_SHA256="cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae"
SOURCE_DIR="ebook-tools-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ebook_tools$secondaryArchSuffix = $portVersion
cmd:einfo$secondaryArchSuffix
cmd:lit2epub$secondaryArchSuffix
lib:libepub$secondaryArchSuffix = 0.2.1 compat >= 0.2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libzip$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
ebook_tools${secondaryArchSuffix}_devel
devel:libepub$secondaryArchSuffix = 0.2.1 compat >= 0.2
"
REQUIRES_devel="
ebook_tools$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libzip$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
sed -i 's/-Wmissing-format-attribute//' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX=$prefix
make
}
INSTALL()
{
mkdir -p $binDir $libDir $includeDir
cp bin/einfo $binDir
cp src/tools/lit2epub $binDir
cp libs/* $libDir
cp src/libepub/*.h $includeDir
prepareInstalledDevelLib libepub
packageEntries devel \
$developDir
}