69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
SUMMARY="C and Python tools for manipulating bencoded data"
|
|
DESCRIPTION="bencode-tools is a collection of tools for manipulating \
|
|
bencoded data. See http://en.wikipedia.org/wiki/Bencode for information \
|
|
on bencode format.
|
|
|
|
This was formerly named typevalidator. With the introduction of \
|
|
libbencodetools the project is named bencode-tools."
|
|
HOMEPAGE="http://zakalwe.fi/~shd/foss/bencode-tools/"
|
|
COPYRIGHT="2002-2005 Bram Cohen and Ross Cohen"
|
|
LICENSE="Public Domain
|
|
BSD (3-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="http://zakalwe.fi/~shd/foss/bencode-tools/bencode-tools-2011-03-15.tar.bz2"
|
|
CHECKSUM_SHA256="b97e37a82593d38c44448c6f5571f14e47edbb6545391fab9ffb631bbdd2abec"
|
|
SOURCE_DIR="bencode-tools-2011-03-15"
|
|
PATCHES="bencode_tools-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all ?x86"
|
|
|
|
PROVIDES="
|
|
bencode_tools = $portVersion
|
|
cmd:bencat = $portVersion
|
|
lib:libbencodetools = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libbencodetools
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
bencode_tools_devel = $portVersion
|
|
devel:libbencodetools = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
bencode_tools == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $includeDir $binDir $libDir
|
|
cp -R include/* $includeDir
|
|
|
|
make install
|
|
|
|
# devel package
|
|
prepareInstalledDevelLibs libbencodetools
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|