From 998e11ea70877069cd138a6f3e28d470c1d3495d Mon Sep 17 00:00:00 2001 From: hanya Date: Sun, 18 Jun 2017 14:27:01 +0900 Subject: [PATCH] aobook: new recipe (#1432) * new recipe * Fix start application name with uppercase * Sort entries of requires and others * Remove trailing whitespaces --- app-text/aobook/aobook-1.0.3.recipe | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 app-text/aobook/aobook-1.0.3.recipe diff --git a/app-text/aobook/aobook-1.0.3.recipe b/app-text/aobook/aobook-1.0.3.recipe new file mode 100644 index 000000000..37dd0a11b --- /dev/null +++ b/app-text/aobook/aobook-1.0.3.recipe @@ -0,0 +1,69 @@ +SUMMARY="Aozora Bunko text viewer" +DESCRIPTION="Aobook is a viewer for Aozora Bunko which is a digital library \ +of Japanese-language literature." +HOMEPAGE="https://osdn.net/projects/aobook/" +COPYRIGHT="2014-2017 Azel" +LICENSE="BSD (3-clause)" +REVISION="1" +localRevision="3" +SOURCE_URI="https://github.com/hanya/aobook-haiku/archive/v$portVersion-$localRevision.tar.gz" +CHECKSUM_SHA256="9b39981a204e6094563c2435979da4eea1aa2ef3d1a5e9580961a4e9812d34a7" +SOURCE_DIR="aobook-haiku-$portVersion-$localRevision" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" + +PROVIDES=" + aobook = $portVersion + app:Aobook = $portVersion + " +REQUIRES=" + haiku + lib:libfontconfig + lib:libfreetype + lib:libiconv + lib:libjpeg + lib:libpng + lib:libz + " +BUILD_REQUIRES=" + haiku_devel + devel:libfontconfig + devel:libfreetype + devel:libiconv + devel:libjpeg + devel:libpng + devel:libz + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:g++ + cmd:gcc + cmd:make + " + +USER_SETTINGS_FILES=" + settings/aobook directory + " + +BUILD() +{ + cd mlib + make -f Makefile.haiku $jobArgs OBJ_DIR=objects + + cd ../src + make -f Makefile.haiku $jobArgs OBJ_DIR=objects + make -f Makefile.haiku catalogs $jobArgs OBJ_DIR=objects + make -f Makefile.haiku bindcatalogs $jobArgs OBJ_DIR=objects +} + +INSTALL() +{ + mkdir -p $appsDir + cp -af src/objects/aobook $appsDir/Aobook + + mkdir -p $dataDir/aobook/doc + cp -af doc/manual.html $dataDir/aobook/doc + + addAppDeskbarSymlink $appsDir/Aobook +} +