summaryrefslogtreecommitdiff
path: root/devel/libaura
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-02-09 05:40:28 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-02-09 05:40:28 +0000
commit6be9a120288cf5a095c657906614d47bdb6fa537 (patch)
tree86c00d7229ab2a139aacaa0cd33915dabc98c966 /devel/libaura
parent595affd1a5c9cb92411b2b55b10feb5e59afe06d (diff)
downloadpkgsrc-6be9a120288cf5a095c657906614d47bdb6fa537.tar.gz
Initial import of libaura-2.0.
libaura is a LIBrary of Assorted Useful Reusable Abstractions. Notably, it provides dictionary and extensible buffer data types, memory management functions (wrappers to malloc() and free()), and filesystem predicates (is_file(), is_dir(), etc.)
Diffstat (limited to 'devel/libaura')
-rw-r--r--devel/libaura/DESCR4
-rw-r--r--devel/libaura/Makefile21
-rw-r--r--devel/libaura/PLIST12
-rw-r--r--devel/libaura/buildlink3.mk18
-rw-r--r--devel/libaura/distinfo5
-rw-r--r--devel/libaura/patches/patch-aa44
6 files changed, 104 insertions, 0 deletions
diff --git a/devel/libaura/DESCR b/devel/libaura/DESCR
new file mode 100644
index 00000000000..4a58fd50999
--- /dev/null
+++ b/devel/libaura/DESCR
@@ -0,0 +1,4 @@
+libaura is a LIBrary of Assorted Useful Reusable Abstractions. Notably,
+it provides dictionary and extensible buffer data types, memory management
+functions (wrappers to malloc() and free()), and filesystem predicates
+(is_file(), is_dir(), etc.)
diff --git a/devel/libaura/Makefile b/devel/libaura/Makefile
new file mode 100644
index 00000000000..d8410fe7187
--- /dev/null
+++ b/devel/libaura/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/02/09 05:40:28 xtraeme Exp $
+#
+
+DISTNAME= libaura-2.0
+CATEGORIES= devel
+MASTER_SITES= http://www.bsdinstaller.org/distfiles/
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://www.bsdinstaller.org/
+COMMENT= LIBrary of Assorted Useful Reusable Abstraction
+
+WRKSRC= ${WRKDIR}/libaura
+USE_BUILDLINK3= yes
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= post-patch
+SUBST_FILES.prefix= Makefile
+SUBST_SED.prefix= -e "s,/usr/local,${PREFIX},g"
+SUBST_MESSAGE.prefix= "Fixing hardcoded paths."
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libaura/PLIST b/devel/libaura/PLIST
new file mode 100644
index 00000000000..62e7c90ea2c
--- /dev/null
+++ b/devel/libaura/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/09 05:40:28 xtraeme Exp $
+include/aura/buffer.h
+include/aura/dict.h
+include/aura/fspred.h
+include/aura/mem.h
+include/aura/popen.h
+lib/libaura.a
+lib/libaura.so
+lib/libaura.so.2
+lib/libaura.so.${PKGVERSION}
+lib/libaura_pic.a
+@dirrm include/aura
diff --git a/devel/libaura/buildlink3.mk b/devel/libaura/buildlink3.mk
new file mode 100644
index 00000000000..75b337ec9cd
--- /dev/null
+++ b/devel/libaura/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/02/09 05:40:28 xtraeme Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBAURA_BUILDLINK3_MK:= ${LIBAURA_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libaura
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibaura}
+BUILDLINK_PACKAGES+= libaura
+
+.if !empty(LIBAURA_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libaura+= libaura>=2.0
+BUILDLINK_PKGSRCDIR.libaura?= ../../devel/libaura
+.endif # LIBAURA_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/libaura/distinfo b/devel/libaura/distinfo
new file mode 100644
index 00000000000..62b5715d516
--- /dev/null
+++ b/devel/libaura/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/02/09 05:40:28 xtraeme Exp $
+
+SHA1 (libaura-2.0.tar.gz) = 4f91d8efaca9ffb2b9ae244187bd49f7c1969d6a
+Size (libaura-2.0.tar.gz) = 10682 bytes
+SHA1 (patch-aa) = a3b7e2540c289f6eb4222464efd86c918e8cfa9d
diff --git a/devel/libaura/patches/patch-aa b/devel/libaura/patches/patch-aa
new file mode 100644
index 00000000000..f21672ccbd0
--- /dev/null
+++ b/devel/libaura/patches/patch-aa
@@ -0,0 +1,44 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/02/09 05:40:28 xtraeme Exp $
+
+--- fspred.c.orig 2005-02-09 04:36:15.000000000 +0100
++++ fspred.c 2005-02-09 04:41:15.000000000 +0100
+@@ -49,6 +49,12 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++#if (__NetBSD_Version__ >= 200040000)
++#define STATFS statvfs
++#else
++#define STATFS statfs
++#endif
++
+ /** PREDICATES **/
+
+ int
+@@ -160,7 +166,7 @@
+ int
+ is_mountpoint_mounted(char *mtpt)
+ {
+- struct statfs *mt_array, *mt_ptr;
++ struct STATFS *mt_array, *mt_ptr;
+ int count;
+
+ count = getmntinfo(&mt_array, MNT_WAIT);
+@@ -174,7 +180,7 @@
+ int
+ is_device_mounted(char *device)
+ {
+- struct statfs *mt_array, *mt_ptr;
++ struct STATFS *mt_array, *mt_ptr;
+ int count;
+
+ count = getmntinfo(&mt_array, MNT_WAIT);
+@@ -188,7 +194,7 @@
+ int
+ is_any_slice_mounted(char *diskdev)
+ {
+- struct statfs *mt_array, *mt_ptr;
++ struct STATFS *mt_array, *mt_ptr;
+ int count;
+
+ count = getmntinfo(&mt_array, MNT_WAIT);