diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-08-15 11:46:52 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-08-15 11:49:15 +0200 |
commit | 053c3730bc66ddac70d3d3e3a21f8eb4a4312f74 (patch) | |
tree | 05a08cdac28e9e396f0f23b776c88598713b4104 /dev-ml | |
parent | dev-util/debhelper: Old. (diff) | |
download | gentoo-053c3730bc66ddac70d3d3e3a21f8eb4a4312f74.tar.gz gentoo-053c3730bc66ddac70d3d3e3a21f8eb4a4312f74.tar.bz2 gentoo-053c3730bc66ddac70d3d3e3a21f8eb4a4312f74.zip |
dev-ml/core: convert to opam.eclass and add fix for glibc 2.25
Package-Manager: Portage-2.3.7, Repoman-2.3.3
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/core/core-0.9.1-r1.ebuild (renamed from dev-ml/core/core-0.9.1.ebuild) | 14 | ||||
-rw-r--r-- | dev-ml/core/files/glibc225.patch | 12 |
2 files changed, 16 insertions, 10 deletions
diff --git a/dev-ml/core/core-0.9.1.ebuild b/dev-ml/core/core-0.9.1-r1.ebuild index 64835cb4c69c..45cc74eb4553 100644 --- a/dev-ml/core/core-0.9.1.ebuild +++ b/dev-ml/core/core-0.9.1-r1.ebuild @@ -3,6 +3,8 @@ EAPI=6 +inherit opam + DESCRIPTION="Jane Street's alternative to the standard library" HOMEPAGE="https://github.com/janestreet/core" SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -13,7 +15,6 @@ KEYWORDS="~amd64" IUSE="" RDEPEND=" - dev-lang/ocaml:= dev-ml/base:= dev-ml/configurator:= dev-ml/core_kernel:= @@ -25,12 +26,5 @@ RDEPEND=" dev-ml/stdio:= dev-ml/ocaml-migrate-parsetree:= " -DEPEND="${RDEPEND} dev-ml/opam dev-ml/jbuilder" - -src_install() { - opam-installer -i \ - --prefix="${ED}/usr" \ - --libdir="${D}/$(ocamlc -where)" \ - --docdir="${ED}/usr/share/doc/${PF}" \ - ${PN}.install || die -} +DEPEND="${RDEPEND} dev-ml/jbuilder" +PATCHES=( "${FILESDIR}/glibc225.patch" ) diff --git a/dev-ml/core/files/glibc225.patch b/dev-ml/core/files/glibc225.patch new file mode 100644 index 000000000000..1dd96c8b7b4b --- /dev/null +++ b/dev-ml/core/files/glibc225.patch @@ -0,0 +1,12 @@ +Index: core-0.9.1/src/unix_stubs.c +=================================================================== +--- core-0.9.1.orig/src/unix_stubs.c ++++ core-0.9.1/src/unix_stubs.c +@@ -40,6 +40,7 @@ + #include <arpa/inet.h> + #include <netdb.h> + #include <ifaddrs.h> ++#include <sys/sysmacros.h> + + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) + #define stat64 stat |