From d834ebd9b0f56f9f1765f1995c7a9a11d5fda3b4 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Tue, 31 Jul 2018 15:02:28 -0500 Subject: user/mimetic: new package --- user/mimetic/APKBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++ user/mimetic/fix-compile.patch | 36 +++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 user/mimetic/APKBUILD create mode 100644 user/mimetic/fix-compile.patch diff --git a/user/mimetic/APKBUILD b/user/mimetic/APKBUILD new file mode 100644 index 000000000..6c3a4c542 --- /dev/null +++ b/user/mimetic/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +pkgname=mimetic +pkgver=0.9.8 +pkgrel=0 +pkgdesc="C++ library for processing MIME" +url="http://www.codesink.org/mimetic_mime_library.html" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://www.codesink.org/download/mimetic-$pkgver.tar.gz + fix-compile.patch + " + +prepare() { + cd "$builddir" + default_prepare + update_config_sub +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} +doc() { + depends="doxygen" + default_doc +} + +sha512sums="4157eecb3e26af314d475c91192a357d6da35271a07a07b037d5037e9af84952ce2636874e86df0e94e8887dcfdb8f594a1ba04e6448181e436b0e2675f48f58 mimetic-0.9.8.tar.gz +26badbaea0e9392080ece1cfda41d16a4fa87850e92edb4120e0a080fcebeeebaf28adb0fc73ba56ecacfc670bc315b2255c9c101471beb09068b1b4c4c8c473 fix-compile.patch" diff --git a/user/mimetic/fix-compile.patch b/user/mimetic/fix-compile.patch new file mode 100644 index 000000000..3bb93fa9a --- /dev/null +++ b/user/mimetic/fix-compile.patch @@ -0,0 +1,36 @@ +diff -Nurd mimetic-0.9.8/test/cutee.cxx mimetic-0.9.8.new/test/cutee.cxx +--- mimetic-0.9.8/test/cutee.cxx 2014-06-17 03:12:00.000000000 -0500 ++++ mimetic-0.9.8.new/test/cutee.cxx 2018-07-26 22:40:21.556153371 -0500 +@@ -225,7 +225,7 @@ + _( " run_" << *beg << "();" ); + _( " tearDown();" ); + _( " }" ); +- _( " uint count() { return " << m_fnList.size() << "; }" ); ++ _( " unsigned int count() { return " << m_fnList.size() << "; }" ); + _( "};" ); + _("static struct "<