diff --git a/sys-devel/ham/ham-0.1.recipe b/sys-devel/ham/ham-0.1.recipe new file mode 100644 index 000000000..a875b85bb --- /dev/null +++ b/sys-devel/ham/ham-0.1.recipe @@ -0,0 +1,62 @@ +SUMMARY="Build tool, replacement for jam" +DESCRIPTION="Ham is a a meaty Jam build tool replacement + +One of the main goals is to have an API library, so that IDEs can implement \ +actual Jam support. Another one is to add features that are complicated to add \ +in Jam (like more intelligent header scanning, plug-in support (for header \ +scanning, archive types), dependence of targets on their actual actions (i.e. \ +Jamfile change would trigger rebuild of affected targets) +" +HOMEPAGE="https://github.com/weinhold/Ham" +SRC_URI="git+https://github.com/weinhold/Ham#b83d767047a93ed58717a6c7662b8838342a54fb" +REVISION="1" +LICENSE="MIT" +COPYRIGHT="2010-2013 Ingo Weinhold" + +ARCHITECTURES="x86" +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" + +PROVIDES=" + ham${secondaryArchSuffix} = $portVersion + cmd:ham${secondaryArchSuffix} = $portVersion + lib:libham${secondaryArchSuffix} = $portVersion + " + +REQUIRES=" + haiku${secondaryArchSuffix} + lib:libgcc_s$secondaryArchSuffix + lib:libstdc++$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc${secondaryArchSuffix} + cmd:jam + " + +BUILD() +{ + jam $jobArgs +} + +INSTALL() +{ + mkdir -p $binDir + mkdir -p $libDir + cp -a generated/objects/haiku/x86/release/ham $binDir + cp -a generated/objects/haiku/x86/release/libham.so $libDir +} + +TEST() +{ + LIBRARY_PATH=$LIBRARY_PATH:generated/objects/haiku/x86/release \ + generated/objects/haiku/x86/release/ham-tests +}