1SUMMARY="A library of common routines to be shared at the source level"
2DESCRIPTION="Gnulib is a source code library that provides basic functionality \
3to programs and libraries. Many software packages make use of Gnulib to avoid \
4reinventing the portability wheel.
5Gnulib is intended to be the canonical source for most of the important \
6���portability��� and/or common files for software projects.
7These are files intended to be shared at the source level; Gnulib is not a \
8typical library meant to be installed and linked against. Thus, unlike most \
9projects, Gnulib does not normally generate a source tarball distribution; \
10instead, developers grab modules directly from the source repository.
11"
12HOMEPAGE="http://www.gnu.org/software/gnulib"
13COPYRIGHT="1985-2013 Free Software Foundation."
14LICENSE="GNULIB"
15REVISION="1"
16SOURCE_URI="https://github.com/coreutils/gnulib/archive/6cc32c63e80bc1a30c521b2f07f2b54909b59892.tar.gz"
17CHECKSUM_SHA256="fa9f4b8756b303e45703b7b62f552ea02d97fe4b38c197fa115f4133bb777ca7"
18SOURCE_DIR="gnulib-6cc32c63e80bc1a30c521b2f07f2b54909b59892"
19
20ARCHITECTURES="all"
21SECONDARY_ARCHITECTURES="x86"
22
23PROVIDES="
24	gnulib = $portVersion
25	cmd:gnulib_tool$secondaryArchSuffix = $portVersion
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	"
30
31BUILD_REQUIRES="" # No build, no requirements
32BUILD_PREREQUIRES="" # No build, no requirements
33
34BUILD()
35{
36	# Nothing to build
37	exit 0
38}
39
40INSTALL()
41{
42	# Try to install gnulib-tool
43
44	mkdir -p $dataDir/gnulib $binDir
45
46	cp gnulib-tool $dataDir/gnulib/gnulib_tool # Fix binary name in help
47	cp -R check-copyright check-module posix-modules build-aux config doc \
48		lib m4 modules tests top $dataDir/gnulib
49	ln -s $dataDir/gnulib/gnulib_tool $binDir/gnulib_tool
50}
51
52TEST()
53{
54	make check
55}
56