pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libgabe: Import libgabe as wip/libgabe



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Tue May 7 21:27:00 2019 +0000
Changeset:	d0e67c9040a248c106965ac51df622f3bb6e5899

Modified Files:
	Makefile
Added Files:
	libgabe/DESCR
	libgabe/Makefile
	libgabe/PLIST
	libgabe/buildlink3.mk
	libgabe/distinfo
	libgabe/patches/patch-configure

Log Message:
libgabe: Import libgabe as wip/libgabe

Fork of the CP ABE library libbswabe (http://hms.isi.jhu.edu/acsc/cpabe/)
replacing OpenSSL with libgcrypt and fixing some bugs.

This package is intended to be used with wip/libpbc, and for
wip/gnunet as well as a couple of lined up packages.

It has no version number release, although it keeps one internally,
which should be fixed: https://github.com/schanzen/libgabe/issues/4

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d0e67c9040a248c106965ac51df622f3bb6e5899

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                        |  1 +
 libgabe/DESCR                   |  2 ++
 libgabe/Makefile                | 29 +++++++++++++++++++++++++++++
 libgabe/PLIST                   |  3 +++
 libgabe/buildlink3.mk           | 20 ++++++++++++++++++++
 libgabe/distinfo                |  3 +++
 libgabe/patches/patch-configure | 26 ++++++++++++++++++++++++++
 7 files changed, 84 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9dc7c85269..67fc97d196 100644
--- a/Makefile
+++ b/Makefile
@@ -1867,6 +1867,7 @@ SUBDIR+=	libfirm-git
 SUBDIR+=	libfolks
 SUBDIR+=	libfplll
 SUBDIR+=	libftdi1
+SUBDIR+=	libgabe
 SUBDIR+=	libgadu
 SUBDIR+=	libgda-bdb
 SUBDIR+=	libgda-ldap
diff --git a/libgabe/DESCR b/libgabe/DESCR
new file mode 100644
index 0000000000..8938666162
--- /dev/null
+++ b/libgabe/DESCR
@@ -0,0 +1,2 @@
+Fork of the CP ABE library libbswabe (http://hms.isi.jhu.edu/acsc/cpabe/)
+replacing OpenSSL with libgcrypt and fixing some bugs.
diff --git a/libgabe/Makefile b/libgabe/Makefile
new file mode 100644
index 0000000000..3a1144e5a4
--- /dev/null
+++ b/libgabe/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=	libgabe
+CATEGORIES=	security devel
+PKGNAME=	libgabe-0.0.0
+MASTER_SITES=	${MASTER_SIZE_GITHUB:=schanzen/}
+GITHUB_PROJECT=	libgabe
+EXTRACT_SUFX=	# none
+
+GIT_REPOSITORIES=	libgabe
+GIT_REPO.libgabe=	https://github.com/schanzen/libgabe.git
+GIT_REVISION=		f72c594eaed35d5a506e8f6c091200a73e17e702
+
+MAINTAINER=	ng0%n0.is@localhost
+HOMEPAGE=	https://github.com/schanzen/
+COMMENT=	Ciphertext-Policy Attribute-Based Encryption library, fork of libbswabe
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=	c c++
+
+GNU_CONFIGURE=	yes
+USE_TOOLS+=	gmake pkg-config
+
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../wip/libpbc/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libgabe/PLIST b/libgabe/PLIST
new file mode 100644
index 0000000000..8e630e34fe
--- /dev/null
+++ b/libgabe/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+include/gabe.h
+lib/libgabe.a
diff --git a/libgabe/buildlink3.mk b/libgabe/buildlink3.mk
new file mode 100644
index 0000000000..a5eac1486a
--- /dev/null
+++ b/libgabe/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libgabe
+
+.if !defined(LIBGABE_BUILDLINK3_MK)
+LIBGABE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libgabe+=	libgabe>=0.0
+BUILDLINK_PKGSRCDIR.libgabe?=	../../wip/libgabe
+
+pkgbase:= libgabe
+.include "../../mk/pkg-build-options.mk"
+
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../wip/libpbc/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.endif # LIBGABE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libgabe
diff --git a/libgabe/distinfo b/libgabe/distinfo
new file mode 100644
index 0000000000..05f2c82f7e
--- /dev/null
+++ b/libgabe/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-configure) = db342fe57ba8f52e132ebcebab70e626e64bf720
diff --git a/libgabe/patches/patch-configure b/libgabe/patches/patch-configure
new file mode 100644
index 0000000000..d62817fef6
--- /dev/null
+++ b/libgabe/patches/patch-configure
@@ -0,0 +1,26 @@
+$NetBSD$
+
+https://github.com/schanzen/libgabe/pull/3
+
+--- configure.old
++++ configure
+@@ -2253,15 +2253,15 @@ else
+ fi
+ 
+ if test "x$enable_debug" = "xyes"; then
+-  CFLAGS="-g -Wall -fPIC"
+-  LDFLAGS="-g -Wall"
++  CFLAGS="$CFLAGS -g -Wall -fPIC"
++  LDFLAGS="$LDFLAGS -g -Wall"
+   $as_echo "#define BSWABE_DEBUG 1" >>confdefs.h
+ 
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+ else
+-  CFLAGS="-O3 -Wall -fPIC"
+-  LDFLAGS="-O3 -Wall"
++  CFLAGS="$CFLAGS -Wall -fPIC"
++  LDFLAGS="$LDFLAGS -Wall"
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }
+ fi


Home | Main Index | Thread Index | Old Index