Added gnulib recipe.

Just copies binary and related files to $dataDir/gnulib
and symlinks binary to $binDir/gnulib_tool
This commit is contained in:
Theodore Kokkoris
2013-12-24 15:05:56 +00:00
parent 1b493dad3e
commit 78cbf32a67
2 changed files with 47 additions and 24 deletions

View File

@@ -0,0 +1,47 @@
DESCRIPTION="Gnulib is a source code library that provides basic functionality to programs and libraries.
Many software packages make use of Gnulib to avoid reinventing the portability wheel.
Gnulib is intended to be the canonical source for most of the important “portability” and/or common files for software projects.
These are files intended to be shared at the source level; Gnulib is not a typical library meant to be installed and linked against. Thus, unlike most projects, Gnulib does not normally generate a source tarball distribution; instead, developers grab modules directly from the source repository."
SUMMARY="Gnulib is a library of common routines intended to be shared at the source level"
HOMEPAGE="http://www.gnu.org/software/gnulib"
SRC_URI="git+git://git.savannah.gnu.org/gnulib.git"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
LICENSE="GNULIB"
COPYRIGHT="1985-2013 Free Software Foundation."
PROVIDES="
gnulib = $portVersion
cmd:gnulib_tool$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="" # No build, no requirements
BUILD_PREREQUIRES="" # No build, no requirements
BUILD()
{
# Nothing to build
exit 0
}
INSTALL()
{
# Try to install gnulib-tool
mkdir -p $dataDir/gnulib $binDir
cp gnulib-tool $dataDir/gnulib/gnulib_tool # Fix binary name in help
cp -R check-copyright check-module posix-modules build-aux config doc lib m4 modules tests top $dataDir/gnulib
ln -s $dataDir/gnulib/gnulib_tool $binDir/gnulib_tool
}
TEST()
{
make check
}

View File

@@ -1,24 +0,0 @@
DESCRIPTION="Gnulib is a library of common routines intended to be shared at the source level"
HOMEPAGE="http://www.gnu.org/software/gnulib"
SRC_URI="git+git://git.savannah.gnu.org/gnulib.git"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
#CHECKSUM_MD5=""
BUILD()
{
echo "gnulib isn't meant to be built."
}
INSTALL()
{
echo "gnulib isn't meant to be installed."
}
TEST()
{
make check
}
LICENSE="GNULIB"
COPYRIGHT="1985-2011 Free Software Foundation."