diff --git a/app-text/an/an-1.2~git.recipe b/app-text/an/an-1.2~git.recipe new file mode 100644 index 000000000..8dda791a4 --- /dev/null +++ b/app-text/an/an-1.2~git.recipe @@ -0,0 +1,59 @@ +SUMMARY="A fast anagram generator for alphabetic languages" +DESCRIPTION="an is a fast anagram generator that uses the system's built-in \ +word dictionary to form anagrams. an supports Unicode and theoretically should \ +work for any alphabetic language." +HOMEPAGE="https://salsa.debian.org/pm/an" +COPYRIGHT="2012-2014 Paul Martin" +LICENSE="GNU GPL v2" +REVISION="1" +srcGitRev="403d9a4fd75a5cfae9d5388c4a0e7f889145177f" +SOURCE_URI="https://salsa.debian.org/pm/an/-/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="e4f717f65f5cccaf610f66aaa1755a42370e1d6d7c26411255a283cdb4febdb9" +SOURCE_FILENAME="an-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="an-$srcGitRev" + +ARCHITECTURES="x86_gcc2 x86_64" + +PROVIDES=" + $portName = $portVersion + cmd:an = $portVersion + " +REQUIRES=" + haiku + lib:libicui18n + lib:libicuuc + lib:libicudata + " + +BUILD_REQUIRES=" + haiku_devel + devel:libicui18n + devel:libicuuc + devel:libicudata + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:make + cmd:sed + " + +PATCH() +{ + sed -i\ + "s|/usr.*|/boot/system/data/spell_check/word_dictionary/words\"|"\ + an.h +} + +BUILD() +{ + make INSTALLDIR=$binDir MANDIR=$manDir/man6 $jobArgs +} + +INSTALL() +{ + mkdir -p $binDir $manDir/man6 + sed -i "s|/usr.*|/boot/system/data/spell_check/word_dictionary/words|"\ + an.6 + + make install INSTALLDIR=$binDir MANDIR=$manDir/man6 +}