changeset 635:fe7d138ea9cb

dns/libidn: initial import, closes #1700
author David Demelier <markand@malikania.fr>
date Wed, 24 Jul 2019 21:10:00 +0200
parents 998d6b713029
children e9489deb5b00
files dns/libidn/libidn.sh dns/libidn/libidn.sha1 dns/libidn2/libidn2.sh
diffstat 3 files changed, 66 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dns/libidn/libidn.sh	Wed Jul 24 21:10:00 2019 +0200
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+PKGNAME=libidn
+PKGVERSION=1.35
+PKGREVISION=1
+PKGLICENSE="LGPLv3+ GPLv2+ GPLv3+"
+PKGSUMMARY="implementation of the Stringprep, Punycode and IDNA specifications"
+PKGDOWNLOAD="https://ftp.gnu.org/gnu/libidn/$PKGNAME-$PKGVERSION.tar.gz"
+PKGOPTIONS="NLS"
+
+: ${CHOST:=$(uname -m)-linux-musl}
+: ${CBUILD:=$(uname -m)-linux-musl}
+: ${CC:=clang}
+: ${CFLAGS:=-O2}
+: ${LDFLAGS:=}
+: ${LIBS:=}
+: ${NLS:=yes}
+
+if [ "$NLS" = "yes" ]; then
+	PKGDEPENDS="core/gettext:build $PKGDEPENDS"
+	with_nls="--enable-nls"
+else
+	with_nls="--disable-nls"
+fi
+
+build()
+{
+	rm -rf $PKGNAME-$PKGVERSION
+	tar xvf $PKGNAME-$PKGVERSION.tar.gz
+	cd $PKGNAME-$PKGVERSION
+
+	CC="$CC" \
+	CFLAGS="$CFLAGS" \
+	LDFLAGS="$LDFLAGS" \
+	LIBS="$LIBS" \
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix= \
+		--disable-static \
+		--enable-shared \
+		$with_nls
+	make
+	make install DESTDIR=$DESTDIR
+	rm -f $DESTDIR/lib/libidn.la
+
+	cd ..
+	rm -rf $PKGNAME-$PKGVERSION
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dns/libidn/libidn.sha1	Wed Jul 24 21:10:00 2019 +0200
@@ -0,0 +1,1 @@
+d06a1e04caf5478cfb3ce525a83701a73b564fca  libidn-1.35.tar.gz
--- a/dns/libidn2/libidn2.sh	Wed Jul 24 13:54:24 2019 +0200
+++ b/dns/libidn2/libidn2.sh	Wed Jul 24 21:10:00 2019 +0200
@@ -19,7 +19,7 @@
 PKGVERSION=2.1.1a
 PKGREVISION=1
 PKGLICENSE="LGPLv3+ GPLv2+ GPLv3+"
-PKGSUMMARY="GNU one of README.licenses.md or CUSTOM"
+PKGSUMMARY="implementation of the Stringprep, Punycode and IDNA specifications"
 PKGDOWNLOAD="https://ftp.gnu.org/gnu/libidn/$PKGNAME-$PKGVERSION.tar.gz"
 PKGDEPENDS="lib/libunistring"
 PKGOPTIONS="NLS"