commit:     2d5acbfd1b87c3fb532757bee5167fa7d0cfec50
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 10 09:47:40 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Aug 10 09:49:03 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5acbfd

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

 dev-libs/mingw-libgnurx/Manifest                   |  1 +
 dev-libs/mingw-libgnurx/metadata.xml               |  5 +++
 .../mingw-libgnurx/mingw-libgnurx-2.5.1.ebuild     | 45 ++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-libs/mingw-libgnurx/Manifest b/dev-libs/mingw-libgnurx/Manifest
new file mode 100644
index 0000000..e8a4514
--- /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 0000000..6f49eba
--- /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 0000000..a4990dd
--- /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
+}

Reply via email to