parent
ef43ff546d
commit
aa562479ae
@ -1 +1,2 @@
|
||||
DIST burncdda-1.8.0.tar.gz 23795 SHA256 cd0caf43040e70ccd15df7377feeed667487e2dfa125858843898fcb462b6299 SHA512 798d2f6c51005dc87d1214e82cc5b2227bdf34b93b0457382cb0eb86a1426be9e61df5029460b42842cb730b806934447f6adb9ed7e6674e69d4910799b3ee92 WHIRLPOOL c07dd54c367b9ef27b738dbe655390eef74b0af835281b5c89c1cd41a8a7fb9d3a766f63a18e255930fc2a25237706852f462b301a662e108a05eeb10ee49f43
|
||||
DIST burncdda-1.8.3.tar.gz 23710 SHA256 2393f57cd40f3a67cc4bc6501d45986b05d2b9576ea4150d794cecee4441aa5a SHA512 b0ddf9457ca9a1b8ad07b43aba4b5c6532ef09aae85b363802084bcf7bbb4d4bfadf980af98862dfbdd72e257d287f1e517323ebec7432be3514880e393e9f1d WHIRLPOOL 6d67f5c8cad7a6cc7bf882e622b2706ec66028daa869f3dd2009c8f6a033bfe82303cc9a071b513ece92863e29724e140b3901ef271964b544a8b0abdffa5c90
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Console app for copying burning audio cds"
|
||||
HOMEPAGE="http://www.thenktor.homepage.t-online.de/burncdda"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="flac mp3 vorbis"
|
||||
|
||||
RDEPEND="
|
||||
app-cdr/cdrdao
|
||||
dev-util/dialog
|
||||
media-sound/normalize
|
||||
media-sound/sox
|
||||
virtual/cdrtools
|
||||
flac? ( media-libs/flac )
|
||||
mp3? (
|
||||
media-sound/mpg123
|
||||
media-sound/mp3_check
|
||||
)
|
||||
vorbis? ( media-sound/vorbis-tools )
|
||||
"
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins *.func
|
||||
|
||||
insinto /etc
|
||||
doins ${PN}.conf
|
||||
|
||||
dodoc ChangeLog
|
||||
doman burncdda.1
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-')
|
||||
|
||||
DESCRIPTION="Client for keybase.io"
|
||||
HOMEPAGE="https://keybase.io/"
|
||||
SRC_URI="https://github.com/keybase/client/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.6:0"
|
||||
RDEPEND="
|
||||
app-crypt/gnupg"
|
||||
|
||||
S="${WORKDIR}/src/github.com/keybase/client"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${P}.tar.gz"
|
||||
mkdir -p "$(dirname "${S}")" || die
|
||||
mv "client-${MY_PV}" "${S}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}:${S}/go/vendor" \
|
||||
go build -v -x \
|
||||
-tags production \
|
||||
-o "${T}/keybase" \
|
||||
github.com/keybase/client/go/keybase || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${T}/keybase"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Run the service: keybase service"
|
||||
elog "Run the client: keybase login"
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils versionator git-r3
|
||||
|
||||
MY_PV=$(replace_version_separator 3 '-')
|
||||
|
||||
DESCRIPTION="Client for keybase.io"
|
||||
HOMEPAGE="https://keybase.io/"
|
||||
EGIT_REPO_URI="https://github.com/keybase/client.git"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.6:0"
|
||||
RDEPEND="
|
||||
app-crypt/gnupg"
|
||||
|
||||
S="${WORKDIR}/src/github.com/keybase/client"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
mkdir -p "$(dirname "${S}")" || die
|
||||
ln -s "${WORKDIR}/${PN}-${MY_PV}" "${S}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}:${S}/go/vendor" \
|
||||
go build -v -x \
|
||||
-tags production \
|
||||
-o "${T}/keybase" \
|
||||
github.com/keybase/client/go/keybase || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${T}/keybase"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Run the service: keybase service"
|
||||
elog "Run the client: keybase login"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pgpdump-0.30.tar.gz 63152 SHA256 8c36a005baee8dd6e730e5735c7ac2bbc8826a1bb29f500c0202d00fd62baad4 SHA512 e250dc82bb890a7645a41f6ddbfad9155ddf70f2ea53b09e771e9b6851d05d3fba88e16b106681ab092174e79ad709ed860be25bfded1ca7f369b357e8c72730 WHIRLPOOL 80a054e53d262ad5d349ecb10a5f421c1308de248ad9e2884eb4f37244f79efb3428dedd6d1d2d6b59cdb20b76c95f8ac6674fab3b47635944e0012c8eeaa59c
|
||||
DIST pgpdump-0.31.tar.gz 63808 SHA256 206ae52d4a8bbfa095b6ceefcc8b53ccabcdb75696db3bae5e05c15433729813 SHA512 10d138baf0e3c9a47f6c8549a94b14eaa8babf95a09265e3a5b91469598726d6ee94cc7c481688c2d2b63917d6daba1bb368923aaf75adac6b18694d9a2940c4 WHIRLPOOL b706d92da109305b72900e7f31aec70b2a9a286e49ab13a03801623ac8997df5c8dc1f30d829aef35dd8d898786748b37dcdeb8cc178f3cddac0662f014a6b03
|
||||
DIST pgpdump-0.32.tar.gz 65444 SHA256 2d49d9fa5c12750abc16e09db7f52950b526475bdb27ad16e489c92b59c2af25 SHA512 3f28a301cce703e934eb8b6124af4db78801d444ce74f43f8511009ea0684f9e9c229ef2a18cc732fe0854f2e02c4bbfdee46ffee64a5f490ff06c060472e49d WHIRLPOOL 2df4bbd29a9cd5dda1718fb498db2bd7b8a24d54d979f519f2323578f1a0177caa871c26e79ae27fc8d9597862456d594eb1084c49ccef13e9c9f621a682295a
|
||||
|
@ -0,0 +1,42 @@
|
||||
From 43dfe847efa8e614b3e6f8d37ad04ba577ead595 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Manuel=20R=C3=BCger?= <mrueg@rueg.eu>
|
||||
Date: Fri, 16 Jun 2017 10:11:36 +0200
|
||||
Subject: [PATCH] Respect LDFLAGS, minor other improvements
|
||||
|
||||
---
|
||||
Makefile.in | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index f9bff30..969a16f 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -3,7 +3,8 @@ exec_prefix = @exec_prefix@
|
||||
bindir = @bindir@
|
||||
mandir = @mandir@
|
||||
LIBS = @LIBS@
|
||||
-CFLAGS = @CFLAGS@ -O -Wall
|
||||
+CC = @CC@
|
||||
+CFLAGS = @CFLAGS@ -Wall
|
||||
LDFLAGS = @LDFLAGS@
|
||||
VERSION = `git tag | tail -1 | sed -e 's/v//'`
|
||||
|
||||
@@ -22,13 +23,13 @@ MAN = pgpdump.1
|
||||
CNF = config.h config.status config.cache config.log
|
||||
MKF = Makefile
|
||||
|
||||
-.c.o:
|
||||
+%.o : %.c
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
|
||||
|
||||
all: $(PROG)
|
||||
|
||||
$(PROG): $(OBJS)
|
||||
- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LIBS) $(LDFLAGS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS) $(PROG)
|
||||
--
|
||||
2.13.1
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A PGP packet visualizer"
|
||||
HOMEPAGE="http://www.mew.org/~kazu/proj/pgpdump/"
|
||||
SRC_URI="http://www.mew.org/~kazu/proj/pgpdump/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="sys-libs/zlib
|
||||
app-arch/bzip2"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.32-respect-ldflags.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
dobin pgpdump
|
||||
doman pgpdump.1
|
||||
dodoc CHANGES README.md
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Golden Disk Image builder."
|
||||
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/networkx-1.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||
app-emulation/qemu
|
||||
sys-block/parted
|
||||
sys-fs/multipath-tools
|
||||
!dev-python/dib-utils[${PYTHON_USEDEP}]"
|
@ -1,3 +1 @@
|
||||
DIST docker-registry-2.5.1.tar.gz 1604279 SHA256 d98ebca3518c17d95468b1d40b87861036001301a16a50563203e4b9af72c514 SHA512 5217e2ca361d71806c8ec4da1cf1c2c5dc4160b84c2a98feae50872342d0acf116768a3acf00769bafd66e73c9922c7fe97cbde51955d8aa1d1ed914de2e3d34 WHIRLPOOL 12db4c397f6309a57252cfe19a055f610567c526a05220c9b6ac0d7ff21863520cc126f95b34c8e48fb7ae6ba6a298d0e6b53bf4866cf13bf95fcfb591c538b7
|
||||
DIST docker-registry-2.6.0.tar.gz 1578641 SHA256 5e03dbeaf87936b06d3c6f61fb12d9f759b2ca89225eb71b288488a2fd10571c SHA512 589ef6968d4f71a8e0c201c02007fb6cf80a9206e0ba699be6cc6cc29a5bfeb759bc8928a21fb73a3710d747eb99136c228b630889af8870cdfa508e20ff5f4e WHIRLPOOL 71c4c78ee587f5346127eed4cb00d3bb55c565e5d376c0a4c7f7b3ec7c7fbc10377e190bf98833a6ac6e8e43f3a100526554b5f5e24238a1de047fc458edf74d
|
||||
DIST docker-registry-2.6.1.tar.gz 1577794 SHA256 21d1b5fd4001c45d125d6345c387f1840f984c069b5556d0c8ad1850d6e25b9f SHA512 a2175cb5ab049599e1bdae7026dc84e14b79883eca3ceaafda54497a1743103f125f65fa3922c003363dd86aa1422f539aff8b17746b9768968fef757e931c36 WHIRLPOOL 3e1c5684462d6e31d3f28d67f4ab2dacf8037b793c11ecca49846ca4124a0ce54b9481471cb77190dc3b63de882571b88beba1bb5d7d04b8cbb92b8a597b0fed
|
||||
DIST docker-registry-2.6.2.tar.gz 1579760 SHA256 963e4e98a99f484c903b888e2661a10794e79906ccf9a6a9b17172f9c1705f0d SHA512 a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60 WHIRLPOOL 55f9e7cc5a643be1d791e6d19610db9a8a4c59f7c73ae105cce11917b12691418fa2d310103788d06d74c6bfc809d20de9f5e1a1ab4b3861062db93c8861158f
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit golang-vcs-snapshot systemd user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
EGO_PN="github.com/docker/distribution/..."
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Docker Registry 2.0"
|
||||
HOMEPAGE="https://${EGO_PN%/*}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND=">=dev-lang/go-1.5"
|
||||
SVCNAME=registry
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${SVCNAME}
|
||||
enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${S}" GO15VENDOREXPERIMENT=1 \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/libexec/${PN}
|
||||
doexe "${S}"/bin/*
|
||||
insinto /etc/docker/registry
|
||||
newins "${S}"/src/${EGO_PN%/*}/cmd/registry/config-example.yml config.yml.example
|
||||
newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
|
||||
newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
|
||||
systemd_dounit "${FILESDIR}/${SVCNAME}.service"
|
||||
keepdir /var/{lib,log}/${SVCNAME}
|
||||
fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit golang-vcs-snapshot systemd user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
EGO_PN="github.com/docker/distribution/..."
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Docker Registry 2.0"
|
||||
HOMEPAGE="https://${EGO_PN%/*}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
DEPEND=">=dev-lang/go-1.5"
|
||||
SVCNAME=registry
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${SVCNAME}
|
||||
enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${S}" GO15VENDOREXPERIMENT=1 \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/libexec/${PN}
|
||||
doexe "${S}"/bin/*
|
||||
insinto /etc/docker/registry
|
||||
newins "${S}"/src/${EGO_PN%/*}/cmd/registry/config-example.yml config.yml.example
|
||||
newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
|
||||
newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
|
||||
systemd_dounit "${FILESDIR}/${SVCNAME}.service"
|
||||
keepdir /var/{lib,log}/${SVCNAME}
|
||||
fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit golang-vcs-snapshot systemd user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
EGO_PN="github.com/docker/distribution/..."
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Docker Registry 2.0"
|
||||
HOMEPAGE="https://github.com/docker/distribution"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
SVCNAME=registry
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${SVCNAME}
|
||||
enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${S}" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/libexec/${PN}
|
||||
doexe bin/*
|
||||
insinto /etc/docker/registry
|
||||
newins src/${EGO_PN%/*}/cmd/registry/config-example.yml config.yml.example
|
||||
newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
|
||||
newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
|
||||
systemd_dounit "${FILESDIR}/${SVCNAME}.service"
|
||||
keepdir /var/{lib,log}/${SVCNAME}
|
||||
fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST virt-what-1.12.tar.gz 147144 SHA256 2592082f5b2caa93d3967b7c275a3afabfe49de9f051fdf0da6ded59e2c11b1c SHA512 629e452419a01b86cd5442c4294b5aea6fc475522d7a350ac8e727b59e63948915c755fe6cae16f7824749059662bb0fbd4557a2aa56c098b407037a35881735 WHIRLPOOL a3f9a519c183950a766fe407f8e814a131e2586d738fa0fdbf341d0755bbf726e58da9cde594a8b7c32b9c27094c442ff95b6d3e5adaf92b57d96710383453d3
|
||||
DIST virt-what-1.15.tar.gz 163117 SHA256 7ab9220d4682eadf9139c6afe62d33ebd273fff69e49054279caba5514937c41 SHA512 b85d02eb632328031be93dd33be1e42603e55182c4458fca9b9d98465ff7487fc399d01ebd117a8311960091c1b166547380b9a54c0054ebf2c0aa454d9a41e5 WHIRLPOOL 6d5d439f5617ef80f4cdda752717cce7025669e518f6fb327a5e7595935153ba58ea8271e4ed84c203d3888b877f60ae136f54aca97bd4f79a1cc18bf2365480
|
||||
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Detects if the current machine is running in a virtual machine"
|
||||
HOMEPAGE="https://people.redhat.com/~rjones/virt-what/"
|
||||
SRC_URI="https://people.redhat.com/~rjones/virt-what/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="dmi"
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="app-shells/bash
|
||||
dmi? ( sys-apps/dmidecode )"
|
@ -0,0 +1,507 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
||||
PLOCALE_BACKUP="en"
|
||||
|
||||
inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator
|
||||
|
||||
MY_PN="${PN%%-*}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
|
||||
EGIT_BRANCH="master"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MAJOR_V=$(get_version_component_range 1)
|
||||
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.0/${MY_P}.tar.xz"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WDC_V="20150204"
|
||||
WINE_DESKTOP_COMMON_P="wine-desktop-common-${WDC_V}"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||
HOMEPAGE="http://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://github.com/NP-Hardass/wine-desktop-common/archive/${WDC_V}.tar.gz -> ${WINE_DESKTOP_COMMON_P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="${PV}"
|
||||
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml"
|
||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||
X? ( truetype )
|
||||
elibc_glibc? ( threads )
|
||||
osmesa? ( opengl )
|
||||
test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124
|
||||
|
||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||
# or fail due to Xvfb's opengl limitations.
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
opengl? (
|
||||
virtual/glu[${MULTILIB_USEDEP}]
|
||||
virtual/opengl[${MULTILIB_USEDEP}]
|
||||
)
|
||||
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
xml? (
|
||||
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||
)
|
||||
abi_x86_32? (
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-baselibs-20140508-r14
|
||||
!app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-db-20140508-r3
|
||||
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-medialibs-20140508-r6
|
||||
!app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-opengl-20140508-r1
|
||||
!app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-sdl-20140508-r1
|
||||
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-soundlibs-20140508
|
||||
!app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-xlibs-20140508
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
>app-eselect/eselect-wine-0.3
|
||||
!app-emulation/wine:0
|
||||
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||
gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
|
||||
mono? ( app-emulation/wine-mono:4.6.4 )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-Simple
|
||||
)
|
||||
pulseaudio? (
|
||||
realtime? ( sys-auth/rtkit )
|
||||
)
|
||||
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
|
||||
# tools/make_requests requires perl
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
X? (
|
||||
x11-proto/inputproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
)
|
||||
prelink? ( sys-devel/prelink )
|
||||
xinerama? ( x11-proto/xineramaproto )"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
wine_compiler_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
# GCC-specific bugs
|
||||
if tc-is-gcc; then
|
||||
# bug #549768
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||
$(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
|
||||
# Run in subshell to prevent "Aborted" message
|
||||
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/549768"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
# bug #574044
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/574044"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure compiler support
|
||||
if use abi_x86_64; then
|
||||
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||
if ! eend $?; then
|
||||
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||
eerror
|
||||
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
wine_build_environment_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
if use abi_x86_64; then
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||
die
|
||||
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||
die
|
||||
fi
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
wine_env_vcs_vars() {
|
||||
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||
local pn_live_val="${pn_live_var}"
|
||||
eval pn_live_val='$'${pn_live_val}
|
||||
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||
eerror "Commits must now be specified using the environmental variables"
|
||||
eerror "WINE_COMMIT"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
wine_build_environment_check || die
|
||||
|
||||
# Verify OSS support
|
||||
if use oss && ! use kernel_FreeBSD; then
|
||||
if ! has_version ">=media-sound/oss-4"; then
|
||||
eerror "You cannot build wine with USE=oss without having support from a"
|
||||
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||
eerror
|
||||
die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
wine_build_environment_check || die
|
||||
wine_env_vcs_vars || die
|
||||
|
||||
WINE_VARIANT="${PN#wine}-${PV}"
|
||||
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||
|
||||
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||
MY_MANDIR="${MY_DATADIR}/man"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726
|
||||
"${FILESDIR}"/${MY_PN}-1.9.5-multilib-portage.patch #395615
|
||||
"${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508
|
||||
"${FILESDIR}"/${MY_PN}-2.0-multislot-apploader.patch
|
||||
)
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
|
||||
# Modification of the server protocol requires regenerating the server requests
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
if ! use run-exes; then
|
||||
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||
fi
|
||||
|
||||
# Edit wine.desktop to work for specific variant
|
||||
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||
|
||||
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
|
||||
cp "${WORKDIR}/${WINE_DESKTOP_COMMON_P}/icons/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||
|
||||
l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
wine_compiler_check || die
|
||||
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=(
|
||||
--prefix="${MY_PREFIX}"
|
||||
--datarootdir="${MY_DATAROOTDIR}"
|
||||
--datadir="${MY_DATADIR}"
|
||||
--docdir="${MY_DOCDIR}"
|
||||
--includedir="${MY_INCLUDEDIR}"
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||
--libexecdir="${MY_LIBEXECDIR}"
|
||||
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||
--mandir="${MY_MANDIR}"
|
||||
--sysconfdir=/etc/wine
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with lcms cms)
|
||||
$(use_with cups)
|
||||
$(use_with ncurses curses)
|
||||
$(use_with udisks dbus)
|
||||
$(use_with fontconfig)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gsm)
|
||||
$(use_with gstreamer)
|
||||
--without-hal
|
||||
$(use_with jpeg)
|
||||
$(use_with ldap)
|
||||
$(use_enable mono mscoree)
|
||||
$(use_with mp3 mpg123)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
$(use_with oss)
|
||||
$(use_with pcap)
|
||||
$(use_with png)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with threads pthread)
|
||||
$(use_with scanner sane)
|
||||
$(use_enable test tests)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with v4l)
|
||||
$(use_with X x)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(use_with xml)
|
||||
$(use_with xml xslt)
|
||||
)
|
||||
|
||||
local PKG_CONFIG AR RANLIB
|
||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||
# set AR and RANLIB to make QA scripts happy; #483342
|
||||
tc-export PKG_CONFIG AR RANLIB
|
||||
|
||||
if use amd64; then
|
||||
if [[ ${ABI} == amd64 ]]; then
|
||||
myconf+=( --enable-win64 )
|
||||
else
|
||||
myconf+=( --disable-win64 )
|
||||
fi
|
||||
|
||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||
# CC/LD hackery. We're using separate tools instead.
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf "${myconf[@]}"
|
||||
emake depend
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
ewarn "Skipping tests since they cannot be run under the root user."
|
||||
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||
return
|
||||
fi
|
||||
|
||||
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||
Xemake test
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ANNOUNCE AUTHORS README )
|
||||
add_locale_docs() {
|
||||
local locale_doc="documentation/README.$1"
|
||||
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||
}
|
||||
l10n_for_each_locale_do add_locale_docs
|
||||
|
||||
einstalldocs
|
||||
prune_libtool_files --all
|
||||
|
||||
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
# Remove wineconsole if neither backend is installed #551124
|
||||
if ! use X && ! use ncurses; then
|
||||
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||
rm_wineconsole() {
|
||||
rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||
}
|
||||
multilib_foreach_abi rm_wineconsole
|
||||
fi
|
||||
|
||||
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||
|
||||
if use abi_x86_64 && ! use abi_x86_32; then
|
||||
dosym "${MY_PREFIX}"/bin/wine{64,} # 404331
|
||||
dosym "${MY_PREFIX}"/bin/wine{64,}-preloader
|
||||
fi
|
||||
|
||||
# Failglob for bin and man loops
|
||||
local glob_state=$(shopt -p failglob)
|
||||
shopt -s failglob
|
||||
|
||||
# Make wrappers for binaries for handling multiple variants
|
||||
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||
local b
|
||||
for b in "${D%/}${MY_PREFIX}"/bin/*; do
|
||||
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||
done
|
||||
|
||||
# respect LINGUAS when installing man pages, #469418
|
||||
local l
|
||||
for l in de fr pl; do
|
||||
use linguas_${l} || rm -r "${D%/}${MY_MANDIR}"/${l}*
|
||||
done
|
||||
|
||||
eval "${glob_state}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect wine register ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine register --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
if ! use gecko; then
|
||||
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||
ewarn "implementation of iexplore. Many older windows applications"
|
||||
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||
ewarn "you will likely need to install an external one, like via winetricks"
|
||||
fi
|
||||
if ! use mono; then
|
||||
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||
ewarn "to install an external one, like via winetricks"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect wine deregister ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine deregister --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,509 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
|
||||
PLOCALE_BACKUP="en"
|
||||
|
||||
inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator
|
||||
|
||||
MY_PN="${PN%%-*}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
|
||||
EGIT_BRANCH="master"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
#KEYWORDS=""
|
||||
else
|
||||
MAJOR_V=$(get_version_component_range 1)
|
||||
SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
WDC_V="20150204"
|
||||
WINE_DESKTOP_COMMON_P="wine-desktop-common-${WDC_V}"
|
||||
|
||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
||||
HOMEPAGE="http://www.winehq.org/"
|
||||
SRC_URI="${SRC_URI}
|
||||
https://github.com/NP-Hardass/wine-desktop-common/archive/${WDC_V}.tar.gz -> ${WINE_DESKTOP_COMMON_P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="${PV}"
|
||||
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml"
|
||||
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
|
||||
X? ( truetype )
|
||||
elibc_glibc? ( threads )
|
||||
osmesa? ( opengl )
|
||||
test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124
|
||||
|
||||
# FIXME: the test suite is unsuitable for us; many tests require net access
|
||||
# or fail due to Xvfb's opengl limitations.
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
X? (
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
|
||||
cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
|
||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||
gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
|
||||
lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
|
||||
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
|
||||
ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
|
||||
netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
|
||||
nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
|
||||
odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
|
||||
openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
|
||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||
opengl? (
|
||||
virtual/glu[${MULTILIB_USEDEP}]
|
||||
virtual/opengl[${MULTILIB_USEDEP}]
|
||||
)
|
||||
osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
|
||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||
png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
|
||||
pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
|
||||
scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
|
||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||
truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||
xml? (
|
||||
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
||||
dev-libs/libxslt[${MULTILIB_USEDEP}]
|
||||
)
|
||||
abi_x86_32? (
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-baselibs-20140508-r14
|
||||
!app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-db-20140508-r3
|
||||
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-medialibs-20140508-r6
|
||||
!app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-opengl-20140508-r1
|
||||
!app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-sdl-20140508-r1
|
||||
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-soundlibs-20140508
|
||||
!app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
|
||||
!<app-emulation/emul-linux-x86-xlibs-20140508
|
||||
)"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
>app-eselect/eselect-wine-0.3
|
||||
!app-emulation/wine:0
|
||||
dos? ( >=games-emulation/dosbox-0.74_p20160629 )
|
||||
gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
|
||||
mono? ( app-emulation/wine-mono:4.7.0 )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-Simple
|
||||
)
|
||||
pulseaudio? (
|
||||
realtime? ( sys-auth/rtkit )
|
||||
)
|
||||
samba? ( >=net-fs/samba-3.0.25[winbind] )
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
|
||||
# tools/make_requests requires perl
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-kernel/linux-headers-2.6
|
||||
virtual/pkgconfig
|
||||
virtual/yacc
|
||||
X? (
|
||||
x11-proto/inputproto
|
||||
x11-proto/xextproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
)
|
||||
prelink? ( sys-devel/prelink )
|
||||
xinerama? ( x11-proto/xineramaproto )"
|
||||
|
||||
# These use a non-standard "Wine" category, which is provided by
|
||||
# /etc/xdg/applications-merged/wine.menu
|
||||
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
|
||||
usr/share/applications/wine-notepad.desktop
|
||||
usr/share/applications/wine-uninstaller.desktop
|
||||
usr/share/applications/wine-winecfg.desktop"
|
||||
|
||||
wine_compiler_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
# GCC-specific bugs
|
||||
if tc-is-gcc; then
|
||||
# bug #549768
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
|
||||
ebegin "Checking for gcc-5 ms_abi compiler bug"
|
||||
$(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
|
||||
# Run in subshell to prevent "Aborted" message
|
||||
( "${T}"/pr66838 || false ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/549768"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
# bug #574044
|
||||
if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
|
||||
ebegin "Checking for gcc-5-3 stack realignment compiler bug"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1
|
||||
if ! eend $?; then
|
||||
eerror "Wine cannot be built with this version of gcc-5.3"
|
||||
eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
|
||||
eerror "or use gcc-config to select a different compiler version."
|
||||
eerror "See https://bugs.gentoo.org/574044"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure compiler support
|
||||
if use abi_x86_64; then
|
||||
ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
|
||||
# Compile in subshell to prevent "Aborted" message
|
||||
( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
|
||||
if ! eend $?; then
|
||||
eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
|
||||
eerror
|
||||
eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
wine_build_environment_check() {
|
||||
[[ ${MERGE_TYPE} = "binary" ]] && return 0
|
||||
|
||||
if use abi_x86_64; then
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
|
||||
eerror "You need gcc-4.4+ to compile 64-bit wine"
|
||||
die
|
||||
elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
|
||||
eerror "You need clang-3.8+ to compile 64-bit wine"
|
||||
die
|
||||
fi
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
|
||||
ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
|
||||
ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
|
||||
ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
|
||||
fi
|
||||
if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
|
||||
if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
|
||||
ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
|
||||
ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
|
||||
ewarn "See package.env in man 5 portage for more information on how to do this."
|
||||
ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
|
||||
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
|
||||
eerror "See https://bugs.gentoo.org/487864 for more details."
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
wine_env_vcs_vars() {
|
||||
local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
|
||||
local pn_live_val="${pn_live_var}"
|
||||
eval pn_live_val='$'${pn_live_val}
|
||||
if [[ ! -z ${EGIT_COMMIT} ]]; then
|
||||
eerror "Commits must now be specified using the environmental variables"
|
||||
eerror "WINE_COMMIT"
|
||||
eerror
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
wine_build_environment_check || die
|
||||
|
||||
# Verify OSS support
|
||||
if use oss && ! use kernel_FreeBSD; then
|
||||
if ! has_version ">=media-sound/oss-4"; then
|
||||
eerror "You cannot build wine with USE=oss without having support from a"
|
||||
eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
|
||||
eerror
|
||||
die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
wine_build_environment_check || die
|
||||
wine_env_vcs_vars || die
|
||||
|
||||
WINE_VARIANT="${PN#wine}-${PV}"
|
||||
WINE_VARIANT="${WINE_VARIANT#-}"
|
||||
|
||||
MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
|
||||
MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
|
||||
MY_DATADIR="${MY_DATAROOTDIR}"
|
||||
MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
|
||||
MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
|
||||
MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
|
||||
MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
|
||||
MY_MANDIR="${MY_DATADIR}/man"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
l10n_find_plocales_changes "${S}/po" "" ".po"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local md5="$(md5sum server/protocol.def)"
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726
|
||||
"${FILESDIR}"/${MY_PN}-1.9.5-multilib-portage.patch #395615
|
||||
"${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508
|
||||
"${FILESDIR}"/${MY_PN}-2.0-multislot-apploader.patch
|
||||
)
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
|
||||
# Modification of the server protocol requires regenerating the server requests
|
||||
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
|
||||
einfo "server/protocol.def was patched; running tools/make_requests"
|
||||
tools/make_requests || die #432348
|
||||
fi
|
||||
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
|
||||
if ! use run-exes; then
|
||||
sed -i '/^MimeType/d' loader/wine.desktop || die #117785
|
||||
fi
|
||||
|
||||
# Edit wine.desktop to work for specific variant
|
||||
sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
|
||||
|
||||
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
|
||||
cp "${WORKDIR}/${WINE_DESKTOP_COMMON_P}/icons/oic_winlogo.ico" dlls/user32/resources/ || die
|
||||
|
||||
l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
wine_compiler_check || die
|
||||
|
||||
export LDCONFIG=/bin/true
|
||||
use custom-cflags || strip-flags
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=(
|
||||
--prefix="${MY_PREFIX}"
|
||||
--datarootdir="${MY_DATAROOTDIR}"
|
||||
--datadir="${MY_DATADIR}"
|
||||
--docdir="${MY_DOCDIR}"
|
||||
--includedir="${MY_INCLUDEDIR}"
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
|
||||
--libexecdir="${MY_LIBEXECDIR}"
|
||||
--localstatedir="${MY_LOCALSTATEDIR}"
|
||||
--mandir="${MY_MANDIR}"
|
||||
--sysconfdir=/etc/wine
|
||||
$(use_with alsa)
|
||||
$(use_with capi)
|
||||
$(use_with lcms cms)
|
||||
$(use_with cups)
|
||||
$(use_with ncurses curses)
|
||||
$(use_with udisks dbus)
|
||||
$(use_with fontconfig)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_with gphoto2 gphoto)
|
||||
$(use_with gsm)
|
||||
$(use_with gstreamer)
|
||||
--without-hal
|
||||
$(use_with jpeg)
|
||||
$(use_with ldap)
|
||||
$(use_enable mono mscoree)
|
||||
$(use_with mp3 mpg123)
|
||||
$(use_with netapi)
|
||||
$(use_with nls gettext)
|
||||
$(use_with openal)
|
||||
$(use_with opencl)
|
||||
$(use_with opengl)
|
||||
$(use_with osmesa)
|
||||
$(use_with oss)
|
||||
$(use_with pcap)
|
||||
$(use_with png)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with threads pthread)
|
||||
$(use_with scanner sane)
|
||||
$(use_enable test tests)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with udev)
|
||||
$(use_with v4l)
|
||||
$(use_with X x)
|
||||
$(use_with X xfixes)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
$(use_with xml)
|
||||
$(use_with xml xslt)
|
||||
)
|
||||
|
||||
local PKG_CONFIG AR RANLIB
|
||||
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
|
||||
# set AR and RANLIB to make QA scripts happy; #483342
|
||||
tc-export PKG_CONFIG AR RANLIB
|
||||
|
||||
if use amd64; then
|
||||
if [[ ${ABI} == amd64 ]]; then
|
||||
myconf+=( --enable-win64 )
|
||||
else
|
||||
myconf+=( --disable-win64 )
|
||||
fi
|
||||
|
||||
# Note: using --with-wine64 results in problems with multilib.eclass
|
||||
# CC/LD hackery. We're using separate tools instead.
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf "${myconf[@]}"
|
||||
emake depend
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
ewarn "Skipping tests since they cannot be run under the root user."
|
||||
ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
|
||||
return
|
||||
fi
|
||||
|
||||
WINEPREFIX="${T}/.wine-${ABI}" \
|
||||
Xemake test
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
local DOCS=( ANNOUNCE AUTHORS README )
|
||||
add_locale_docs() {
|
||||
local locale_doc="documentation/README.$1"
|
||||
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
|
||||
}
|
||||
l10n_for_each_locale_do add_locale_docs
|
||||
|
||||
einstalldocs
|
||||
prune_libtool_files --all
|
||||
|
||||
if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
|
||||
rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
|
||||
"${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
|
||||
fi
|
||||
|
||||
# Remove wineconsole if neither backend is installed #551124
|
||||
if ! use X && ! use ncurses; then
|
||||
rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
|
||||
rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
|
||||
rm_wineconsole() {
|
||||
rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
|
||||
}
|
||||
multilib_foreach_abi rm_wineconsole
|
||||
fi
|
||||
|
||||
use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
|
||||
use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
|
||||
|
||||
if use abi_x86_64 && ! use abi_x86_32; then
|
||||
dosym "${MY_PREFIX}"/bin/wine{64,} # 404331
|
||||
dosym "${MY_PREFIX}"/bin/wine{64,}-preloader
|
||||
fi
|
||||
|
||||
# Failglob for bin and man loops
|
||||
local glob_state=$(shopt -p failglob)
|
||||
shopt -s failglob
|
||||
|
||||
# Make wrappers for binaries for handling multiple variants
|
||||
# Note: wrappers instead of symlinks because some are shell which use basename
|
||||
local b
|
||||
for b in "${D%/}${MY_PREFIX}"/bin/*; do
|
||||
make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
|
||||
done
|
||||
|
||||
# respect LINGUAS when installing man pages, #469418
|
||||
local l
|
||||
for l in de fr pl; do
|
||||
use linguas_${l} || rm -r "${D%/}${MY_MANDIR}"/${l}*
|
||||
done
|
||||
|
||||
eval "${glob_state}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect wine register ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine register --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
if ! use gecko; then
|
||||
ewarn "Without Wine Gecko, wine prefixes will not have a default"
|
||||
ewarn "implementation of iexplore. Many older windows applications"
|
||||
ewarn "rely upon the existence of an iexplore implementation, so"
|
||||
ewarn "you will likely need to install an external one, like via winetricks"
|
||||
fi
|
||||
if ! use mono; then
|
||||
ewarn "Without Wine Mono, wine prefixes will not have a default"
|
||||
ewarn "implementation of .NET. Many windows applications rely upon"
|
||||
ewarn "the existence of a .NET implementation, so you will likely need"
|
||||
ewarn "to install an external one, like via winetricks"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect wine deregister ${P}
|
||||
if [[ ${PN} == "wine-vanilla" ]]; then
|
||||
eselect wine deregister --vanilla ${P} || die
|
||||
fi
|
||||
|
||||
eselect wine update --all --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A tool to help administrators keep track of daily activities"
|
||||
HOMEPAGE="http://www.deer-run.com/~hal/"
|
||||
SRC_URI="http://www.far2wise.net/plod/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
# Bug 619934. Change directories first to ensure that "unpack" outputs
|
||||
# to ${S} and not to ${WORKDIR}.
|
||||
cd "${S}" || die
|
||||
unpack "${S}/${PN}.1.gz"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e 's#/usr/local#/usr#' "${PN}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
doman "${PN}.1"
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/${PN}rc"
|
||||
|
||||
dodoc README TODO
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST nagios-syntax-1.8.tar.gz 1737 SHA256 83976725d00e3d346456a1d53755552622f1c01b501a266064919071a8b1fb31 SHA512 53a17c521a66a42f0082e6a963059ff96ed5f899e2be4c50ab68cbf237d1ca6bec8476b798b4a99563a8fdd6dc6ef632de19399b5aad12bad586f0cf0161f76f WHIRLPOOL 99f376c40dfa0a09915a986d305be629bb259c834a38cdc25e8276d5de92dfb75e62ecf8d913994488ab14cb16cf232f21826047589cc9bb0024efcc5d414807
|
||||
DIST nagios-syntax-20050105.tar.bz2 1721 SHA256 76ddf01aefe98d124a8c120c39060c6f374e8333cdd644d075f4e445ecfc3399 SHA512 4bfca41c7aac4580511bf651db67c0dc16fcdcb09137ba27ce5472be9e3695db0ac254dca370b0f3576ab58959cd0ca5235833e45b1186c6f6721ca3d5793c6b WHIRLPOOL b5727573851e7d43a8bd84830e58c8c0cee65316a24ad5fee7d8f2d1890cb5b2f66ea40e738b7182e5800e2710260a0f32b9a22dd8b365807361f1e7cfe98148
|
||||
|
@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: Nagios configuration files syntax"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=2261"
|
||||
SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.gz"
|
||||
|
||||
LICENSE="vim.org"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
VIM_PLUGIN_HELPTEXT=\
|
||||
"This plugin provides syntax highlighting for Nagios configuration
|
||||
files. Detection is by filename (/etc/nagios/)."
|
@ -0,0 +1,191 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
extra_commands="checkconfig"
|
||||
extra_stopped_commands="boostrap_galera"
|
||||
|
||||
description_checkconfig="Verify the server's configuration"
|
||||
description_boostrap_galera="Start a new Galera cluster with this server as the initial node"
|
||||
|
||||
depend() {
|
||||
use net.lo
|
||||
# localmount needed for $basedir
|
||||
need localmount
|
||||
}
|
||||
|
||||
get_config() {
|
||||
my_print_defaults --defaults-file="$1" --mysqld |
|
||||
sed -n -e "s/^--$2=//p"
|
||||
}
|
||||
|
||||
mysql_svcname() {
|
||||
local ebextra=
|
||||
case "${SVCNAME}" in
|
||||
mysql*) ;;
|
||||
*) ebextra=" (mysql)" ;;
|
||||
esac
|
||||
echo "${SVCNAME}${ebextra}"
|
||||
}
|
||||
|
||||
stringContain() { [ -z "${2##*$1*}" ] && [ -z "$1" -o -n "$2" ]; }
|
||||
|
||||
bootstrap_galera() {
|
||||
MY_ARGS="--wsrep-new-cluster ${MY_ARGS}"
|
||||
mark_service_starting
|
||||
if start ; then
|
||||
mark_service_started
|
||||
return 0
|
||||
else
|
||||
mark_service_stopped
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
# Check for old conf.d variables that mean migration was not yet done.
|
||||
set | egrep -sq '^(mysql_slot_|MYSQL_BLOG_PID_FILE|STOPTIMEOUT)'
|
||||
rc=$?
|
||||
# Yes, MYSQL_INIT_I_KNOW_WHAT_I_AM_DOING is a hidden variable.
|
||||
# It does have a use in testing, as it is possible to build a config file
|
||||
# that works with both the old and new init scripts simulateously.
|
||||
if [ "${rc}" = 0 -a -z "${MYSQL_INIT_I_KNOW_WHAT_I_AM_DOING}" ]; then
|
||||
eerror "You have not updated your conf.d for the new mysql-init-scripts-2 revamp."
|
||||
eerror "Not proceeding because it may be dangerous."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Check the config or die
|
||||
if [ ${RC_CMD} != "restart" ] ; then
|
||||
checkconfig || return 1
|
||||
fi
|
||||
|
||||
# Now we can startup
|
||||
ebegin "Starting $(mysql_svcname)"
|
||||
|
||||
MY_CNF="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
|
||||
|
||||
if [ ! -r "${MY_CNF}" ] ; then
|
||||
eerror "Cannot read the configuration file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# tail -n1 is critical as these we only want the last instance of the option
|
||||
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1)
|
||||
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
local wsrep="$(get_config "${MY_CNF}" 'wsrep[_-]on' | tail -n1 | awk '{print tolower($0)}')"
|
||||
local wsrep_new=$(get_config "${MY_CNF}" 'wsrep-new-cluster' | tail -n1)
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
pidfile="${chroot}/${pidfile}"
|
||||
fi
|
||||
|
||||
# Galera: Only check datadir if not starting a new cluster and galera is enabled
|
||||
# wsrep_on is not on or wsrep-new-cluster exists in the config or MY_ARGS
|
||||
[ "${wsrep}" = "1" ] && wsrep="on"
|
||||
if [ "${wsrep}" != "on" ] || [ -n "${wsrep_new}" ] || stringContain 'wsrep-new-cluster' "${MY_ARGS}" ; then
|
||||
|
||||
local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
|
||||
if [ ! -d "${datadir}" ] ; then
|
||||
eerror "MySQL datadir \`${datadir}' is empty or invalid"
|
||||
eerror "Please check your config file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}"/mysql ] ; then
|
||||
# find which package is installed to report an error
|
||||
local EROOT=$(portageq envvar EROOT)
|
||||
local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
|
||||
if [ -z ${DBPKG_P} ] ; then
|
||||
eerror "You don't appear to have a server package installed yet."
|
||||
else
|
||||
eerror "You don't appear to have the mysql database installed yet."
|
||||
eerror "Please run \`emerge --config =${DBPKG_P}\` to have this done..."
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
local piddir="${pidfile%/*}"
|
||||
checkpath -d --owner mysql:mysql --mode 0755 "$piddir"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
eerror "Directory $piddir for pidfile does not exist and cannot be created"
|
||||
return 1
|
||||
fi
|
||||
|
||||
local startup_timeout=${STARTUP_TIMEOUT:-900}
|
||||
local startup_early_timeout=${STARTUP_EARLY_TIMEOUT:-1000}
|
||||
local tmpnice="${NICE:+"--nicelevel "}${NICE}"
|
||||
local tmpionice="${IONICE:+"--ionice "}${IONICE}"
|
||||
start-stop-daemon \
|
||||
${DEBUG:+"--verbose"} \
|
||||
--start \
|
||||
--exec "${basedir}"/sbin/mysqld \
|
||||
--pidfile "${pidfile}" \
|
||||
--background \
|
||||
--wait ${startup_early_timeout} \
|
||||
${tmpnice} \
|
||||
${tmpionice} \
|
||||
-- --defaults-file="${MY_CNF}" ${MY_ARGS}
|
||||
local ret=$?
|
||||
if [ ${ret} -ne 0 ] ; then
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
fi
|
||||
|
||||
ewaitfile ${startup_timeout} "${socket}"
|
||||
eend $? || return 1
|
||||
|
||||
save_options pidfile "${pidfile}"
|
||||
save_options basedir "${basedir}"
|
||||
}
|
||||
|
||||
stop() {
|
||||
if [ ${RC_CMD} = "restart" ] ; then
|
||||
checkconfig || return 1
|
||||
fi
|
||||
|
||||
ebegin "Stopping $(mysql_svcname)"
|
||||
|
||||
local pidfile="$(get_options pidfile)"
|
||||
local basedir="$(get_options basedir)"
|
||||
local stop_timeout=${STOP_TIMEOUT:-120}
|
||||
|
||||
start-stop-daemon \
|
||||
${DEBUG:+"--verbose"} \
|
||||
--stop \
|
||||
--exec "${basedir}"/sbin/mysqld \
|
||||
--pidfile "${pidfile}" \
|
||||
--retry ${stop_timeout}
|
||||
eend $?
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
local my_cnf="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
|
||||
local basedir=$(get_config "${my_cnf}" basedir | tail -n1)
|
||||
local svc_name=$(mysql_svcname)
|
||||
ebegin "Checking mysqld configuration for ${svc_name}"
|
||||
|
||||
if [ ${RC_CMD} = "checkconfig" ] ; then
|
||||
# We are calling checkconfig specifically. Print warnings regardless.
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
else
|
||||
# Suppress output to check the return value
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null 2>&1
|
||||
|
||||
# If the above command does not return 0,
|
||||
# then there is an error to echo to the user
|
||||
if [ $? -ne 0 ] ; then
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
eend $? "${svc_name} config check failed"
|
||||
}
|
||||
|
||||
# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet:
|
||||
|
@ -0,0 +1,163 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use net.lo
|
||||
# localmount needed for $basedir
|
||||
need localmount s6-svscan
|
||||
}
|
||||
|
||||
get_config() {
|
||||
my_print_defaults --defaults-file="$1" --mysqld |
|
||||
sed -n -e "s/^--$2=//p"
|
||||
}
|
||||
|
||||
mysql_svcname() {
|
||||
local ebextra=
|
||||
case "${svc_name}" in
|
||||
mysql*) ;;
|
||||
*) ebextra=" (mysql)" ;;
|
||||
esac
|
||||
echo "${svc_name}${ebextra}"
|
||||
}
|
||||
|
||||
stringContain() { [ -z "${2##*$1*}" ] && [ -z "$1" -o -n "$2" ]; }
|
||||
|
||||
bootstrap_galera() {
|
||||
MY_ARGS="--wsrep-new-cluster ${MY_ARGS}"
|
||||
mark_service_starting
|
||||
if start_pre && start ; then
|
||||
mark_service_started
|
||||
return 0
|
||||
else
|
||||
mark_service_stopped
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
extra_commands="checkconfig"
|
||||
extra_stopped_commands="boostrap_galera"
|
||||
|
||||
description_checkconfig="Verify the server's configuration"
|
||||
description_boostrap_galera="Start a new Galera cluster with this server as the initial node"
|
||||
supervisor=s6
|
||||
name=$(mysql_svcname)
|
||||
s6_service_timeout_stop="$((1000*${STOP_TIMEOUT:-120}))"
|
||||
#s6_svwait_options_start="-U -t $((1000*${STARTUP_EARLY_TIMEOUT:-1000}))"
|
||||
svc_name=${RC_SVCNAME%-s6}
|
||||
s6_service_path=/var/svc.d/${svc_name}
|
||||
|
||||
start_pre() {
|
||||
# Check the config or die
|
||||
if [ ${RC_CMD} != "restart" ] ; then
|
||||
checkconfig || return 1
|
||||
fi
|
||||
|
||||
MY_CNF="${MY_CNF:-/etc/${svc_name}/my.cnf}"
|
||||
|
||||
if [ ! -r "${MY_CNF}" ] ; then
|
||||
eerror "Cannot read the configuration file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# tail -n1 is critical as these we only want the last instance of the option
|
||||
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1)
|
||||
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
local wsrep="$(get_config "${MY_CNF}" 'wsrep[_-]on' | tail -n1 | awk '{print tolower($0)}')"
|
||||
local wsrep_new=$(get_config "${MY_CNF}" 'wsrep-new-cluster' | tail -n1)
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
pidfile="${chroot}/${pidfile}"
|
||||
fi
|
||||
|
||||
# Galera: Only check datadir if not starting a new cluster and galera is enabled
|
||||
# wsrep_on is not on or wsrep-new-cluster exists in the config or MY_ARGS
|
||||
[ "${wsrep}" = "1" ] && wsrep="on"
|
||||
if [ "${wsrep}" != "on" ] || [ -n "${wsrep_new}" ] || stringContain 'wsrep-new-cluster' "${MY_ARGS}" ; then
|
||||
|
||||
local datadir=$(get_config "${MY_CNF}" datadir | tail -n1)
|
||||
if [ ! -d "${datadir}" ] ; then
|
||||
eerror "MySQL datadir \`${datadir}' is empty or invalid"
|
||||
eerror "Please check your config file \`${MY_CNF}'"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ ! -d "${datadir}"/mysql ] ; then
|
||||
# find which package is installed to report an error
|
||||
local EROOT=$(portageq envvar EROOT)
|
||||
local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql | head -n1))
|
||||
if [ -z ${DBPKG_P} ] ; then
|
||||
eerror "You don't appear to have a server package installed yet."
|
||||
else
|
||||
eerror "You don't appear to have the mysql database installed yet."
|
||||
eerror "Please run \`emerge --config =${DBPKG_P}\` to have this done..."
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
local piddir="${pidfile%/*}"
|
||||
checkpath -d --owner mysql:mysql --mode 0755 "$piddir"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
eerror "Directory $piddir for pidfile does not exist and cannot be created"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Prepare env files to source
|
||||
mkdir -p "/var/svc.d/${svc_name}"
|
||||
echo "MY_CNF=\"${MY_CNF}\"" > "/var/svc.d/${svc_name}/env"
|
||||
echo "MY_ARGS=\"${MY_ARGS}\"" >> "/var/svc.d/${svc_name}/env"
|
||||
echo "basedir=\"${basedir}\"" >> "/var/svc.d/${svc_name}/env"
|
||||
mkdir -p "/var/svc.d/${svc_name}/log"
|
||||
echo "SVCNAME=\"${svc_name}\"" > "/var/svc.d/${svc_name}/log/env"
|
||||
echo "S6_LOG_OPTIONS=\"${S6_LOG_OPTIONS}\"" > "/var/svc.d/${svc_name}/log/env"
|
||||
}
|
||||
|
||||
start_post() {
|
||||
local socket=$(get_config "${MY_CNF}" socket | tail -n1)
|
||||
local chroot=$(get_config "${MY_CNF}" chroot | tail -n1)
|
||||
local startup_timeout=${STARTUP_TIMEOUT:-900}
|
||||
|
||||
if [ -n "${chroot}" ] ; then
|
||||
socket="${chroot}/${socket}"
|
||||
fi
|
||||
ewaitfile ${startup_timeout} "${socket}"
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
local my_cnf="${MY_CNF:-/etc/${svc_name}/my.cnf}"
|
||||
local basedir=$(get_config "${my_cnf}" basedir | tail -n1)
|
||||
local svc_name=$(mysql_svcname)
|
||||
ebegin "Checking mysqld configuration for ${svc_name}"
|
||||
|
||||
if [ ${RC_CMD} = "checkconfig" ] ; then
|
||||
# We are calling checkconfig specifically. Print warnings regardless.
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
else
|
||||
# Suppress output to check the return value
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null 2>&1
|
||||
|
||||
# If the above command does not return 0,
|
||||
# then there is an error to echo to the user
|
||||
if [ $? -ne 0 ] ; then
|
||||
"${basedir}"/sbin/mysqld --defaults-file="${my_cnf}" --help --verbose > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
eend $? "${svc_name} config check failed"
|
||||
}
|
||||
|
||||
stop_pre() {
|
||||
if [ ${RC_CMD} = "restart" ] ; then
|
||||
checkconfig || return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet:
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd s6
|
||||
|
||||
DESCRIPTION="Gentoo MySQL init scripts."
|
||||
HOMEPAGE="https://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
# This _will_ break with MySQL 5.0, 4.x, 3.x
|
||||
# It also NEEDS openrc for the save_options/get_options builtins.
|
||||
# The s6 support was added after openrc 0.16.2
|
||||
RDEPEND="
|
||||
!<dev-db/mysql-5.1
|
||||
!<sys-apps/openrc-0.16.2
|
||||
"
|
||||
# Need to set S due to PMS saying we need it existing, but no SRC_URI
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newconfd "${FILESDIR}/conf.d-2.0" "mysql"
|
||||
|
||||
# s6 init scripts
|
||||
if use amd64 || use x86 ; then
|
||||
newconfd "${FILESDIR}/conf.d-2.0" "mysql-s6"
|
||||
newinitd "${FILESDIR}/init.d-s6-2.2" "mysql-s6"
|
||||
s6_install_service mysql "${FILESDIR}/run-s6"
|
||||
s6_install_service mysql/log "${FILESDIR}/log-s6"
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}/init.d-2.2" "mysql"
|
||||
|
||||
# systemd unit installation
|
||||
exeinto /usr/libexec
|
||||
doexe "${FILESDIR}"/mysqld-wait-ready
|
||||
systemd_newunit "${FILESDIR}/mysqld-v2.service" "mysqld.service"
|
||||
systemd_newunit "${FILESDIR}/mysqld_at-v2.service" "mysqld@.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/mysql.conf"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate.mysql" "mysql"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use amd64 || use x86 ; then
|
||||
einfo ""
|
||||
elog "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package."
|
||||
elog "If you wish to use s6 logging support, comment out the log-error setting in your my.cnf"
|
||||
fi
|
||||
|
||||
einfo ""
|
||||
elog "Starting with version 10.1.8, MariaDB includes an improved systemd unit named mariadb.service"
|
||||
elog "You should prefer that unit over this package's mysqld.service."
|
||||
einfo ""
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Don't block arm. See bug #600134.
|
||||
#MULTILIB_COMPAT=( abi_ppc_64 abi_x86_{32,64} )
|
||||
KEYWORDS="-* ~amd64 ~arm ~ppc64 ~x86"
|
||||
|
||||
inherit java-vm-2 multilib-build toolchain-funcs
|
||||
|
||||
abi_uri() {
|
||||
echo "${2-$1}? (
|
||||
${BASE_URI}/${PN}-core-${PV}-${1}.tar.xz
|
||||
examples? ( ${BASE_URI}/${PN}-examples-${PV}-${1}.tar.xz )
|
||||
)"
|
||||
}
|
||||
|
||||
BASE_URI="https://dev.gentoo.org/~chewi/distfiles"
|
||||
SRC_URI="doc? ( ${BASE_URI}/${PN}-doc-${PV}.tar.xz )
|
||||
source? ( ${BASE_URI}/${PN}-src-${PV}.tar.xz )
|
||||
multilib? ( amd64? ( abi_x86_32? ( ${BASE_URI}/${PN}-core-${PV}-x86.tar.xz ) ) )
|
||||
big-endian? ( $(abi_uri ppc64) )
|
||||
!big-endian? ( $(abi_uri ppc64le ppc64) )
|
||||
$(abi_uri amd64)
|
||||
$(abi_uri arm)
|
||||
$(abi_uri x86)"
|
||||
|
||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
LICENSE="GPL-2-with-classpath-exception"
|
||||
SLOT="8"
|
||||
|
||||
IUSE="+alsa big-endian +cups doc examples +gtk headless-awt multilib nsplugin pulseaudio selinux source +webstart"
|
||||
REQUIRED_USE="gtk? ( !headless-awt ) nsplugin? ( !headless-awt )"
|
||||
|
||||
RESTRICT="preserve-libs strip"
|
||||
QA_PREBUILT="opt/.*"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.42:2%
|
||||
>=media-libs/fontconfig-2.11:1.0%
|
||||
>=media-libs/freetype-2.5.5:2%
|
||||
>=media-libs/lcms-2.6:2%
|
||||
>=sys-libs/zlib-1.2.8-r1%
|
||||
virtual/jpeg:62%
|
||||
alsa? ( >=media-libs/alsa-lib-1.0% )
|
||||
cups? ( >=net-print/cups-2.0% )
|
||||
gtk? (
|
||||
>=dev-libs/atk-2.16.0%
|
||||
>=x11-libs/cairo-1.14.2%
|
||||
x11-libs/gdk-pixbuf:2%
|
||||
>=x11-libs/gtk+-2.24:2%
|
||||
>=x11-libs/pango-1.36%
|
||||
)
|
||||
!headless-awt? (
|
||||
media-libs/giflib:0/7%
|
||||
=media-libs/libpng-1.6*%
|
||||
>=x11-libs/libX11-1.6%
|
||||
>=x11-libs/libXcomposite-0.4%
|
||||
>=x11-libs/libXext-1.3%
|
||||
>=x11-libs/libXi-1.7%
|
||||
>=x11-libs/libXrender-0.9.8%
|
||||
>=x11-libs/libXtst-1.2%
|
||||
)"
|
||||
|
||||
RDEPEND=">=sys-devel/gcc-5.4.0[multilib?]
|
||||
>=sys-libs/glibc-2.23[multilib?]
|
||||
virtual/ttf-fonts
|
||||
selinux? ( sec-policy/selinux-java )
|
||||
multilib? ( ${RDEPEND//%/[${MULTILIB_USEDEP}]} )
|
||||
!multilib? ( ${RDEPEND//%/} )"
|
||||
|
||||
PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
|
||||
nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )
|
||||
pulseaudio? ( dev-java/icedtea-sound )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ "$(tc-is-softfloat)" != "no" ]]; then
|
||||
die "These binaries require a hardfloat system."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# I wouldn't normally use -f below but symlinks in the arm files
|
||||
# make this fail otherwise and any other approach would be tedious.
|
||||
|
||||
if ! use alsa; then
|
||||
rm -fv */jre/lib/*/libjsoundalsa.* || die
|
||||
fi
|
||||
|
||||
if use headless-awt; then
|
||||
rm -fvr */jre/lib/*/lib*{[jx]awt,splashscreen}* \
|
||||
*/{,jre/}bin/policytool */bin/appletviewer || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
local dest="/opt/${P}-${ABI}"
|
||||
dest="${dest/%-${DEFAULT_ABI}/}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
dodir "${dest}"
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
dodoc ${P}-${ABI}/doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README}
|
||||
use doc && dodoc -r ${P}/doc/html
|
||||
|
||||
# doins doesn't preserve executable bits.
|
||||
cp -pRP ${P}-${ABI}/{bin,include,jre,lib,man} "${ddest}" || die
|
||||
|
||||
if use examples; then
|
||||
cp -pRP ${P}-${ABI}/{demo,sample} "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp ${P}/src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Use default VMHANDLE.
|
||||
java-vm_install-env "${FILESDIR}/icedtea-bin.env.sh"
|
||||
else
|
||||
local x native=$(get_system_arch ${DEFAULT_ABI})
|
||||
|
||||
for x in {,/jre}/{bin,lib/$(get_system_arch)} /jre/lib/rt.jar; do
|
||||
dodir "${dest}"${x%/*}
|
||||
cp -pRP ${P}-${ABI}${x} "${ddest}"${x} || die
|
||||
done
|
||||
|
||||
for x in ${P}-${DEFAULT_ABI}{,/jre}/lib/*; do
|
||||
[[ ${x##*/} = ${native} ]] && continue
|
||||
[[ -e "${ddest}"/${x#*/} ]] && continue
|
||||
dosym "${EPREFIX}"/opt/${P}/${x#*/} "${dest}"/${x#*/}
|
||||
done
|
||||
|
||||
# Use ABI-suffixed VMHANDLE.
|
||||
VMHANDLE+="-${ABI}" java-vm_install-env "${FILESDIR}/icedtea-bin.env.sh"
|
||||
fi
|
||||
|
||||
# Both icedtea itself and the icedtea ebuild set PAX markings but we
|
||||
# disable them for the icedtea-bin build because the line below will
|
||||
# respect end-user settings when icedtea-bin is actually installed.
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# Each invocation appends to the config.
|
||||
java-vm_revdep-mask "${EPREFIX}${dest}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use multilib; then
|
||||
multilib_foreach_abi multilib_src_install
|
||||
else
|
||||
multilib_src_install
|
||||
fi
|
||||
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils bash-completion-r1
|
||||
|
||||
MY_P="rust-${PV}"
|
||||
|
||||
DESCRIPTION="Systems programming language from Mozilla"
|
||||
HOMEPAGE="http://www.rust-lang.org/"
|
||||
SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
|
||||
x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
|
||||
|
||||
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||
SLOT="stable"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||
!dev-lang/rust:0
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${P}/bin/rustc-bin-${PV}
|
||||
opt/${P}/bin/rustdoc-bin-${PV}
|
||||
opt/${P}/lib/*.so
|
||||
opt/${P}/lib/rustlib/*/lib/*.so
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
local postfix
|
||||
use amd64 && postfix=x86_64-unknown-linux-gnu
|
||||
use x86 && postfix=i686-unknown-linux-gnu
|
||||
mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local std=$(grep 'std' ./components)
|
||||
local components="rustc,${std}"
|
||||
use doc && components="${components},rust-docs"
|
||||
./install.sh \
|
||||
--components="${components}" \
|
||||
--disable-verify \
|
||||
--prefix="${D}/opt/${P}" \
|
||||
--mandir="${D}/usr/share/${P}/man" \
|
||||
--disable-ldconfig \
|
||||
|| die
|
||||
|
||||
local rustc=rustc-bin-${PV}
|
||||
local rustdoc=rustdoc-bin-${PV}
|
||||
local rustgdb=rust-gdb-bin-${PV}
|
||||
|
||||
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
|
||||
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
|
||||
mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
|
||||
|
||||
dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
|
||||
dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
|
||||
dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
|
||||
|
||||
cat <<-EOF > "${T}"/50${P}
|
||||
LDPATH="/opt/${P}/lib"
|
||||
MANPATH="/usr/share/${P}/man"
|
||||
EOF
|
||||
doenvd "${T}"/50${P}
|
||||
|
||||
cat <<-EOF > "${T}/provider-${P}"
|
||||
/usr/bin/rustdoc
|
||||
/usr/bin/rust-gdb
|
||||
EOF
|
||||
dodir /etc/env.d/rust
|
||||
insinto /etc/env.d/rust
|
||||
doins "${T}/provider-${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect rust update --if-unset
|
||||
|
||||
elog "Rust installs a helper script for calling GDB now,"
|
||||
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
|
||||
|
||||
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||
fi
|
||||
|
||||
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||
elog "install app-vim/rust-vim to get vim support for rust."
|
||||
fi
|
||||
|
||||
if has_version 'app-shells/zsh'; then
|
||||
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect rust unset --if-invalid
|
||||
}
|
@ -1,6 +1,13 @@
|
||||
DIST cargo-0.19.0-i686-unknown-linux-gnu.tar.gz 5068212 SHA256 30ffc32615626b746cbdd2c34d79b3de8ae9889ae56ab33feed9c3a1b9c170fc SHA512 bfe5df682eb566c91995b8c00b5e8edb5d2c3410d1baa5be2ede2e39260b653d34b7723c6c3e8f07d8102ffab50b13e62f9f2d816dad8fba9f39b7bec984181e WHIRLPOOL 3a2c9f36470f611dbd4d8e48c94b401d584b25208abafa1a1073eca33009185e37d92a3f59200027bcfb82bb50acbf5acf4aa87649360afaba7d380bdfcffff0
|
||||
DIST cargo-0.19.0-x86_64-unknown-linux-gnu.tar.gz 5133993 SHA256 24d5e01b09ba0fb15c4b7ef4f527aca874ce2e0cebc3850fdc2535ac7e25b205 SHA512 6fedb8f83d70dc4fb93a29d400577a5578ceed1448f4e85e8a9509b98b037a125532ebfb6a7e6bc9411501ea74774d2c47ac7e2bcb7ac82baeb925abc46609e8 WHIRLPOOL eb76664d0ac08389beb9feae5f6d603b6846cb3d21f015e97bf702789afa7cedd4cd1fb04594d48af8840dece0bc9c44c74fb84390c5b24dcb5061567b59737f
|
||||
DIST rust-std-1.18.0-i686-unknown-linux-gnu.tar.gz 66316236 SHA256 3b93c7b856b98f61ec0f640bc96373f4762484ab3340866902c8c96933bcf10b SHA512 0649743437f15d80f7fe08ae32177b36e2a89e87db8062433cfa6d0f62fe7e8fdbc109a025c02dc110d8abdf4b74ddfe80ba8fb895992b0f5ac6a880bbbdf051 WHIRLPOOL 668f41c1fc96083c974b62ce831c254b8707fc7a452e55927ed77943548b829ff8164618ed5bec29f766366af8682e4d91edd9cd0d615bacc9d47c610f8bb87e
|
||||
DIST rust-std-1.18.0-x86_64-unknown-linux-gnu.tar.gz 75723132 SHA256 4a66150781e224412ebd9dd6d643ad65ecc5668a7754e4a12e115be6ce7bf527 SHA512 98f50016cf6f7c89f90830e1c9f41b5413adf2eaa5e2874ca117ffe84ee59fe77cb461ca3601ee65c5c5c884eb42e22509a94c00544527c727f2e3d6d0adb530 WHIRLPOOL 0c08c956be2252f25098d2007a5d57d4e74b3ef9fba47a0b3e291db9575cf41986d89a8b24f6966f73c830b52d2a481a6248deec9a6502baf3fa5b79afe2c342
|
||||
DIST rustc-1.14.0-i686-unknown-linux-gnu.tar.gz 51391277 SHA256 52b7df5025c302d82f0572fbdc74309334bad36e796c4a2fdf934abe2e5e23ac SHA512 4a951439d8c001b8ff2f6aa2f505e23130209494026fdacea019aef05bebb2f0d3404df047ccedbe9f4140cb5163404db22a5b0977752c495fc45f739d1252fb WHIRLPOOL 881f1a042568d55a3826f629ddd04642dbbfa3a7f423bb3c1d4e1d4e73fa31fe34c708b718b5d44cdd34cc71f99243de98f1478d880ff5804375bbc33ff4766e
|
||||
DIST rustc-1.14.0-x86_64-unknown-linux-gnu.tar.gz 49370951 SHA256 0eeec4211aa872f24c220200a0c2b095bbfc9c0f737c1c5df2555967c8f36787 SHA512 da33a8c509d3a554bed3173f8cdd6fc3639646e5b12eae80654d83290160227238c6f9ff9c0247d63a90f48eeafc8dc31a4a02575ba43fa6d5f75ae58a347c32 WHIRLPOOL a5aa3eb98b0b6b080057a4c5ffb00996904d3a6bb660297a984205f85e9fd6932f9e9c6c4d4fe60a8ca16a216304ab6e504a45b75b876408a8f3450f29872332
|
||||
DIST rustc-1.15.1-i686-unknown-linux-gnu.tar.gz 39314075 SHA256 a833304f99071600c72ecd868c1c7bd5ce49d1102332637a8eb7adb942f349ab SHA512 138a4a893a70860650da1636f734977c215e32b1f9b15b957bfc31575d2662ea6c2c65a130bd13647ec1f2366fe0deb26a94ea09aaec7cbda8e466fa295a0c42 WHIRLPOOL 175e1c7ae1352b955c4e9fc3ea2175e91fe9037e356898fc7dc61ce55f5932db6cf4efac834cecc95b6c90c411b57f0ddb398e9b1f3af843a77f1fd84d52c36b
|
||||
DIST rustc-1.15.1-src.tar.gz 28100203 SHA256 2e7daad418a830b45b977cd7ecf181b65f30f73df63ff36e124ea5fe5d1af327 SHA512 10d533b17cf7f92b9dff14b399b5dd0ac8b68284eea072c85ede78a4e4c2c4fce8c781777124c64798057aceb6444535e02e067fd67ba3633c3e828fb4d2d339 WHIRLPOOL 8b80298cd0a8c3ae0f7ad11052e2dd0bd48b589a95e4bbda4db32ac62d52f9252fe783d46b00484550099b99c3871bd577f8ef54ed45c20b477f9742220497fa
|
||||
DIST rustc-1.15.1-x86_64-unknown-linux-gnu.tar.gz 37650863 SHA256 33ff44672b731fc71145974ce84194a1a9bafe6da3a74fd1e7543f12467f8894 SHA512 97f2fd905b1c2c9ee1fb9a9604a931154aa928692e6334af5a60f1853e49246b13af26afb6342f085cf77e624f23e90c409f05b81983408cf0538ba1401ef7cb WHIRLPOOL 92d4659712a3c8c5908f2abff4f582233a2b5aea2256213376f4830aaddb8470257e49d9f65503e7d82845648a898fd980afb070c39c37feaf8d489fdd9e238e
|
||||
DIST rustc-1.16.0-src.tar.gz 28470372 SHA256 f966b31eb1cd9bd2df817c391a338eeb5b9253ae0a19bf8a11960c560f96e8b4 SHA512 096b1b7406be9bc61161bb7cdd2061f2bc2174c161a31f4ed6ceecf7fc379f315fc2f7cb9f6c134ea4f8519c27bf6e5a3f712cf1e56d5785831d8c8374eb0ba5 WHIRLPOOL a59a19b63d64fd98d4f488e465c7a89ca034eaddb3ef6272fe3ab6c3e411afb7ca3b34926201815ce208a5de78dc9e9018caa1d05b71d1cbc80912d46eb8b074
|
||||
DIST rustc-1.18.0-i686-unknown-linux-gnu.tar.gz 47281118 SHA256 0cb9bb95373cee8ba26e8f517c46f8c58a29e22f2c7c08a4d152306c6ffc7115 SHA512 e270a314fb326fb226226741a5a15f237846ffb7ae6e0ab349f56328f5b3557d8b3dfdcfbc168f3ed4d9875806434537ce7bd5fb97b2c3078f7d03fd6ce65d2d WHIRLPOOL 598aaa0c8ded68fdddd28f827b07e3841355e1ff67aed20d31cc7728fc351a95e8c521661487905fba0689c0513b5f3baf31ed34cfae5f396731a5e72da2067b
|
||||
DIST rustc-1.18.0-x86_64-unknown-linux-gnu.tar.gz 45281645 SHA256 f2a34e20166ccf6eda4de46a9efb02821df5c3f34667e2988284a8eaee408113 SHA512 7d8865a43b979150c3dc3abaa852921f46bebb54659bb0f14bc9b82b367f94ec031da4d03242cb6aae8bd11167402b9e166a14aa3c4a141413be54e9a685af31 WHIRLPOOL 0dc7b498701e3d40b3242e7860b6b5b6ccdd437d0e1d0a6c492fd6b7fa539800b6722e2da124b8ba9568beccc34e83cab080045f41450a4fb5a123c99f6136fb
|
||||
DIST rustc-1.19.0-src.tar.gz 50108626 SHA256 15231f5053fb72ad82be91f5abfd6aa60cb7898c5089e4f1ac5910a731090c51 SHA512 080a8625fc15bc4fc17ab910bdcc0d9a88ce8922f1a3eb241d0f956b5799e4db6df45ebabb5497295c198be08686e5a94dff65569582fc6a5ecb9200cfee5c24 WHIRLPOOL 1dabcc0966a2e69f6c8105e39b82f31bc1c64803318c3a82f63f82afbc67e566d6969568678e86079e1fb515f73feb23d981920c232d836d297abf58010612fe
|
||||
|
@ -0,0 +1,165 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-any-r1 versionator toolchain-funcs
|
||||
|
||||
if [[ ${PV} = *beta* ]]; then
|
||||
betaver=${PV//*beta}
|
||||
BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}"
|
||||
MY_P="rustc-beta"
|
||||
SLOT="beta/${PV}"
|
||||
SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.gz"
|
||||
KEYWORDS=""
|
||||
else
|
||||
ABI_VER="$(get_version_component_range 1-2)"
|
||||
SLOT="stable/${ABI_VER}"
|
||||
MY_P="rustc-${PV}"
|
||||
SRC="${MY_P}-src.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
if [[ ${ARCH} = "amd64" ]]; then
|
||||
TRIPLE="x86_64-unknown-linux-gnu"
|
||||
else
|
||||
TRIPLE="i686-unknown-linux-gnu"
|
||||
fi
|
||||
|
||||
CARGO_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
|
||||
STAGE0_VERSION="1.$(($(get_version_component_range 2) - 1)).0"
|
||||
STAGE0_VERSION_CARGO="0.$(($(get_version_component_range 2))).0"
|
||||
BOOTSTRAP_DATE="2017-06-08" # found in src/stage0.txt
|
||||
|
||||
DESCRIPTION="Systems programming language from Mozilla"
|
||||
HOMEPAGE="http://www.rust-lang.org/"
|
||||
|
||||
SRC_URI="amd64? (
|
||||
https://static.rust-lang.org/dist/rustc-${STAGE0_VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
https://static.rust-lang.org/dist/rust-std-${STAGE0_VERSION}-x86_64-unknown-linux-gnu.tar.gz
|
||||
https://static.rust-lang.org/dist/cargo-${STAGE0_VERSION_CARGO}-x86_64-unknown-linux-gnu.tar.gz
|
||||
)
|
||||
x86? (
|
||||
https://static.rust-lang.org/dist/rustc-${STAGE0_VERSION}-i686-unknown-linux-gnu.tar.gz
|
||||
https://static.rust-lang.org/dist/rust-std-${STAGE0_VERSION}-i686-unknown-linux-gnu.tar.gz
|
||||
https://static.rust-lang.org/dist/cargo-${STAGE0_VERSION_CARGO}-i686-unknown-linux-gnu.tar.gz
|
||||
)
|
||||
https://static.rust-lang.org/dist/rustc-${PV}-src.tar.gz"
|
||||
|
||||
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||
|
||||
IUSE="clang debug doc libcxx"
|
||||
REQUIRED_USE="libcxx? ( clang )"
|
||||
|
||||
RDEPEND="libcxx? ( sys-libs/libcxx )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
>=dev-lang/perl-5.0
|
||||
clang? ( sys-devel/clang )
|
||||
"
|
||||
|
||||
PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||
>=dev-util/cargo-${CARGO_VERSION}"
|
||||
|
||||
S="${WORKDIR}/rustc-${PV}-src"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A##* }
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
echo "No configure step for rust"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local stage0="rust-${STAGE0_VERSION}-${TRIPLE}"
|
||||
if use debug ; then
|
||||
local optimized="false";
|
||||
local debug="true";
|
||||
else
|
||||
local optimized="true";
|
||||
local debug="false";
|
||||
fi
|
||||
|
||||
cat <<- EOF > config.toml
|
||||
[llvm]
|
||||
optimize = ${optimized}
|
||||
assertions = ${debug}
|
||||
[build]
|
||||
docs = false
|
||||
submodules = false
|
||||
python = "${EPYTHON}"
|
||||
vendor = true
|
||||
[install]
|
||||
prefix = "${EPREFIX}/usr"
|
||||
libdir = "$(get_libdir)/${P}"
|
||||
mandir = "share/${P}/man"
|
||||
docdir = "share/${P}/doc"
|
||||
[rust]
|
||||
optimize = ${optimized}
|
||||
default-linker = "$(tc-getBUILD_CC)"
|
||||
default-ar = "$(tc-getBUILD_AR)"
|
||||
channel = "${SLOT%%/*}"
|
||||
rpath = false
|
||||
optimize-tests = ${optimized}
|
||||
EOF
|
||||
|
||||
local cache_dir="build/cache/${BOOTSTRAP_DATE}"
|
||||
mkdir -p ${cache_dir}
|
||||
for i in ${A}; do
|
||||
cp "${DISTDIR}/${i}" $cache_dir/
|
||||
done
|
||||
${EPYTHON} x.py build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
local obj="build/${TRIPLE}/stage2"
|
||||
dobin "${obj}/bin/rustc" "${obj}/bin/rustdoc"
|
||||
dobin src/etc/rust-gdb src/etc/rust-lldb
|
||||
insinto "/usr/$(get_libdir)"
|
||||
doins -r "${obj}/lib/"*
|
||||
dodoc COPYRIGHT
|
||||
doman man/*
|
||||
|
||||
cat <<-EOF > "${T}"/50${P}
|
||||
LDPATH="/usr/$(get_libdir)/${P}"
|
||||
MANPATH="/usr/share/${P}/man"
|
||||
EOF
|
||||
doenvd "${T}"/50${P}
|
||||
|
||||
cat <<-EOF > "${T}/provider-${P}"
|
||||
/usr/bin/rustdoc
|
||||
/usr/bin/rust-gdb
|
||||
EOF
|
||||
dodir /etc/env.d/rust
|
||||
insinto /etc/env.d/rust
|
||||
doins "${T}/provider-${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect rust update --if-unset
|
||||
|
||||
elog "Rust installs a helper script for calling GDB now,"
|
||||
elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}."
|
||||
|
||||
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||
fi
|
||||
|
||||
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||
elog "install app-vim/rust-vim to get vim support for rust."
|
||||
fi
|
||||
|
||||
if has_version 'app-shells/zsh'; then
|
||||
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect rust unset --if-invalid
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
From 12fb11f46a7eb4054b74679a6f5ad12dcc41132d Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr>
|
||||
Date: Sun, 23 Jul 2017 20:46:19 +0200
|
||||
Subject: [PATCH] Control build of demos
|
||||
|
||||
Building demos is not necessary for distributions. Allow disabling it
|
||||
but keep it enabled by default.
|
||||
---
|
||||
Makefile.am | 2 ++
|
||||
configure.ac | 7 +++++++
|
||||
2 files changed, 9 insertions(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 0e4cf631..8c0c7143 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -635,6 +635,7 @@ endif
|
||||
CODE_COVERAGE_DIRECTORY = $(top_builddir)/gdata
|
||||
CODE_COVERAGE_LCOV_OPTIONS = --base-directory $(abs_top_srcdir)
|
||||
|
||||
+if ENABLE_BUILD_DEMOS
|
||||
# Demo programs
|
||||
noinst_PROGRAMS = \
|
||||
demos/youtube/youtube-cli \
|
||||
@@ -650,6 +651,7 @@ if HAVE_GTK
|
||||
noinst_PROGRAMS += \
|
||||
demos/scrapbook/scrapbook
|
||||
endif
|
||||
+endif
|
||||
|
||||
demos_docs_list_docs_list_SOURCES = \
|
||||
demos/docs-list/docs-list.c \
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 3b0530c3..1e09f277 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -152,6 +152,10 @@ AC_SUBST([GNOME_PACKAGES_PRIVATE])
|
||||
AC_SUBST([GNOME_PACKAGES])
|
||||
AC_SUBST([GOA_ENABLED])
|
||||
|
||||
+AC_ARG_ENABLE([build_demos],
|
||||
+ AS_HELP_STRING([--enable-build-demos],
|
||||
+ [Enable building demos (default: yes)]),,
|
||||
+ [enable_build_demos=yes])
|
||||
AC_ARG_ENABLE([always_build_tests],
|
||||
AS_HELP_STRING([--enable-always-build-tests],
|
||||
[Enable always building tests (default: yes)]),,
|
||||
@@ -161,6 +165,9 @@ AC_ARG_ENABLE([installed_tests],
|
||||
[Install test programs (default: no)]),,
|
||||
[enable_installed_tests=no])
|
||||
|
||||
+AM_CONDITIONAL([ENABLE_BUILD_DEMOS],
|
||||
+ [test "$enable_build_demos" = "yes"])
|
||||
+
|
||||
AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS],
|
||||
[test "$enable_always_build_tests" = "yes"])
|
||||
AC_SUBST([ENABLE_ALWAYS_BUILD_TESTS],[$enable_always_build_tests])
|
||||
--
|
||||
2.13.2
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
GNOME2_EAUTORECONF="yes"
|
||||
|
||||
inherit gnome2 vala
|
||||
|
||||
DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/libgdata"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/22" # subslot = libgdata soname version
|
||||
|
||||
IUSE="+crypt gnome-online-accounts +introspection static-libs test vala"
|
||||
REQUIRED_USE="
|
||||
gnome-online-accounts? ( crypt )
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.38.0:2
|
||||
>=dev-libs/json-glib-0.15
|
||||
>=dev-libs/libxml2-2:2
|
||||
>=net-libs/liboauth-0.9.4
|
||||
>=net-libs/libsoup-2.55.90:2.4[introspection?]
|
||||
>=x11-libs/gdk-pixbuf-2.14:2
|
||||
crypt? ( app-crypt/gcr:= )
|
||||
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8:= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/gtk-doc-am-1.25
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig
|
||||
test? ( >=net-libs/uhttpmock-0.5 )
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-disable-demos.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-build-demos \
|
||||
$(use_enable crypt gnome) \
|
||||
$(use_enable gnome-online-accounts goa) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable vala) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable test always-build-tests)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset ORBIT_SOCKETDIR
|
||||
export GSETTINGS_BACKEND="memory" #486412
|
||||
dbus-launch emake check
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="a pipeline manipulation library"
|
||||
HOMEPAGE="http://libpipeline.nongnu.org/"
|
||||
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="static-libs test"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.4.1-gnulib-cygwin-sys_select.patch
|
||||
"${FILESDIR}"/${PN}-1.4.1-gnulib-darwin-program_name.patch
|
||||
)
|
@ -1,5 +1,2 @@
|
||||
DIST serd-0.18.2.tar.bz2 291053 SHA256 8e3d8402c33fa217572d3ee936919037420fb237fb8603a7b024ab482a94eac1 SHA512 2e775f50efbefa88d291999a26bf8e6602b5791affc9b9073451eb1406db654a63d2b91eb862ba7e714b5ce9ad51f7b7b259714476cd1532cf17fc072a923c3f WHIRLPOOL 85d8599a3c4f1c26d438b741b70f75b0c3b7265a973b93bafa45f59f3a669b664d979ff49f9894f36c76d1c1826818222a089051b7202a71b85f30d2cba80980
|
||||
DIST serd-0.20.0.tar.bz2 363807 SHA256 64515f4f5eb27ba2ba151027a72a77672f6ee8a2a3b58991ad5c045135feabbf SHA512 d313abb6423b0b1dd30b5c4f7ede45a5e51b3c8676b49215e106a75d73280e07c48b3895f2d88aeac2117eaf9c82cdb58bfc530895ad17a34d810c256868d1ef WHIRLPOOL 0cb4e6b9c870cc2bf5a34eb5c25a4a5fbcc90737ac646688338b9529baa774da29cd9f8659cdcc8f13e714949ea0ed840af28ed81a869465f8902b3e24cbeb27
|
||||
DIST serd-0.22.0.tar.bz2 340371 SHA256 7b030287b4b75f35e6212b145648bec0be6580cc5434caa6d2fe64a38562afd2 SHA512 532f9bcf1edafb4fb74c521c11e3582133096068c883ecdfb97483c1344de6c2effc7cef8efa0c5d919667d5ef51e3f62af0a02faf0d518216e0746933a859d3 WHIRLPOOL 11e3757a322b578ee648e53774d0390de4b295f5f8c187a8f7dc6bc59249845d890548324107b7c9dbf03ab851a61e9e71f5997e1fdefafeaf5610350292d58f
|
||||
DIST serd-0.24.0.tar.bz2 346615 SHA256 8cfb8ade8d9a6f784da6e00ac05a28b7de440df5d2513796cd34aaa2754f6a6c SHA512 c62e869c584340ea5ea9f2f52a279281f792770ae4ccdde5a5355b23f428e5f8a32e29c3bd521d2a846d62e17b691758764dbd814b9b67203e264be2fe5a81ed WHIRLPOOL 7e1c171726c814b1546c95521de49295ea468fdc31534f556eada6edd9596d83b147d18b9eb1cfa07e42f508982a93962ecfd5bbd140abdc1bfe6cf0cfb7da42
|
||||
DIST serd-0.26.0.tar.bz2 369280 SHA256 e3e44a88f90a9971d55e6cbd59a7b9cfa97cfc17c512fed7166a4252d5209298 SHA512 749bf161d38cb8489f196ece2bf2b7c22e9113d05b38452592d92f9ffdec25d340e680e697e9531dab80d2ef04600690f9333208a4ef22307b8ed8e238d5c7b8 WHIRLPOOL 04d79bf1ae348690fcb96dc8adee4cc32b48c3163d08684acdc6f70704228af5138f1718d9b5a26ce6b8c8e1d134ecdce6694266e3e6f6517973f36db90996c3
|
||||
DIST serd-0.28.0.tar.bz2 371592 SHA256 1df21a8874d256a9f3d51a18b8c6e2539e8092b62cc2674b110307e93f898aec SHA512 b25cc70af17ff821812ab2a70c2812c1713ff811a0f18fb5d5c54f3b67e0c68293aabedfacd687afe6b7acdfd81602ef81764d7e11bc0d933de738bc6d4fce3e WHIRLPOOL ceebbd0068e659438571d61d9cbd192b8de1524a11b285738ee8697ff3b31f22db84b2908f06f67f7b3f764f246f2eb67abf04a4e77d40e101eac7eb0306dbf4
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
PYTHON_REQ_USE='threads(+)'
|
||||
inherit python-any-r1 waf-utils
|
||||
|
||||
DESCRIPTION="Library for RDF syntax which supports reading and writing Turtle and NTriples"
|
||||
HOMEPAGE="http://drobilla.net/software/serd/"
|
||||
SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE="doc static-libs test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( "AUTHORS" "NEWS" "README" )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
waf-utils_src_configure \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
$(use test && echo "--test") \
|
||||
$(use doc && echo "--docs") \
|
||||
$(use static-libs && echo "--static")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./waf test || die
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
PYTHON_REQ_USE='threads(+)'
|
||||
inherit python-any-r1 waf-utils
|
||||
|
||||
DESCRIPTION="Library for RDF syntax which supports reading and writing Turtle and NTriples"
|
||||
HOMEPAGE="http://drobilla.net/software/serd/"
|
||||
SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc static-libs test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( "AUTHORS" "NEWS" "README" )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
waf-utils_src_configure \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
$(use test && echo "--test") \
|
||||
$(use doc && echo "--docs") \
|
||||
$(use static-libs && echo "--static")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./waf test || die
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
PYTHON_REQ_USE='threads(+)'
|
||||
inherit python-any-r1 waf-utils
|
||||
|
||||
DESCRIPTION="Library for RDF syntax which supports reading and writing Turtle and NTriples"
|
||||
HOMEPAGE="http://drobilla.net/software/serd/"
|
||||
SRC_URI="http://download.drobilla.net/${P}.tar.bz2"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc static-libs test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( "AUTHORS" "NEWS" "README" )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
waf-utils_src_configure \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
$(use test && echo "--test") \
|
||||
$(use doc && echo "--docs") \
|
||||
$(use static-libs && echo "--static")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./waf test || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST angstrom-0.6.0.tar.gz 80393 SHA256 9080c6ad32ee5c31ae5b754370328daa5febb219ae2a1e8390fb469622dca7ee SHA512 4b03022f3e8147075653a9740473ce23fc42ba8c559f1b86311132fa1a09cfac0f044cb3a8c9fc2d97f4acef35806b4742606b0af22d6b07058e8a78c6672618 WHIRLPOOL a79f7e522e645b605eabb155c604cf6e2e435e9325551a22efbe5c1b12f57726c8ccdad510ef618cc510b409acc6cb86204630ecb4cf1af6d1adc628bb19dd33
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit findlib
|
||||
|
||||
DESCRIPTION="Parser combinators built for speed and memory efficiency"
|
||||
HOMEPAGE="https://github.com/inhabitedtype/angstrom"
|
||||
SRC_URI="https://github.com/inhabitedtype/angstrom/archive/${PV}.tar.gz -> angstrom-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/ocaml:=
|
||||
dev-ml/angstrom:=
|
||||
dev-ml/async:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/jbuilder
|
||||
dev-ml/opam"
|
||||
|
||||
S="${WORKDIR}/angstrom-${PV}"
|
||||
|
||||
src_compile() {
|
||||
jbuilder build -p ${PN} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
jbuilder runtest -p ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
--mandir="${ED}/usr/share/man" \
|
||||
${PN}.install || die
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ml@gentoo.org</email>
|
||||
<name>Gentoo ML Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">inhabitedtype/angstrom</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST angstrom-0.6.0.tar.gz 80393 SHA256 9080c6ad32ee5c31ae5b754370328daa5febb219ae2a1e8390fb469622dca7ee SHA512 4b03022f3e8147075653a9740473ce23fc42ba8c559f1b86311132fa1a09cfac0f044cb3a8c9fc2d97f4acef35806b4742606b0af22d6b07058e8a78c6672618 WHIRLPOOL a79f7e522e645b605eabb155c604cf6e2e435e9325551a22efbe5c1b12f57726c8ccdad510ef618cc510b409acc6cb86204630ecb4cf1af6d1adc628bb19dd33
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ml@gentoo.org</email>
|
||||
<name>Gentoo ML Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">inhabitedtype/angstrom</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST angstrom-0.6.0.tar.gz 80393 SHA256 9080c6ad32ee5c31ae5b754370328daa5febb219ae2a1e8390fb469622dca7ee SHA512 4b03022f3e8147075653a9740473ce23fc42ba8c559f1b86311132fa1a09cfac0f044cb3a8c9fc2d97f4acef35806b4742606b0af22d6b07058e8a78c6672618 WHIRLPOOL a79f7e522e645b605eabb155c604cf6e2e435e9325551a22efbe5c1b12f57726c8ccdad510ef618cc510b409acc6cb86204630ecb4cf1af6d1adc628bb19dd33
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ml@gentoo.org</email>
|
||||
<name>Gentoo ML Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">inhabitedtype/angstrom</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST angstrom-0.5.1.tar.gz 131214 SHA256 f9ae1834f5d89469b37c0f7a1a9c21a71c1085703ad34570791dbe7522889492 SHA512 e79c11333b11e2fb25f7a6667f9c6498a55ead7d9517c9b0e0b4e9cab1a220e65017a105e146f82688c54a6abf0f7a269ed163460f8fa83f95bec6bec61b8d5f WHIRLPOOL dd7382046338d615409d0af216db482072719580f5a96b6c6dd16b85d03dd125af834433fd4f3ef6de008319764aa76b2575edd698e9313ead931304cd45fdd0
|
||||
DIST angstrom-0.6.0.tar.gz 80393 SHA256 9080c6ad32ee5c31ae5b754370328daa5febb219ae2a1e8390fb469622dca7ee SHA512 4b03022f3e8147075653a9740473ce23fc42ba8c559f1b86311132fa1a09cfac0f044cb3a8c9fc2d97f4acef35806b4742606b0af22d6b07058e8a78c6672618 WHIRLPOOL a79f7e522e645b605eabb155c604cf6e2e435e9325551a22efbe5c1b12f57726c8ccdad510ef618cc510b409acc6cb86204630ecb4cf1af6d1adc628bb19dd33
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit findlib
|
||||
|
||||
DESCRIPTION="Parser combinators built for speed and memory efficiency"
|
||||
HOMEPAGE="https://github.com/inhabitedtype/angstrom"
|
||||
SRC_URI="https://github.com/inhabitedtype/angstrom/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/ocaml:=
|
||||
dev-ml/ocaml-cstruct:=
|
||||
dev-ml/ocplib-endian:=
|
||||
dev-ml/result:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/jbuilder
|
||||
dev-ml/opam
|
||||
test? ( dev-ml/alcotest )"
|
||||
|
||||
# needs old alcotest...
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
jbuilder build -p ${PN} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
jbuilder runtest -p ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
--mandir="${ED}/usr/share/man" \
|
||||
${PN}.install || die
|
||||
}
|
@ -0,0 +1,130 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
||||
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
||||
CMAKE_MIN_VERSION=3.7.0-r1
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit cmake-utils git-r3 llvm python-any-r1
|
||||
|
||||
DESCRIPTION="OCaml bindings for LLVM"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.llvm.org/git/llvm.git
|
||||
https://github.com/llvm-mirror/llvm.git"
|
||||
EGIT_BRANCH="release_50"
|
||||
|
||||
# Keep in sync with sys-devel/llvm
|
||||
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
|
||||
NVPTX PowerPC RISCV Sparc SystemZ X86 XCore )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS=""
|
||||
IUSE="test ${ALL_LLVM_TARGETS[*]}"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4.00.0:0=
|
||||
dev-ml/ocaml-ctypes:=
|
||||
~sys-devel/llvm-${PV}:=[${LLVM_TARGET_USEDEPS// /,}]
|
||||
!sys-devel/llvm[ocaml(-)]"
|
||||
# configparser-3.2 breaks the build (3.3 or none at all are fine)
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
dev-ml/findlib
|
||||
test? ( dev-ml/ounit
|
||||
$(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") )
|
||||
!!<dev-python/configparser-3.3.0.2
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
|| ( ${ALL_LLVM_TARGETS[*]} )"
|
||||
|
||||
# least intrusive of all
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
python_check_deps() {
|
||||
! use test \
|
||||
|| has_version "dev-python/lit[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Python is needed to run tests using lit
|
||||
python_setup
|
||||
|
||||
# User patches
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLLVM_OCAML_OUT_OF_TREE=ON
|
||||
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
|
||||
# disable various irrelevant deps and settings
|
||||
-DLLVM_ENABLE_FFI=OFF
|
||||
-DLLVM_ENABLE_TERMINFO=OFF
|
||||
-DHAVE_HISTEDIT_H=NO
|
||||
-DWITH_POLLY=OFF
|
||||
-DLLVM_ENABLE_ASSERTIONS=OFF
|
||||
-DLLVM_ENABLE_EH=ON
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
|
||||
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||
|
||||
# disable go bindings
|
||||
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
|
||||
|
||||
# TODO: ocamldoc
|
||||
)
|
||||
|
||||
use test && mycmakeargs+=(
|
||||
-DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
|
||||
local llvm_libdir=$(llvm-config --libdir)
|
||||
# an ugly hack; TODO: figure out a way to pass -L to ocaml...
|
||||
cd "${BUILD_DIR}/${libdir}" || die
|
||||
ln -s "${llvm_libdir}"/*.so . || die
|
||||
|
||||
if use test; then
|
||||
local llvm_bindir=$(llvm-config --bindir)
|
||||
# Force using system-installed tools.
|
||||
sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \
|
||||
"${BUILD_DIR}"/test/lit.site.cfg || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile ocaml_all
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
cmake-utils_src_make check-llvm-bindings-ocaml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die
|
||||
|
||||
dodoc bindings/ocaml/README.txt
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST menhir-20170101.tar.gz 738131 SHA256 99696f365511e0440c18d295b7073a13886c5b594e1875f5967ad897a2216a46 SHA512 810d9863873519b9052464e522894579ffd2f9685851ba32c34cf772570710e7dde2a4629ab6407c2404d2587132488aeebed97db2dad1a456e28104c230bbac WHIRLPOOL 427cb187e5b57f51fe57df519f1732a4f827d0090705e70feecfe62f06e94a95d5e8c5e4b7b9e31f1c199f7c7f7dcfd6f48a3d29d0c8f66548761d85f1c64514
|
||||
DIST menhir-20170418.tar.gz 1128319 SHA256 31deadeef2129ffcbdd78717007e13f87031432e6c3601f7e829bb0e5f9c7d2b SHA512 b261a0014c4b5c79d8e439c708d59f3448a6f7a7a0f5390ac319793bdb3d4a2d3774dd9e8e8151fb8208a597aec86422f24d48a2f1809751e3d12d13e14620b5 WHIRLPOOL 7b0f299c4494a54d137e8433c4f8b7440469f55501793ea403a6f1a4ef3a174c4e14f11ce5ca3d2938b44f683f7424879947c1aa9b8a7053a0727f423f236771
|
||||
DIST menhir-20170509.tar.gz 1128580 SHA256 36a690856f972adaadcff0138380b563f92041aab9d5dcaf29da1c27c8326baa SHA512 51d7a9f83dc8b31c3745c4eb86d5b6d952e54a4468e23aab7f413c316e40472612fe6ddb9503231ca93b14f6097e9624d7cd581d6ca5d7067fe3e98d0a3c10e1 WHIRLPOOL 159739872eecb85045eaae7bd7aaea4c8dfc914da5d46187d06d7aa44638e6a3d6d355b30265743a64eac07b58831df66eb5e8f7e73f1ccb76b89722e38c9d86
|
||||
DIST menhir-20170607.tar.gz 796429 SHA256 00caa66ed0d1544defda24539f2ca1d37b92120e0575aafc5fcabd8e5364ce61 SHA512 468e0b042b8deabe2db4c33d59ff0a5d9177845bfc31eeffb4ba90de6a5e52cf2cd98965c8ec0cf6f849f459738f59802564d76310fb06f0aa4746c1441eade1 WHIRLPOOL 175f10b4b1c3bf78f4dd82095e44b972c85f603701a143c34dde605b7a3ec1ef46f90d042b5f17374b25d26cc625249f098a7328960be4f621eebdad715bbb5f
|
||||
DIST menhir-20170712.tar.gz 855262 SHA256 ca482d690052343d6cb9452433248a0a92cc8bfc8fa529dc313220c9d7c0d000 SHA512 7850fa031a2bd69e9cf17db6d8f82f716ab5f9e60b34d1a53591a3ff46750fb01880f3282a7194465441abc4c2ba60f543646097f5f0eef6fe78b36266a3dbdc WHIRLPOOL 0c7cfcc798c2126ca345b38560972dfca79adf2b5bf2fa0d4dccaf1745298dec601c902cae8f9b35970e63084d0a261cd42f230b1c452905a28607d18fcebeed
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="LR(1) parser generator for the OCaml language"
|
||||
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
|
||||
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_configure() {
|
||||
if ! use ocamlopt ; then
|
||||
export TARGET=byte
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
|
||||
use examples && docompress -x /usr/share/doc/${PF}/demos
|
||||
dodoc AUTHORS CHANGES
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="LR(1) parser generator for the OCaml language"
|
||||
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
|
||||
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_configure() {
|
||||
if ! use ocamlopt ; then
|
||||
export TARGET=byte
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
|
||||
use examples && docompress -x /usr/share/doc/${PF}/demos
|
||||
dodoc README.md CHANGES.md
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="LR(1) parser generator for the OCaml language"
|
||||
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
|
||||
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_configure() {
|
||||
if ! use ocamlopt ; then
|
||||
export TARGET=byte
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
|
||||
use examples && docompress -x /usr/share/doc/${PF}/demos
|
||||
dodoc README.md CHANGES.md
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="LR(1) parser generator for the OCaml language"
|
||||
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
|
||||
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_configure() {
|
||||
if ! use ocamlopt ; then
|
||||
export TARGET=byte
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
|
||||
use examples && docompress -x /usr/share/doc/${PF}/demos
|
||||
dodoc README.md CHANGES.md
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit findlib
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="Tools for authors of ppx rewriters"
|
||||
HOMEPAGE="https://github.com/let-def/ppx_tools_versioned"
|
||||
SRC_URI="https://github.com/let-def/ppx_tools_versioned/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
dev-lang/ocaml:=
|
||||
dev-ml/ocaml-migrate-parsetree:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
findlib_src_install
|
||||
dodoc README.md
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit git-r3 python-r1
|
||||
|
||||
DESCRIPTION="Python bindings for sys-devel/clang"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.llvm.org/git/clang.git
|
||||
https://github.com/llvm-mirror/clang.git"
|
||||
EGIT_BRANCH="release_50"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# The module is opening libclang.so directly, and doing some blasphemy
|
||||
# on top of it.
|
||||
RDEPEND="
|
||||
>=sys-devel/clang-${PV}
|
||||
!sys-devel/llvm:0[clang(-),python(-)]
|
||||
!sys-devel/clang:0[python(-)]
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
S=${WORKDIR}/${P}/bindings/python
|
||||
|
||||
src_test() {
|
||||
python_foreach_impl nosetests -v || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_domodule clang
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
Bug: https://bugs.gentoo.org/show_bug.cgi?id=608920
|
||||
Upstream commit: https://github.com/originell/jpype/commit/3a4fb98938afd9c03070086d1b8fda8841410fa3
|
||||
|
||||
From c3578c3488de35236f73b6eb27428b1f1526c45b Mon Sep 17 00:00:00 2001
|
||||
From: Peter-Levine <plevine457@gmail.com>
|
||||
Date: Sat, 11 Feb 2017 23:31:27 -0500
|
||||
Subject: [PATCH] Mark destructor that throws as noexcept(false) for >=C++11
|
||||
|
||||
---
|
||||
native/common/include/jp_field.h | 2 +-
|
||||
native/common/include/jpype.h | 6 ++++++
|
||||
native/common/jp_field.cpp | 2 +-
|
||||
3 files changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/native/common/include/jp_field.h b/native/common/include/jp_field.h
|
||||
index d28b795..f93752c 100644
|
||||
--- a/native/common/include/jp_field.h
|
||||
+++ b/native/common/include/jp_field.h
|
||||
@@ -38,7 +38,7 @@ public :
|
||||
/**
|
||||
* destructor
|
||||
*/
|
||||
- virtual ~JPField();
|
||||
+ virtual ~JPField() NO_EXCEPT_FALSE;
|
||||
|
||||
public :
|
||||
bool isStatic() const;
|
||||
diff --git a/native/common/include/jpype.h b/native/common/include/jpype.h
|
||||
index 7db5832..a492d06 100644
|
||||
--- a/native/common/include/jpype.h
|
||||
+++ b/native/common/include/jpype.h
|
||||
@@ -64,6 +64,12 @@
|
||||
#define PyUnicode_FromFormat PyString_FromFormat
|
||||
#endif
|
||||
|
||||
+// Define this and use to allow destructors to throw in C++11 or later
|
||||
+#if __cplusplus >= 201103L
|
||||
+#define NO_EXCEPT_FALSE noexcept(false)
|
||||
+#else
|
||||
+#define NO_EXCEPT_FALSE
|
||||
+#endif
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
diff --git a/native/common/jp_field.cpp b/native/common/jp_field.cpp
|
||||
index 8c75e58..5ef9d8c 100644
|
||||
--- a/native/common/jp_field.cpp
|
||||
+++ b/native/common/jp_field.cpp
|
||||
@@ -63,7 +63,7 @@ JPField::JPField(const JPField& fld)
|
||||
TRACE_OUT;
|
||||
}
|
||||
|
||||
-JPField::~JPField()
|
||||
+JPField::~JPField() NO_EXCEPT_FALSE
|
||||
{
|
||||
TRACE_IN("JPField::~JPField");
|
||||
JPEnv::getJava()->DeleteGlobalRef(m_Field);
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://git.llvm.org/git/llvm.git
|
||||
https://github.com/llvm-mirror/llvm.git"
|
||||
EGIT_BRANCH="release_50"
|
||||
|
||||
LICENSE="UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="test"
|
||||
|
||||
S=${WORKDIR}/${P}/utils/lit
|
||||
|
||||
# Tests require 'FileCheck' and 'not' utilities (from llvm)
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
sys-devel/llvm )"
|
||||
|
||||
# TODO: move the manpage generation here (from sys-devel/llvm)
|
||||
|
||||
python_test() {
|
||||
./lit.py -sv tests || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST asciidoctor-1.5.5.tar.gz 543437 SHA256 2da103a6b108ba31fced25c79d52318f41f349a8552917a11e910d194f95190b SHA512 6a95c2e48314a1f44d6398d83c490231baeb4ebea8d8c0e0ef361c884251fe054d48afceccadfb6c34947946920731e0194fc3e398b8dd8b8b320ea9d37f1f66 WHIRLPOOL 1772b12098b117200b36c5bf3fe9659b178ced7c9994fcc1332bc89c4b3dde1824feae70e3b9178569283c69c0345e37ac4394877feac4aa0ae32c103b91359e
|
||||
DIST asciidoctor-1.5.6.1.tar.gz 528614 SHA256 27e238f4cc48c19e1060ec8770a1c6eb55c3b837d9063aa99bc37e38d76b4a48 SHA512 ed700f8ae7ca04700cb1814f819c0f29098266e0b457edb0ade413ae231388f7d217f929e6dff26daaafd6ad8d4c2f1de5debb49cd841fc493aa9d94a9069549 WHIRLPOOL de559dc0199ab66c142cb389765323be411d5841b2c8ee47af0b0bc3e2e16b6b222dd5cb3a2be4698d75de931afaabdf692ac06caae951f35c85c6fb3b574d79
|
||||
DIST asciidoctor-1.5.6.tar.gz 527048 SHA256 ceaadf42fd0b649b7090070d359fed071e9d190fc060532c9a7e442a6297e269 SHA512 a9ceb4d75173141d0997bd64b06a7fddfbe79da3dd3c63d9507ef6955c1bec2a1f51fbba06173fb878e22e13ae3945bf7acd7f4fad9b15e8ed689f84bc9f6e46 WHIRLPOOL d28a94ec30383f20cecc44de1274454c3f9f62c6a317916b08365956b25fae6fbc4a114e642cebd976841828fbf2fad7108e9bd46ad9a4abf651cf3f4f9a7ed6
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="test features"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="data"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Processor for converting AsciiDoc into HTML 5, DocBook 4.5 and other formats"
|
||||
HOMEPAGE="https://github.com/asciidoctor/asciidoctor"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-util/cucumber
|
||||
dev-ruby/rspec-expectations:*
|
||||
dev-ruby/asciimath
|
||||
dev-ruby/coderay
|
||||
dev-ruby/erubis
|
||||
dev-ruby/haml
|
||||
dev-ruby/nokogiri
|
||||
dev-ruby/slim
|
||||
dev-ruby/tilt )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
doman man/asciidoctor.1
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue