mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
stagit: new recipe (#7114)
This commit is contained in:
49
app-misc/stagit/stagit-1.2.recipe
Normal file
49
app-misc/stagit/stagit-1.2.recipe
Normal file
@@ -0,0 +1,49 @@
|
||||
SUMMARY="Static git page generator"
|
||||
DESCRIPTION="It generates static HTML pages for a git repository"
|
||||
HOMEPAGE="http://codemadness.org/stagit.html"
|
||||
COPYRIGHT="2016-2022 Hiltjo Posthuma"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://codemadness.org/releases/stagit/stagit-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5659bd8ba7e1417edd40f7b7781a8ea26939ab6aa513409023835f04875921c5"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
binVersionCompat="$portVersion compat >= 0.0"
|
||||
PROVIDES="
|
||||
stagit$secondaryArchSuffix = $binVersionCompat
|
||||
cmd:stagit$commandSuffix = $binVersionCompat
|
||||
cmd:stagit_index$commandSuffix = $binVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgit2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgit2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs CC=gcc LDFLAGS="-lbsd"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install PREFIX=$prefix MANPREFIX=$manDir DOCPREFIX=$dataDir/stagit
|
||||
}
|
||||
Reference in New Issue
Block a user