bencode-tools, new recipe (#773)

This commit is contained in:
Schrijvers Luc
2016-10-21 23:49:57 +02:00
committed by waddlesplash
parent 313911610b
commit c833aee05f
2 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
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="1"
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="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
bencode = $portVersion
cmd:bencat = $portVersion
lib:libbencodetools = $portVersion
"
REQUIRES="
haiku
lib:libbencodetools
"
PROVIDES_devel="
bencode_devel = $portVersion
devel:libbencodetools = $portVersion
"
REQUIRES_devel="
bencode == $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
}

View File

@@ -0,0 +1,21 @@
From c93bb93e74c6d568990572f81eff3eea9658f75d Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sat, 20 Aug 2016 17:11:08 +0200
Subject: remove the include directory
diff --git a/Makefile.in b/Makefile.in
index d03e60f..2ded1d3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -30,6 +30,7 @@ install:
install -m 644 include/bencodetools/*.h "$(PREFIX)/include/bencodetools/"
install -m 644 libbencodetools.so "$(PREFIX)/lib/"
install bencat "$(PREFIX)/bin/"
+ rm -R "$(PREFIX)/include"
%.o: %.c
$(CC) $(CFLAGS) -c $<
--
2.7.0