diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-08-10 17:47:40 +0800 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-08-10 17:49:03 +0800 |
commit | 2d5acbfd1b87c3fb532757bee5167fa7d0cfec50 (patch) | |
tree | d6a285f6f32f1d52d7b3cabb255fc40da3794ebd /dev-libs | |
parent | sys-apps/file: add upstream fix for mingw builds (diff) | |
download | gentoo-2d5acbfd1b87c3fb532757bee5167fa7d0cfec50.tar.gz gentoo-2d5acbfd1b87c3fb532757bee5167fa7d0cfec50.tar.bz2 gentoo-2d5acbfd1b87c3fb532757bee5167fa7d0cfec50.zip |
dev-libs/mingw-libgnurx: initial ebuild #101468
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/mingw-libgnurx/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/mingw-libgnurx/metadata.xml | 5 | ||||
-rw-r--r-- | dev-libs/mingw-libgnurx/mingw-libgnurx-2.5.1.ebuild | 45 |
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/mingw-libgnurx/Manifest b/dev-libs/mingw-libgnurx/Manifest new file mode 100644 index 000000000000..e8a4514a18b5 --- /dev/null +++ b/dev-libs/mingw-libgnurx/Manifest @@ -0,0 +1 @@ +DIST mingw-libgnurx-2.5.1-src.tar.gz 125941 SHA256 7147b7f806ec3d007843b38e19f42a5b7c65894a57ffc297a76b0dcd5f675d76 SHA512 b86e5580b82ac17c68c0d2c7239a4e4d59310d357f599c4c4688e605b2f2209a40f8affce85bfd30fa2edde9ced482c433eba07b5b5adf068cd56dbf94224ba3 WHIRLPOOL a8570b9a13307e27d9fc375d41402e13c9557d995e731c6b39c993f0305d02e3dbb10f74bb19463cc48852fc05244c46c90f3356ece06dc930e3815cb3a81b08 diff --git a/dev-libs/mingw-libgnurx/metadata.xml b/dev-libs/mingw-libgnurx/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-libs/mingw-libgnurx/metadata.xml @@ -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> diff --git a/dev-libs/mingw-libgnurx/mingw-libgnurx-2.5.1.ebuild b/dev-libs/mingw-libgnurx/mingw-libgnurx-2.5.1.ebuild new file mode 100644 index 000000000000..a4990dd7ae87 --- /dev/null +++ b/dev-libs/mingw-libgnurx/mingw-libgnurx-2.5.1.ebuild @@ -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 +} |