Add gnutls with bep contributed by michaelvoliveira(with changes by me) and patch from kaliber.

It's completely untested because one of the dependencies fails to build(libgpg-error).
This commit is contained in:
Chris Roberts
2010-05-22 19:45:21 +00:00
parent 2586a4bc5d
commit af2516811e
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
DESCRIPTION="A TLS 1.0 and SSL 3.0 implementation for the GNU project"
HOMEPAGE="http://www.gnu.org/software/gnutls/"
SRC_URI="ftp://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2"
CHECKSUM_MD5="eb0a6d7d3cb9ac684d971c14f9f6d3ba"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND="dev-libs/libgcrypt >= 1.4.5
dev-libs/libgpg-error >= 1.7"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2009-2010 Free Software Fundation Inc.
2004-2008 Simon Josefsson
2000-2004 Nikos Mavrogiannopoulos"
BUILD {
cd gnutls-2.8.6
libtoolize --force --copy --install
autoreconf
cd lib
libtoolize --force --copy --install
autoreconf
cd ..
cd libextra
libtoolize --force --copy --install
autoreconf
cd ..
./configure --prefix=/boot/common
make
}
INSTALL {
cd gnutls-2.8.6
make install
}

View File

@@ -0,0 +1,21 @@
diff -Naur gnutls-2.8.6/doc/scripts/sort2.pl gnutls-2.8.6-haiku/doc/scripts/sort2.pl
--- gnutls-2.8.6/doc/scripts/sort2.pl 2009-06-02 15:59:32.012058624 -0300
+++ gnutls-2.8.6-haiku/doc/scripts/sort2.pl 2010-05-14 23:31:26.698875904 -0300
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/bin/env perl
sub key_of_record {
local($record) = @_;
diff -Naur gnutls-2.8.6/gl/string.in.h gnutls-2.8.6-haiku/gl/string.in.h
--- gnutls-2.8.6/gl/string.in.h 2009-06-02 15:59:32.064749568 -0300
+++ gnutls-2.8.6-haiku/gl/string.in.h 2010-05-14 23:33:36.399245312 -0300
@@ -36,7 +36,7 @@
# endif
/* The attribute __pure__ was added in gcc 2.96. */
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
-# define __pure__ /* empty */
+# define __pure__ none /* empty */
# endif
#endif