diff --git a/sys-devel/libuuid/libuuid-1.0.3.recipe b/sys-devel/libuuid/libuuid-1.0.3.recipe new file mode 100644 index 000000000..7aa19f916 --- /dev/null +++ b/sys-devel/libuuid/libuuid-1.0.3.recipe @@ -0,0 +1,63 @@ +SUMMARY="Portable uuid C library" +DESCRIPTION="A universally unique identifier (UUID) is an identifier standard \ +used in software construction, standardized by the Open Software Foundation \ +(OSF) as part of the Distributed Computing Environment (DCE). + +The intent of UUIDs is to enable distributed systems to uniquely identify \ +information without significant central coordination. In this context the word \ +unique should be taken to mean \"practically unique\" rather than \"guaranteed \ +unique\". +" +HOMEPAGE="http://sourceforge.net/projects/libuuid/" +REVISION="1" +LICENSE="GNU GPL v2" +ARCHITECTURES="x86_gcc2" +COPYRIGHT="2013-2014 Ralph Böhme" + +SRC_URI="http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz" +PATCHES="libuuid-1.0.3.patchset" + +PROVIDES=" + libuuid = $portVersion + lib:libuuid = 1.0.0 compat >= 1 +" + +REQUIRES=" + haiku >= $haikuVersion +" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:awk + cmd:gcc + cmd:make +" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLib libuuid + packageEntries devel $developDir +} + +TEST() +{ + make check + ./test_uuid +} + +PROVIDES_devel=" + libuuid_devel = $portVersion + devel:libuuid +" + +REQUIRES_devel=" + libuuid == $portVersion base +" diff --git a/sys-devel/libuuid/patches/libuuid-1.0.3.patchset b/sys-devel/libuuid/patches/libuuid-1.0.3.patchset new file mode 100644 index 000000000..babf544e7 --- /dev/null +++ b/sys-devel/libuuid/patches/libuuid-1.0.3.patchset @@ -0,0 +1,24 @@ +From dccd4cbf2192dd45611fc121b9e70178e616212a Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Wed, 22 Oct 2014 21:18:47 +0200 +Subject: Fix build on Haiku. + +It sems this include is useless. + +diff --git a/randutils.c b/randutils.c +index 80893d3..e7fa7c3 100644 +--- a/randutils.c ++++ b/randutils.c +@@ -13,7 +13,9 @@ + #include + #include + ++#ifndef __HAIKU__ + #include ++#endif + + #include "randutils.h" + +-- +1.8.3.4 +