mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-ml/camlidl: drop 1.11-r1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
parent
7668e98b66
commit
df5c4a3914
@ -1,2 +1 @@
|
||||
DIST camlidl111.tar.gz 182421 BLAKE2B 5bd4bf2e2eb73f632c5e99a271e13d6a1b4b815476f2a17aaa6a05a4ccf048f4c58b099219e46d36659711f0473dbf91d484d5dcb12ee2e08327afec92a66b66 SHA512 dfd99cb10ee96de4e8a9a2ee86834a33ce10ba362aea93a061c373336db872ddf4017f2601bc47d1662de2f5699e885166dc984a213ff1c4142d41d7c99d7a21
|
||||
DIST camlidl112.tar.gz 182507 BLAKE2B 3a1e4f3f7341bb3e34397af995c660178850c9a774a44866f458cb7731e143e5e2252355c200c7d82f7d55d765749aa26105642027867623f0f6e3125f98c892 SHA512 b60b666c865bf923b1f2499238fd81232454a5d358960dd2038707bf71916d5dd7432044a01fa272e61cd2af6867aa23330f6f06398f213fd3e92072e1d784a1
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Stub code generator for OCaml"
|
||||
HOMEPAGE="https://github.com/xavierleroy/camlidl"
|
||||
SRC_URI="https://github.com/xavierleroy/${PN}/archive/${PN}$(ver_rs 0-1 '').tar.gz"
|
||||
|
||||
S="${WORKDIR}"/${PN}-${PN}$(ver_rs 0-1 '')
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/nowarn.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "s|ar rc|$(tc-getAR) rc|g" \
|
||||
runtime/Makefile.unix \
|
||||
|| die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Use the UNIX makefile
|
||||
libdir=$(ocamlc -where || die)
|
||||
|
||||
sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix || die
|
||||
sed -i -e "s|BINDIR=.*|BINDIR=${EPREFIX}/usr/bin|" config/Makefile.unix || die
|
||||
ln -s Makefile.unix config/Makefile || die
|
||||
|
||||
# Make
|
||||
emake depend CPP="$(tc-getPROG CPP cpp)"
|
||||
emake -j1 RANLIB="$(tc-getRANLIB)"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
einfo "Running tests..."
|
||||
cd tests || die
|
||||
emake CCPP="$(tc-getCXX)" CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
libdir=$(ocamlc -where || die)
|
||||
dodir "${libdir#${EPREFIX}}"/caml
|
||||
|
||||
dodir /usr/bin
|
||||
dodir /usr/$(get_libdir)/ocaml/stublibs
|
||||
# Install
|
||||
emake BINDIR="${ED}/usr/bin" OCAMLLIB="${D}${libdir}" RANLIB="$(tc-getRANLIB)" install
|
||||
|
||||
# Add package header
|
||||
sed -e "s/@VERSION/${P}/g" "${FILESDIR}/META.camlidl" > "${D}${libdir}/META.camlidl" || die
|
||||
|
||||
# Documentation
|
||||
dodoc README Changes
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user