summaryrefslogtreecommitdiff
path: root/user/libverto
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 21:50:27 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-22 21:50:27 -0500
commitc8fe5dfd5a5d6967eed5c69285df9af4a9560873 (patch)
tree25c9ac195535b5e2c61b2a0594365e2f66efb0a6 /user/libverto
parentb620be5c4f20869e86aa67e60cec74f178c01057 (diff)
downloadpackages-c8fe5dfd5a5d6967eed5c69285df9af4a9560873.tar.gz
packages-c8fe5dfd5a5d6967eed5c69285df9af4a9560873.tar.bz2
packages-c8fe5dfd5a5d6967eed5c69285df9af4a9560873.tar.xz
packages-c8fe5dfd5a5d6967eed5c69285df9af4a9560873.zip
user/libverto: pull in, modernise, fix
Diffstat (limited to 'user/libverto')
-rw-r--r--user/libverto/001-libev-not-compliant-c89.patch15
-rw-r--r--user/libverto/APKBUILD54
2 files changed, 69 insertions, 0 deletions
diff --git a/user/libverto/001-libev-not-compliant-c89.patch b/user/libverto/001-libev-not-compliant-c89.patch
new file mode 100644
index 000000000..502aefe98
--- /dev/null
+++ b/user/libverto/001-libev-not-compliant-c89.patch
@@ -0,0 +1,15 @@
+diff --git a/configure.ac b/configure.ac
+index 09ee123..b7b5908 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -7,8 +7,8 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
+ [AC_USE_SYSTEM_EXTENSIONS],
+ [AC_GNU_SOURCE])
+
+-AC_PROG_CC_C89
+-for flag in -std=c89 -Wall -Wextra; do
++AC_PROG_CC_C99
++for flag in -Wall -Wextra; do
+ AC_TRY_COMPILE([], [return 0;], [CFLAGS="$CFLAGS $flag"],)
+ done
+
diff --git a/user/libverto/APKBUILD b/user/libverto/APKBUILD
new file mode 100644
index 000000000..4e208e48d
--- /dev/null
+++ b/user/libverto/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer:
+pkgname=libverto
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="Main loop abstraction library"
+url="https://github.com/npmccallum/libverto"
+arch="all"
+license="MIT"
+makedepends="glib-dev libevent-dev libev-dev automake autoconf libtool"
+subpackages="$pkgname-dev $pkgname-libev $pkgname-libevent $pkgname-glib"
+source="$pkgname-$pkgver.tar.gz::https://github.com/npmccallum/$pkgname/archive/$pkgver.tar.gz
+ 001-libev-not-compliant-c89.patch
+ "
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ autoreconf -i
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --with-libev \
+ --with-libevent
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+_mv_backend() {
+ pkgdesc="$1 driver for libverto"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libverto-$1.so.* "$subpkgdir"/usr/lib/
+}
+
+libev() { _mv_backend libev; }
+libevent() { _mv_backend libevent; }
+glib() { _mv_backend glib; }
+
+sha512sums="1c5ff810c839a9dbd515f0782e4f742193e4e6d40a5a87e669ceb4765838d30569dc89f2b425c131247fb5f67e354abb472d08fc5e91f4e5a82c05a30d2daac8 libverto-0.3.0.tar.gz
+db713bb388766a3bd4cf7fca579fdd1611f30d53054d246d42c2b106932a3c758347d84ff5138b1135c599437f520dc46d20048bb27e6d305e270fca7ac3a53b 001-libev-not-compliant-c89.patch"