dev-libs/mingw-libgnurx: initial ebuild #101468

This commit is contained in:
Mike Frysinger
2016-08-10 17:49:03 +08:00
parent ba55f110bf
commit 2d5acbfd1b
3 changed files with 51 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST mingw-libgnurx-2.5.1-src.tar.gz 125941 SHA256 7147b7f806ec3d007843b38e19f42a5b7c65894a57ffc297a76b0dcd5f675d76 SHA512 b86e5580b82ac17c68c0d2c7239a4e4d59310d357f599c4c4688e605b2f2209a40f8affce85bfd30fa2edde9ced482c433eba07b5b5adf068cd56dbf94224ba3 WHIRLPOOL a8570b9a13307e27d9fc375d41402e13c9557d995e731c6b39c993f0305d02e3dbb10f74bb19463cc48852fc05244c46c90f3356ece06dc930e3815cb3a81b08
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>
@@ -0,0 +1,45 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit autotools
DESCRIPTION="GNU regex library ripped out of glibc for use with mingw apps"
HOMEPAGE="http://mingw.sourceforge.net/"
SRC_URI="mirror://sourceforge/mingw/${P}-src.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
src_prepare() {
default
# Refresh the autotools to modern ones as the bundled ones are ancient.
rm aclocal.m4
cat <<EOF >configure.ac
AC_INIT(libgnurx, ${PV})
AM_INIT_AUTOMAKE
LT_INIT([dlopen win32-dll])
AC_OUTPUT([Makefile])
EOF
cat <<EOF >Makefile.am
include_HEADERS = regex.h
lib_LTLIBRARIES = libgnurx.la
libgnurx_la_SOURCES = regex.c
libgnurx_la_LDFLAGS = -no-undefined -version-info 0:0:0 -export-dynamic
EOF
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
find "${ED}" -name '*.la' -delete
}