summaryrefslogtreecommitdiff
path: root/dev-libs/ffcall
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/ffcall
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/ffcall')
-rw-r--r--dev-libs/ffcall/Manifest13
-rw-r--r--dev-libs/ffcall/ffcall-1.10-r2.ebuild48
-rw-r--r--dev-libs/ffcall/ffcall-1.10-r5.ebuild75
-rw-r--r--dev-libs/ffcall/ffcall-1.10.ebuild59
-rw-r--r--dev-libs/ffcall/ffcall-1.13.ebuild61
-rw-r--r--dev-libs/ffcall/ffcall-2.0.ebuild64
-rw-r--r--dev-libs/ffcall/files/ffcall-make-jN.patch13
-rw-r--r--dev-libs/ffcall/metadata.xml30
8 files changed, 363 insertions, 0 deletions
diff --git a/dev-libs/ffcall/Manifest b/dev-libs/ffcall/Manifest
new file mode 100644
index 000000000000..a5064599bdfa
--- /dev/null
+++ b/dev-libs/ffcall/Manifest
@@ -0,0 +1,13 @@
+AUX ffcall-make-jN.patch 374 SHA256 041cbdd322c16e4292448fe9e721441ec663abe8b380737005b7ad533d6ed02b SHA512 2b5407bdfccb5395b499f725fd0c538ecb89572189bcdfa9dc196e3329cd6c2490b5b51f0c591fde86b8cd8d55cfbdbf916a3c61112a5d8a3888f2a345501123 WHIRLPOOL 74c6e530e66ebe7db7551dbd993209d5df1f04cb051a54e583c91174abba32be5ea687b7b452416ef31166bd6814af75f9dc744e656ccb2ea69b5f708732210f
+DIST clisp-2.41.tar.bz2 8319471 SHA256 1e5f8d9b04024ae072536ae3271075c1a422c02d3997a729a6b00912ed2ae323 SHA512 638417834cc8b81a893ea98801d8ec3f6e591062bf799a1462fc36ceb3fa0107eb1c55e335cd32e1f9d931692e806d0c59c7557cfaf3af9cb00349b715111489 WHIRLPOOL aaa8a42627621ffc19e527634f0a0f769ffb804132ab29cbe4ca592db03cc10621b968f279f5ba2a92018e16c617f34ddf2ddfbb9993e30b54c8bce643af307a
+DIST ffcall-1.10.tar.gz 914870 SHA256 6f1b5b8fc84b2c0051637fb1e4e4f8b975f5f98bff8fe053c1992347baa4983d SHA512 dceb620907adae5bbbb52cf2d0b0c829242ad22adceb3186b7a887b7ba49e28b607c30179de6b5a0c46a90bd52f9963ce503ca0c69bc3ecf41e3556df094ddca WHIRLPOOL 8f90c8415197ff6d0176b3e95fe8455c0f242264666749ca8228c83df5275fb8c2404a218d0b5170386ad022bc729014cb81b11570e29855305a9efdbfb769d3
+DIST libffcall-1.13.tar.gz 985185 SHA256 1707ce707dbbf57f1bbe9aa56929c0da866046b0d5a26eb0d96d9f0bb29bbce7 SHA512 c059fa89eb3e85bad22d045de074bfc88fae42454821e10905ffd67209b6e6ea44eeab120b869696f77b816aacb9a5af3e4b51c640512e876df1b6da6f296bd4 WHIRLPOOL e79a5eaa0a6d15f81ecac2848dbd57cfc7f05551fbeaacd57b532c07d00778c48834377d3f04a2fedf6009b947786bada1d85ac95e0b7f6a5865981f22fd73a3
+DIST libffcall-2.0.tar.gz 938605 SHA256 41aad2b449d90a5308e72267829db006dc9f9cc8736807082e1f2daef680196c SHA512 d75aa1df97b14692a9137745bae5b24c4d8f739cb1c7f854e7ed47e4a77a49759122abd6b0e445efa56381f47932c13cd21a154b2783649afb9c7a39e73fea04 WHIRLPOOL 62830968e55747ed6a8499b35aa7ab045de4b0b10ea971a6463ea0ff1811b4983ecced817fa2d0b12aac5de750caaf9c0c1603b9b3a33cb7f2e96429637bb39b
+EBUILD ffcall-1.10-r2.ebuild 1260 SHA256 3e26e8f50b34f0915cc1e045a4f5441c581cd38af1487342289d71ab2f1fbf3b SHA512 8a43396689364c05fd1111a2e6ae8ce5c16dcbde640420ab5c1f8b43e21e4446a7c325935370b44d5cb645b555277e927ff701a6c9cd7dbdaa083272202465ba WHIRLPOOL 6708f6c26d0afb05aa92c7cd5bf7f65fa9c92318f096827f21449e14583782523601758ab0fc84e1225f31118f6f9639135173a7ed57179954b4ef6eec1e6203
+EBUILD ffcall-1.10-r5.ebuild 2007 SHA256 8f4b4650322c6724197c57c811e1674324c4f16bcbe91e6ea9091ff3b9d7e87f SHA512 f71390ff4d83dc72139c53b998316bf614ac6587c182e3ea51d7fbed26f8a468d00e0211623c68a9b0e636bcbf5321e0e1c02b46bda8a1f7a684133f5e357ba3 WHIRLPOOL 7dc9416aa1618b2f3f55c8ac475ab3c1db132d1e6ae36b4bfd50655a5a3eb6872e08da9cba9b7aedaa5b83a1953e4f6f2d6472c0cfd6d88dd06b2aac36b6ec10
+EBUILD ffcall-1.10.ebuild 1622 SHA256 5d50fd5fbbccbf05a90bf710eb73bfa8acf3f32af586ec0e96ddf81ce52f2fe1 SHA512 2ef41a0ec232346b4ebb118f953da2f8de54cbf0d8495e2897261cc56450aaf366e806707c95649429bb9e575c697e3b3c55c6c63746c27abbaeddfc77ec1a8b WHIRLPOOL dcc1822f32f779b90e7914bfd6a8c6f8bd6c42d317b50529cd3e5fb882e0a165633f386d1472c2a9add4eb3a2090c3c650c24445c00d3e87d2a5bc27168ddc90
+EBUILD ffcall-1.13.ebuild 1485 SHA256 38067cc39a4488cb70431b874c0aa448e3555e756504f7721b36d766a129729b SHA512 cd06188825a8ceaa04adca8bb532b429faf7d2c25a66c09e51a1ebbe5f9b204bbb9fa470363044e795fb9aed9c135b31e05456fe613da181b41618dfa828c69d WHIRLPOOL cd66bb1d64078ad1db8f2945f007026756fe03b00a5c64fe34025ce2313b995834678acbc713de8e8fc146ed203129e9b6158bff9913d540457b4c45fff4328b
+EBUILD ffcall-2.0.ebuild 1492 SHA256 8bcd875fe04c34f540b20a24bc324dac959c1417dee267ae8003842a379e06ed SHA512 3e39c946ebde355450fcb121296cc2bb513a6a4bac44121ddcb9eac80fdffd60cf583e48e5ed3512a7cdbcd85b47c011e9a08e20dcff6dd6d78432d247781f41 WHIRLPOOL cc6220295c97a85911ad1b44f7d3b3d19da5b9c727c8f6520535c37a6529d2838bff158e95509994343ee442cab627c6233be20454078c2505f4fb1d8c36d26d
+MISC ChangeLog 2656 SHA256 5add85d025118d2a7fdad19b45ae0e0f3f52622f74780d7b83aa1069291a4388 SHA512 25e7fd119335582f426e31b67a892e031730f944d6848faa7967bfa9ba1dab6296418893819c420df226ade32f32832154e4326fe8ff5b3b31d82279a52b8c44 WHIRLPOOL 60b83d1e7b058b700eda9f99c36d56c233035aa99724be09b72bd403498317c552783519cdee8d3b1c9385b74ff94a2edf2cf269b7bc88c18df196ed6d52549c
+MISC ChangeLog-2015 5393 SHA256 ebd69c93d3f0ac7e75b68cfb3ae079cddb3bc43fb96f4a61cdf58d1c3c5b37b9 SHA512 9a45eb0c33d64e6dcc51672bcdd2416b077b1cf1b78a146d8dd8f66f55bfbfeee1abace360ab06df70083c41f95c5d3b107ad69e51179587cd18103bad347ae0 WHIRLPOOL b50648963d06c1466f4bf892e285068044cbd70d86e15835c239c884c99d7f73e536f42f4a85a220ff7f43a9e0ea9040d0c572b9c9683f672427b90a429a2f44
+MISC metadata.xml 858 SHA256 1c048c75ac311016b9c59909a71a48571e31371284007ad4244802c59e36f001 SHA512 e64e471f2fdcc289c678bfc4fe3d2f652062907f9ff18d0350c0907b3d9bfa4e92c76bf04d1b2f0fb3f820f917ec4e3bd7d997a0d5e2eb270ac10516cb58f971 WHIRLPOOL 910dcd051c99f33a78d8b981c6989b340e582df4df6661b575c9c29ab2303ca96037b7e192ad6563f5ab793ad4212d300bc60c25f0cb5b039052acf51ef6a171
diff --git a/dev-libs/ffcall/ffcall-1.10-r2.ebuild b/dev-libs/ffcall/ffcall-1.10-r2.ebuild
new file mode 100644
index 000000000000..36b6607fb891
--- /dev/null
+++ b/dev-libs/ffcall/ffcall-1.10-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic
+
+# CLISP maintains ffcall now
+CLISP_PACKAGE="clisp-2.41"
+
+DESCRIPTION="foreign function call libraries"
+HOMEPAGE="https://www.haible.de/bruno/packages-ffcall.html"
+SRC_URI="mirror://sourceforge/clisp/${CLISP_PACKAGE}.tar.bz2"
+
+# "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
+# or in derivate works of GNUstep, the included parts of ffcall are
+# under GNU LGPL." -ffcall author
+LICENSE="|| ( GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~ppc ~ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+S=${WORKDIR}/${CLISP_PACKAGE}/${PN}
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ # Because CHOST is set to (for example)
+ # alphaev67-unknown-linux-gnu, CPU gets set to alphaev67 which
+ # doesn't work in the Makefile (29 Jan 2004 agriffis)
+ local cpu_setting
+ [[ "${ARCH}" == "alpha" ]] && cpu_setting='CPU=alpha'
+
+ append-flags -fPIC
+
+ # Doc goes in datadir
+ econf \
+ --datadir=/usr/share/doc/${PF} \
+ --enable-shared \
+ || die "./configure failed"
+ # bug #298348
+ emake -j1 ${cpu_setting} || die
+}
+
+src_install() {
+ dodoc NEWS README
+ dodir /usr/share/man
+ emake DESTDIR=${D} install || die "Install failed"
+}
diff --git a/dev-libs/ffcall/ffcall-1.10-r5.ebuild b/dev-libs/ffcall/ffcall-1.10-r5.ebuild
new file mode 100644
index 000000000000..19bcd6a89fb3
--- /dev/null
+++ b/dev-libs/ffcall/ffcall-1.10-r5.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs
+
+# CLISP maintains ffcall now
+CLISP_PACKAGE="clisp-2.41"
+
+DESCRIPTION="foreign function call libraries"
+HOMEPAGE="https://www.haible.de/bruno/packages-ffcall.html"
+SRC_URI="mirror://sourceforge/clisp/${CLISP_PACKAGE}.tar.bz2"
+
+# "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
+# or in derivate works of GNUstep, the included parts of ffcall are
+# under GNU LGPL." -ffcall author
+LICENSE="|| ( GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+S=${WORKDIR}/${CLISP_PACKAGE}/${PN}
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-make-jN.patch
+
+ # The build system is a strange mix of autogenerated
+ # files and manual tweaks on top. Uses $CFLAGS / $LDFLAGS randomly.
+ # We are adding them consistently here and a bit over the top:
+ # bugs: #334581
+
+ for mfi in {,*/,*/*/,}Makefile.in
+ do
+ elog "Patching '${mfi}'"
+ # usually uses only assembler here, but -march=
+ # and -Wa, are a must to pass here.
+ sed -e 's/$(CC) /&$(CFLAGS) /g' \
+ -i "${mfi}" || die
+
+ # usually uses '$(CC) ... -o something' for linking
+ sed -e 's/\($(CC) .* \)-o /\1 $(LDFLAGS) -o /g' \
+ -i "${mfi}" || die
+ done
+}
+
+src_configure() {
+ append-flags -fPIC
+ append-flags $(test-flags-CC -Wa,--noexecstack) #253963
+
+ # Doc goes in datadir
+ econf \
+ --datadir="${EPREFIX}"/usr/share/doc/${PF} \
+ --enable-shared \
+ --disable-static
+}
+
+src_compile() {
+ # Because CHOST is set to (for example)
+ # alphaev67-unknown-linux-gnu, CPU gets set to alphaev67 which
+ # doesn't work in the Makefile (29 Jan 2004 agriffis)
+ local cpu_setting
+ [[ "${ARCH}" == "alpha" ]] && cpu_setting='CPU=alpha'
+
+ emake ${cpu_setting}
+}
+
+src_install() {
+ dodoc NEWS README
+ dodir /usr/share/man
+ default
+ prune_libtool_files
+}
diff --git a/dev-libs/ffcall/ffcall-1.10.ebuild b/dev-libs/ffcall/ffcall-1.10.ebuild
new file mode 100644
index 000000000000..14a5a44b4581
--- /dev/null
+++ b/dev-libs/ffcall/ffcall-1.10.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="foreign function call libraries"
+HOMEPAGE="https://www.haible.de/bruno/packages-ffcall.html"
+SRC_URI="ftp://ftp.santafe.edu/pub/gnu/${P}.tar.gz"
+
+# "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
+# or in derivate works of GNUstep, the included parts of ffcall are
+# under GNU LGPL." -ffcall author
+LICENSE="|| ( GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ # Because CHOST is set to (for example)
+ # alphaev67-unknown-linux-gnu, CPU gets set to alphaev67 which
+ # doesn't work in the Makefile (29 Jan 2004 agriffis)
+ local cpu_setting
+ [[ "${ARCH}" == "alpha" ]] && cpu_setting='CPU=alpha'
+
+ append-flags -fPIC
+
+ econf || die "./configure failed"
+ make ${cpu_setting} || die
+}
+
+src_install() {
+ dodoc NEWS README
+ dohtml avcall/avcall.html \
+ callback/callback.html \
+ callback/trampoline_r/trampoline_r.html \
+ trampoline/trampoline.html \
+ vacall/vacall.html
+ doman avcall/avcall.3 \
+ callback/callback.3 \
+ callback/trampoline_r/trampoline_r.3 \
+ trampoline/trampoline.3 \
+ vacall/vacall.3
+ dolib.a avcall/.libs/libavcall.a \
+ avcall/.libs/libavcall.la \
+ vacall/libvacall.a \
+ callback/.libs/libcallback.a \
+ callback/.libs/libcallback.la \
+ trampoline/libtrampoline.a
+ insinto /usr/include
+ doins avcall/avcall.h \
+ callback/callback.h \
+ trampoline/trampoline.h \
+ callback/trampoline_r/trampoline_r.h \
+ vacall/vacall.h \
+ callback/vacall_r.h
+}
diff --git a/dev-libs/ffcall/ffcall-1.13.ebuild b/dev-libs/ffcall/ffcall-1.13.ebuild
new file mode 100644
index 000000000000..127ea9cd215e
--- /dev/null
+++ b/dev-libs/ffcall/ffcall-1.13.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_PV="libffcall-${PV}"
+
+DESCRIPTION="foreign function call libraries"
+HOMEPAGE="https://www.gnu.org/software/libffcall/"
+SRC_URI="mirror://gnu/libffcall/${MY_PV}.tar.gz"
+
+# "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
+# or in derivate works of GNUstep, the included parts of ffcall are
+# under GNU LGPL." -ffcall author
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+S=${WORKDIR}/${MY_PV}
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-make-jN.patch
+
+ # The build system is a strange mix of autogenerated
+ # files and manual tweaks on top. Uses $CFLAGS / $LDFLAGS randomly.
+ # We are adding them consistently here and a bit over the top:
+ # bugs: #334581
+
+ for mfi in {,*/,*/*/,}Makefile.in
+ do
+ elog "Patching '${mfi}'"
+ # usually uses only assembler here, but -march=
+ # and -Wa, are a must to pass here.
+ sed -e 's/$(CC) /&$(CFLAGS) /g' \
+ -i "${mfi}" || die
+ done
+ eapply_user
+}
+
+src_configure() {
+ append-flags -fPIC
+
+ # Doc goes in datadir
+ econf \
+ --datadir="${EPREFIX}"/usr/share/doc/${PF} \
+ --enable-shared \
+ --disable-static
+}
+
+src_install() {
+ dodoc NEWS README
+ dodir /usr/share/man
+ default
+ prune_libtool_files
+}
diff --git a/dev-libs/ffcall/ffcall-2.0.ebuild b/dev-libs/ffcall/ffcall-2.0.ebuild
new file mode 100644
index 000000000000..a56e594a0582
--- /dev/null
+++ b/dev-libs/ffcall/ffcall-2.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_PV="libffcall-${PV}"
+
+DESCRIPTION="foreign function call libraries"
+HOMEPAGE="https://www.gnu.org/software/libffcall/"
+SRC_URI="mirror://gnu/libffcall/${MY_PV}.tar.gz"
+
+# "Ffcall is under GNU GPL. As a special exception, if used in GNUstep
+# or in derivate works of GNUstep, the included parts of ffcall are
+# under GNU LGPL." -ffcall author
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+S=${WORKDIR}/${MY_PV}
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ # The build system is a strange mix of autogenerated
+ # files and manual tweaks on top. Uses $CFLAGS / $LDFLAGS randomly.
+ # We are adding them consistently here and a bit over the top:
+ # bugs: #334581
+
+ for mfi in {,*/,*/*/,}Makefile.in
+ do
+ elog "Patching '${mfi}'"
+ # usually uses only assembler here, but -march=
+ # and -Wa, are a must to pass here.
+ sed -e 's/$(CC) /&$(CFLAGS) /g' \
+ -i "${mfi}" || die
+ done
+ eapply_user
+}
+
+src_configure() {
+ append-flags -fPIC
+
+ # Doc goes in datadir
+ econf \
+ --datadir="${EPREFIX}"/usr/share/doc/${PF} \
+ --enable-shared \
+ --disable-static
+}
+
+src_compile() {
+ # TODO. Remove -j1
+ emake -j1
+}
+
+src_install() {
+ dodoc NEWS README
+ dodir /usr/share/man
+ default
+ prune_libtool_files
+}
diff --git a/dev-libs/ffcall/files/ffcall-make-jN.patch b/dev-libs/ffcall/files/ffcall-make-jN.patch
new file mode 100644
index 000000000000..98f4c497504e
--- /dev/null
+++ b/dev-libs/ffcall/files/ffcall-make-jN.patch
@@ -0,0 +1,13 @@
+--- ffcall-1.10/callback/Makefile.in~ 2003-10-01 21:46:19.000000000 +0200
++++ ffcall-1.10/callback/Makefile.in 2007-12-18 21:10:51.302118000 +0100
+@@ -51,6 +51,10 @@
+ all-subdirs : force
+ cd @subdir@; $(MAKE) all
+
++vacall_r/libvacall.la: all-subdirs
++
++trampoline_r/libtrampoline.la: all-subdirs
++
+ callback.h :
+ $(LN_S) $(srcdir)/callback.h.in callback.h
+
diff --git a/dev-libs/ffcall/metadata.xml b/dev-libs/ffcall/metadata.xml
new file mode 100644
index 000000000000..5b705d074820
--- /dev/null
+++ b/dev-libs/ffcall/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>common-lisp@gentoo.org</email>
+ <name>Gentoo Common Lisp Project</name>
+ </maintainer>
+ <longdescription>
+ffcall - foreign function call libraries
+This is a collection of four libraries which can be used to build foreign
+function call interfaces in embedded interpreters.
+
+The four packages are:
+
+avcall
+- calling C functions with variable arguments
+
+vacall
+- C functions accepting variable argument prototypes
+
+trampoline
+- closures as first-class C functions
+
+callback
+- closures with variable arguments as first-class C functions (a reentrant combination of vacall and trampoline)
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">clisp</remote-id>
+ </upstream>
+</pkgmetadata>