parent
115d9bbfca
commit
cfa2ed0fa2
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST sudo-1.8.20p2.tar.gz 2930769 BLAKE2B 90338e7d436683f94a9e13e9f0da668f2bbbf2184530feb63166186309881b737b783d2be80f935e5d64fd2a4264928423d2b754121be5caf07acbacbe2a6d42 SHA512 8bf67e687f7a84605fdef8d547b5cd661141b6c8fd25820c33c7e37e97ca7f21f564c3bae691f8a8cd08df7d80338e36a8f06bb5086cc104509d71d6ab1bceda
|
||||
DIST sudo-1.8.21p2.tar.gz 2976081 BLAKE2B c0b555879ddb6832c6396b557793f5d4783481fca5d721901c7ef81c1856c1cf7630fddd09bbb42207c27d51892a79c2bf5c653b5b5091ebc84f2d59981207b7 SHA512 f04bbff54ad74ba73c078e15c75d2f41332d4912078ed66157ba7346b7fff914bd0747460cb4cd0c472af2d3b344fa72f5c62c95169df68a9cac74d7245c720c
|
||||
DIST sudo-1.8.22.tar.gz 3029051 BLAKE2B c77e05b6e9cee738902d6289327fb5d34d19833d96597f983d8af01434d224dd698f9257b0965a0e480e8d19eb38eef0c8216942ca5217c3fe7516cdf397f7b7 SHA512 5ce10a9302d25bb726e347499d26a0b3697446cfcdf0fd9094ee35198db7b023d5250a53fdcb4184d1a09f5fd2a78fc645bc8e80f265666b05a91f62f49b0695
|
||||
DIST sudo-1.8.23b2.tar.gz 3078589 BLAKE2B 4d3a003d168ef27382ff77d656c82ff830a53e402f4f717ad5fdde9eb1619b1d4af453d2dc9534b7206665d8a89e710a10b6f1343b5242e6a182737436365ddf SHA512 0fe984db67c3589b501c97cabd3e4a006bf6364f3397c73a46b34a14055226225416c2aee08a5fc60f5ac06e50a8fa1db9ed8ebf3c76989870e84457ea84e356
|
||||
DIST sudo-1.8.23b3.tar.gz 3123480 BLAKE2B 959c013daa34de710e2701d932e0d22162035b380a6cb91a5bab8438916e4ea360a20b388fa4303d82049b1935f942e2aa9e2a8e06ffbcc18f59378b06a8fff2 SHA512 ee1b93f5729e1000c13519ef716b22399884b029f4b1ce79420f8a1fe71b5456c37a475c6217397717d383d8bcb3896637673cc11bf7610d29a2c7cf798c1de4
|
||||
|
@ -1,5 +1 @@
|
||||
DIST tenshi-0.12.tar.gz 28467 BLAKE2B 241acc6893c50b1d0f4e9a423f8c6bf74e71212413c7a2d0f65f3a65566c9bd64691f32047b0ae166080b37aadb7fc0b40578fe0aed673d85abc0045339f9fe9 SHA512 657998e3a8df49ad0aae9c948cdd78dab944153fdacf79ebfc31b3e57fb62d738514b94c61834342669c407a3b09e81ceab38c054153a9fae6337a377fc167db
|
||||
DIST tenshi-0.14.tar.gz 29764 BLAKE2B f1601dae3e71184ac4127e5ce63af51df5c2a1a78de272c40dd177c003436cf5c60044c93ff9cf104626b8eb18419b4dfb33d3ae2edeca75f513825d15c0d57d SHA512 9922e9b7f9f39bc38f2e8844399146a9303d8a622b167b748fd76970820b04dc15df55e4ff87c05662ba9d120876cac9fa6ffa3bf07f2ad7c4f6f58d1ca667d2
|
||||
DIST tenshi-0.15.tar.gz 28405 BLAKE2B 6a5d976e658346421d7744e42e1bc4aa5f77ca4a0da9a2a6a12ee1461a58f0a144b2ff16f8521c50fd53666e90fb24dbc92ae1314618d3e5e328a49a20b99d4d SHA512 7d241d192986d2073d8509cda8b6bd21bc678f05d6e3b830885485d259454c5e5c004b477e63dbef5eb3e5bea8c4af56d6d8ed32c6809de43ed1e144c6b3d04c
|
||||
DIST tenshi-0.16.tar.gz 24460 BLAKE2B aaef47c00a9ab63572f14ca990ee25d7231697d1180a8e8db0fd8ba413ce6f1a362f1b5dac9de30ccc1730d14a36290f0ac8cc0ff12b079650d6f8063dd2463d SHA512 b23adc764ba0bbdde99a273a233cdb5117cd160da56aa19db05f196a4d4934e3a631c9d9effe4a80388c176c3b19b46328edca02af85265d08d6e77b724b044e
|
||||
DIST tenshi-0.17.tar.gz 24597 BLAKE2B 846128e65b1a2d2a3bc5edecc9356069f44d9c13757771ec7fc5c31063d8aeb9403d447dbb088d2aa7d05d3b086ac6c569cd24a05c336225540b3baa10e79bb7 SHA512 2ca93ceaab0843c321fa69d8ba1c7b31eaf809cac4348c98327ddd9ab72df4d5ff00d6b4edeb19a9f02e154161988e0c2284248fd0e84d2b42dd82fdbaac1a78
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -38,5 +38,7 @@
|
||||
install -g root -m 0644 -D tenshi.conf ${DESTDIR}${sysconfdir}/tenshi/tenshi.conf
|
||||
install -d ${DESTDIR}${docdir}
|
||||
install -m 0644 ${DOCS} ${DESTDIR}${docdir}/
|
||||
+ [ -d ${DESTDIR}${mandir}/man8 ] || \
|
||||
+ install -d ${DESTDIR}${mandir}/man8
|
||||
install -g root -m 0644 tenshi.8 ${DESTDIR}${mandir}/man8/
|
||||
install -g root -m 755 -d ${DESTDIR}${libdir}
|
@ -1,11 +0,0 @@
|
||||
--- a/tenshi.gentoo-init
|
||||
+++ b/tenshi.gentoo-init
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
-opts="depend start stop reload flush checkconfig"
|
||||
+extra_commands="checkconfig"
|
||||
+extra_started_commands="reload flush"
|
||||
|
||||
depend() {
|
||||
need clock hostname logger
|
@ -1,11 +0,0 @@
|
||||
--- a/tenshi.gentoo-init
|
||||
+++ b/tenshi.gentoo-init
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
start() {
|
||||
ebegin "Starting tenshi"
|
||||
- start-stop-daemon --start --quiet --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid
|
||||
+ start-stop-daemon --start --quiet --pidfile /var/lib/tenshi/tenshi.pid --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid
|
||||
eend $?
|
||||
}
|
||||
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Log parsing and notification program"
|
||||
HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
|
||||
SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-perl/IO-BufferedSelect
|
||||
sys-apps/coreutils"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tenshi
|
||||
enewuser tenshi -1 -1 /var/lib/tenshi tenshi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-create-mandir.patch"
|
||||
epatch "${FILESDIR}/${PN}-openrc-init.patch" #218042
|
||||
epatch "${FILESDIR}/${PN}-openrc-init-r1.patch" #398987
|
||||
|
||||
# Fix for bug #241254
|
||||
sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
|
||||
Makefile || die "docdir substitution failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
fowners tenshi:root /etc/tenshi/tenshi.conf
|
||||
dodir /var/lib/tenshi
|
||||
fowners tenshi:root /var/lib/tenshi
|
||||
doman tenshi.8
|
||||
newinitd tenshi.gentoo-init tenshi
|
||||
keepdir /var/lib/tenshi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
|
||||
ewarn "monitors /var/log/messages which, by default, can not be read"
|
||||
ewarn "by the tenshi user. Make sure that the tenshi user has read"
|
||||
ewarn "permission on all the files that you want tenshi to monitor."
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Log parsing and notification program"
|
||||
HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
|
||||
SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-perl/IO-BufferedSelect
|
||||
sys-apps/coreutils"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tenshi
|
||||
enewuser tenshi -1 -1 /var/lib/tenshi tenshi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix for bug #241254
|
||||
sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
|
||||
Makefile || die "docdir substitution failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
fowners tenshi:root /etc/tenshi/tenshi.conf
|
||||
dodir /var/lib/tenshi
|
||||
fowners tenshi:root /var/lib/tenshi
|
||||
doman tenshi.8
|
||||
newinitd tenshi.gentoo-init tenshi
|
||||
keepdir /var/lib/tenshi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
|
||||
ewarn "monitors /var/log/messages which, by default, can not be read"
|
||||
ewarn "by the tenshi user. Make sure that the tenshi user has read"
|
||||
ewarn "permission on all the files that you want tenshi to monitor."
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Log parsing and notification program"
|
||||
HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
|
||||
SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-perl/IO-BufferedSelect
|
||||
sys-apps/coreutils"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tenshi
|
||||
enewuser tenshi -1 -1 /var/lib/tenshi tenshi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix for bug #241254
|
||||
sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
|
||||
Makefile || die "docdir substitution failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
fowners tenshi:root /etc/tenshi/tenshi.conf
|
||||
dodir /var/lib/tenshi
|
||||
fowners tenshi:root /var/lib/tenshi
|
||||
doman tenshi.8
|
||||
newinitd tenshi.gentoo-init tenshi
|
||||
keepdir /var/lib/tenshi
|
||||
}
|
||||
|
||||
cpkg_postinst() {
|
||||
ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
|
||||
ewarn "monitors /var/log/messages which, by default, can not be read"
|
||||
ewarn "by the tenshi user. Make sure that the tenshi user has read"
|
||||
ewarn "permission on all the files that you want tenshi to monitor."
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit user
|
||||
|
||||
DESCRIPTION="Log parsing and notification program"
|
||||
HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
|
||||
SRC_URI="https://github.com/inversepath/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-perl/IO-BufferedSelect
|
||||
sys-apps/coreutils"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup tenshi
|
||||
enewuser tenshi -1 -1 /var/lib/tenshi tenshi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Fix for bug #241254
|
||||
sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
|
||||
Makefile || die "docdir substitution failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
doman tenshi.8
|
||||
newinitd tenshi.openrc-init tenshi
|
||||
|
||||
# We don't need to install LICENSE files.
|
||||
rm "${D}/usr/share/doc/${PF}/LICENSE" || die 'failed to remove LICENSE'
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
|
||||
ewarn "monitors /var/log/messages which, by default, can not be read"
|
||||
ewarn "by the tenshi user. Make sure that the tenshi user has read"
|
||||
ewarn "permission on all the files that you want tenshi to monitor."
|
||||
}
|
Binary file not shown.
@ -1 +1 @@
|
||||
DIST untangle-https-backup-0.0.7.tar.gz 15846 BLAKE2B b1d26f72c1d7c673da27bbdd02d469820ff83904c3836278abcd83590bb6d884c896779c648dde9159d80e658c747f75cf4dc338cb2c2f37e6aec5e20aec2551 SHA512 0b5cd7962340492ea8dd3d63b4d4bf38906c3b0de73456f80c8fd678708777d159b60cb1d58ef13f0e51b6dc97b16823ddaf8de60d21373160df0e735b54420a
|
||||
DIST untangle-https-backup-0.0.8.tar.gz 16263 BLAKE2B 3a41b2ee172a14e3a11ac6e1d47adf9bb818facf8e45d16826a0da70e9280c28d09f9d4f670b4efdda487c152ce4ef5350709b70165dc9262ae4e3e0d0a106c9 SHA512 4eb74d4cb939a9ac59fc475b5dbcc2a1fb4b36b59e6335c02b6de44b5fd56c44f1b7a52f6b71b36ed91663aff17556e0c9cfb04f309a191596a7a858ffec4693
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
Binary file not shown.
Binary file not shown.
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="Xbox xdvdfs ISO extraction utility"
|
||||
HOMEPAGE="https://sourceforge.net/projects/xbiso/"
|
||||
SRC_URI="mirror://sourceforge/xbiso/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
# for this package, interix behaves the same as BSD
|
||||
[[ ${CHOST} == *-interix* ]] && append-flags -D_BSD
|
||||
|
||||
econf
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin xbiso || die "dobin failed."
|
||||
dodoc CHANGELOG README
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST yudit-2.9.2.tar.gz 2831966 BLAKE2B a7ac8b3b538820e6101b57f8407fd99e9aaa4baf16fd3b09c4d4322b53b85fd631a3b36b6bfac214cc378fb4fd8b9ac30c2cb77959b680064e5ec625998ec6c0 SHA512 39bbd6f1696a97922a5db83b25b52609660ea77c7651cfde1d7189789e7d9a6298f6dd91acf17ab9d1bef1fabbdeb7bb1f9ab95a14198913c84c30154efd9e07
|
||||
DIST yudit-2.9.6.tar.gz 2797142 BLAKE2B 76fb8e0ade65c84389db71b4100e458f5b70aebba27eea4b604bfcee08974060dcd2bab2d86586b5ba729d8d5090c943e825dfe58d71c609f0ca2f2e0c3900c9 SHA512 a9a0b6f6c44451cf2fefc4fc0bb1bbd9ffccd17c4c622dc35b08113245b3bb9f3ca949f3e7b9d2aa919ebf3840295c5e63c0297576e74a5f2d1fb99cfc97c46b
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Free (Y)unicode text editor for all unices"
|
||||
HOMEPAGE="http://www.yudit.org/"
|
||||
SRC_URI="http://yudit.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/gettext-0.10"
|
||||
|
||||
src_prepare() {
|
||||
#Don't strip binaries, let portage do that.
|
||||
sed -i "/^INSTALL_PROGRAM/s: -s::" Makefile.conf.in || die "sed failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
#FIXME:
|
||||
#-j1 because this app builds a tool called 'mytool' and we need to make
|
||||
#sure that it is built before it needs to be used.
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die
|
||||
dodoc {BUGS,CHANGELOG,NEWS,TODO,XBUGS}.TXT
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ebuild-mode-1.42.tar.xz 34936 BLAKE2B dd94d17dc57e2d32b329ab62ec6eec8ada6a4aeddadb8d978736f5dcb4d613759fd860043cab92d12db11614f8b7fa71fc5537576a2af3f5e6c9d56fc2fdcc05 SHA512 119f954eaf009bd0c9f0a75810b94a54d65ed91c6ffef20dd164c7a5ef095410dd0f3642426817f5efa6623d4f3e120ed3b27076222b02a90e75a83bb80b8703
|
||||
DIST ebuild-mode-1.43.tar.xz 34688 BLAKE2B 577900e2fa7ccb2362ec7f9046affb58e92bdfde44f2ea48274ba61d65f35fa6a1852bda6d9c64bd3f63aba99df244b4cb3378de079259508b149cdacf7caf28 SHA512 91f9a06de6feeeadb27d765a6ca6f2fa17e01938a6c953efe3586646f1bf48da87fe269ee9b07b2e16199d3ba4a76f42b8be9143218b808fac2971fc6f64f36d
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit elisp readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
|
||||
DEPEND="sys-apps/texinfo"
|
||||
|
||||
DOCS="ChangeLog keyword-generation.sh"
|
||||
ELISP_TEXINFO="${PN}.texi"
|
||||
SITEFILE="50${PN}-gentoo-1.39.el"
|
||||
DOC_CONTENTS="Some optional features may require installation of additional
|
||||
packages, like dev-python/docutils-glep for glep."
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST tp_smapi-0.42.tgz 39867 BLAKE2B 0f7285fe99766437d964780f3c9d88480a19ed07de155e1794b5c48f318846fbde4eb759e825af9f5da89fb20aee5e217f32e873a70c7d85f63e3a44b385b0f7 SHA512 1004b7ef961a9908c2144b26ea60b6dddabd83d60c11421a03e3b810f5b635415ef52656d6980915512d68f809f7bc3d662328f25d111537bd7e175d252cf83b
|
||||
DIST tp_smapi-0.43.tgz 40122 BLAKE2B e14caa05d741d14b03c56c57badc5900a47735bc58966b5195ca34269a6227ecc50518ee5ce8cf47a4aacb314a0ed0332b987098f3be024b6af9024df6efdf9b SHA512 ec2e40a248e7eb5bff2ad9e57087058a8b4706d564bd340daba5a4700ad8a5389d1f9ec29984516a1167827ae55c28240dafb558df29e1f758a4f7af80caa1e7
|
||||
|
@ -1,43 +0,0 @@
|
||||
From 76c5120f7be4880cf2c6801f872327e4e70c449f Mon Sep 17 00:00:00 2001
|
||||
From: Jan Nordholz <jnordholz@sec.t-labs.tu-berlin.de>
|
||||
Date: Mon, 4 Dec 2017 03:27:11 +0100
|
||||
Subject: [PATCH] Adapt HDAPS driver to use the new timer_setup() interface.
|
||||
|
||||
Linux 4.15 removed the ancient init_timer() API and changed the signature
|
||||
of the timer handler function.
|
||||
|
||||
Signed-off-by: Jan Nordholz <jnordholz@sec.t-labs.tu-berlin.de>
|
||||
Closes: #31
|
||||
---
|
||||
hdaps.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/hdaps.c b/hdaps.c
|
||||
index 0763c3a..76930a3 100644
|
||||
--- a/hdaps.c
|
||||
+++ b/hdaps.c
|
||||
@@ -469,7 +469,11 @@ static void hdaps_calibrate(void)
|
||||
/* Timer handler for updating the input device. Runs in softirq context,
|
||||
* so avoid lenghty or blocking operations.
|
||||
*/
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
|
||||
static void hdaps_mousedev_poll(unsigned long unused)
|
||||
+#else
|
||||
+static void hdaps_mousedev_poll(struct timer_list *unused)
|
||||
+#endif
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -779,8 +783,12 @@ static int __init hdaps_init(void)
|
||||
hdaps_invert = 0; /* default */
|
||||
|
||||
/* Init timer before platform_driver_register, in case of suspend */
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0)
|
||||
init_timer(&hdaps_timer);
|
||||
hdaps_timer.function = hdaps_mousedev_poll;
|
||||
+#else
|
||||
+ timer_setup(&hdaps_timer, hdaps_mousedev_poll, 0);
|
||||
+#endif
|
||||
ret = platform_driver_register(&hdaps_driver);
|
||||
if (ret)
|
||||
goto out;
|
Binary file not shown.
@ -0,0 +1,191 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
||||
# in the nss package and repackages it for use by openssl.
|
||||
#
|
||||
# The issue with using the compiled debs directly is two fold:
|
||||
# - they do not update frequently enough for us to rely on them
|
||||
# - they pull the CA database from nss tip of tree rather than the release
|
||||
#
|
||||
# So we take the Debian source tools and combine them with the latest nss
|
||||
# release to produce (largely) the same end result. The difference is that
|
||||
# now we know our cert database is kept in sync with nss and, if need be,
|
||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
||||
|
||||
# When triaging bugs from users, here's some handy tips:
|
||||
# - To see what cert is hitting errors, use openssl:
|
||||
# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
|
||||
# Focus on the errors written to stderr.
|
||||
#
|
||||
# - Look at the upstream log as to why certs were added/removed:
|
||||
# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
|
||||
#
|
||||
# - If people want to add/remove certs, tell them to file w/mozilla:
|
||||
# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
|
||||
inherit eutils python-any-r1
|
||||
|
||||
if [[ ${PV} == *.* ]] ; then
|
||||
# Compile from source ourselves.
|
||||
PRECOMPILED=false
|
||||
inherit versionator
|
||||
|
||||
DEB_VER=$(get_version_component_range 1)
|
||||
NSS_VER=$(get_version_component_range 2-)
|
||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
||||
else
|
||||
# Debian precompiled version.
|
||||
PRECOMPILED=true
|
||||
inherit unpacker
|
||||
fi
|
||||
|
||||
DESCRIPTION="Common CA Certificates PEM files"
|
||||
HOMEPAGE="https://packages.debian.org/sid/ca-certificates"
|
||||
NMU_PR=""
|
||||
if ${PRECOMPILED} ; then
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
||||
else
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
||||
https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
||||
cacert? (
|
||||
https://dev.gentoo.org/~axs/distfiles/nss-cacert-class1-class3.patch
|
||||
)"
|
||||
fi
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="insecure_certs"
|
||||
${PRECOMPILED} || IUSE+=" cacert"
|
||||
|
||||
DEPEND=""
|
||||
if ${PRECOMPILED} ; then
|
||||
DEPEND+=" !<sys-apps/portage-2.1.10.41"
|
||||
fi
|
||||
# c_rehash: we run `c_rehash`
|
||||
# debianutils: we run `run-parts`
|
||||
RDEPEND="${DEPEND}
|
||||
app-misc/c_rehash
|
||||
sys-apps/debianutils"
|
||||
|
||||
if ! ${PRECOMPILED}; then
|
||||
DEPEND+=" ${PYTHON_DEPS}"
|
||||
fi
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
||||
# we need to tell users about it once manually first.
|
||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
${PRECOMPILED} || default
|
||||
|
||||
# Do all the work in the image subdir to avoid conflicting with source
|
||||
# dirs in $WORKDIR. Need to perform everything in the offset #381937
|
||||
mkdir -p "image/${EPREFIX}"
|
||||
cd "image/${EPREFIX}" || die
|
||||
|
||||
${PRECOMPILED} && unpacker_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
mkdir -p usr/sbin
|
||||
cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
|
||||
|
||||
if use cacert ; then
|
||||
pushd "${S}"/nss-${NSS_VER} >/dev/null
|
||||
epatch "${DISTDIR}"/nss-cacert-class1-class3.patch
|
||||
popd >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
default
|
||||
eapply -p2 "${FILESDIR}"/${PN}-20150426-root.patch
|
||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
||||
sed -i \
|
||||
-e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \
|
||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
||||
-e 's/openssl rehash/c_rehash/' \
|
||||
usr/sbin/update-ca-certificates || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
python_setup
|
||||
local d="${S}/${PN}/mozilla" c="usr/share/${PN}"
|
||||
# Grab the database from the nss sources.
|
||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
||||
emake -C "${d}"
|
||||
|
||||
# Now move the files to the same places that the precompiled would.
|
||||
mkdir -p etc/ssl/certs etc/ca-certificates/update.d "${c}"/mozilla
|
||||
if use cacert ; then
|
||||
mkdir -p "${c}"/cacert.org
|
||||
mv "${d}"/CAcert_Inc..crt "${c}"/cacert.org/cacert.org_root.crt || die
|
||||
fi
|
||||
mv "${d}"/*.crt "${c}"/mozilla/ || die
|
||||
else
|
||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
||||
fi
|
||||
|
||||
if ! use insecure_certs ; then
|
||||
elog "To prevent applications relying on system's trusted root certificate store"
|
||||
elog "from using CAs where at least one major browser vendor Gentoo is following"
|
||||
elog "has decided to apply trust level restrictions, the following"
|
||||
elog "certificate(s) were removed:"
|
||||
# Remove untrusted certs from StartCom and WoSign (bug #598072)
|
||||
elog "$(find "${c}" -type f \( \
|
||||
-iname '*startcom*' \
|
||||
-o -iname '*wosign*' \
|
||||
\) -printf '%P removed; see https://bugs.gentoo.org/598072 for details\n' -delete)"
|
||||
fi
|
||||
|
||||
(
|
||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
||||
echo "# $(date -u)"
|
||||
echo "# Do not edit."
|
||||
cd "${c}"
|
||||
find * -name '*.crt' | LC_ALL=C sort
|
||||
) > etc/ca-certificates.conf
|
||||
|
||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -pPR image/* "${D}"/ || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
cd ca-certificates
|
||||
doman sbin/*.8
|
||||
dodoc debian/README.* examples/ca-certificates-local/README
|
||||
fi
|
||||
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
||||
doenvd 98ca-certificates
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
||||
# if the user has local certs, we need to rebuild again
|
||||
# to include their stuff in the db.
|
||||
# However it's too overzealous when the user has custom certs in place.
|
||||
# --fresh is to clean up dangling symlinks
|
||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
|
||||
fi
|
||||
|
||||
if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then
|
||||
ewarn "Removing the following broken symlinks:"
|
||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,40 @@
|
||||
From 38e61d2cd8a4a4b863801f8a5097b8b51b0c8e93 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Tue, 17 Apr 2018 23:49:52 +0200
|
||||
Subject: [PATCH] Fix build with Qt 5.11 (missing QHeaderView)
|
||||
|
||||
Reviewers: #skrooge
|
||||
|
||||
Differential Revision: https://phabricator.kde.org/D12297
|
||||
---
|
||||
plugins/skrooge/skrooge_operation/skgsplittabledelegate.cpp | 1 +
|
||||
skgbasegui/skggraphicsview.cpp | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/plugins/skrooge/skrooge_operation/skgsplittabledelegate.cpp b/plugins/skrooge/skrooge_operation/skgsplittabledelegate.cpp
|
||||
index aa171913c..930c4ea3e 100644
|
||||
--- a/plugins/skrooge/skrooge_operation/skgsplittabledelegate.cpp
|
||||
+++ b/plugins/skrooge/skrooge_operation/skgsplittabledelegate.cpp
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <ksqueezedtextlabel.h>
|
||||
#include <kformat.h>
|
||||
|
||||
+#include <QHeaderView>
|
||||
#include <qpainter.h>
|
||||
|
||||
#include "skgbasegui_settings.h"
|
||||
diff --git a/skgbasegui/skggraphicsview.cpp b/skgbasegui/skggraphicsview.cpp
|
||||
index 4c4557880..7143ade3b 100644
|
||||
--- a/skgbasegui/skggraphicsview.cpp
|
||||
+++ b/skgbasegui/skggraphicsview.cpp
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
#include "skggraphicsview.h"
|
||||
|
||||
+#include <QHeaderView>
|
||||
#include <qmenu.h>
|
||||
#include <qdesktopservices.h>
|
||||
#include <qprinter.h>
|
||||
--
|
||||
2.17.0
|
||||
|
Binary file not shown.
@ -0,0 +1,211 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3 autotools
|
||||
EGIT_REPO_URI="git://git.code.sf.net/p/zsh/code"
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SRC_URI="https://www.zsh.org/pub/${P}.tar.gz
|
||||
doc? ( https://www.zsh.org/pub/${P}-doc.tar.xz )"
|
||||
fi
|
||||
|
||||
DESCRIPTION="UNIX Shell similar to the Korn shell"
|
||||
HOMEPAGE="https://www.zsh.org/"
|
||||
|
||||
LICENSE="ZSH gdbm? ( GPL-2 )"
|
||||
SLOT="0"
|
||||
IUSE="caps debug doc examples gdbm maildir pcre static unicode"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-libs/ncurses-5.1:0=
|
||||
static? ( >=sys-libs/ncurses-5.7-r4:0=[static-libs] )
|
||||
caps? ( sys-libs/libcap )
|
||||
pcre? (
|
||||
>=dev-libs/libpcre-3.9
|
||||
static? ( >=dev-libs/libpcre-3.9[static-libs] )
|
||||
)
|
||||
gdbm? ( sys-libs/gdbm:= )
|
||||
!<sys-apps/baselayout-2.4.1
|
||||
"
|
||||
DEPEND="sys-apps/groff
|
||||
${RDEPEND}"
|
||||
PDEPEND="
|
||||
examples? ( app-doc/zsh-lovers )
|
||||
"
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
DEPEND+=" app-text/yodl
|
||||
doc? (
|
||||
sys-apps/texinfo
|
||||
app-text/texi2html
|
||||
virtual/latex-base
|
||||
)"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]]; then
|
||||
# fix zshall problem with soelim
|
||||
ln -s Doc man1 || die
|
||||
mv Doc/zshall.1 Doc/zshall.1.soelim || die
|
||||
soelim Doc/zshall.1.soelim > Doc/zshall.1 || die
|
||||
|
||||
# add openrc specific options for init.d completion
|
||||
eapply "${FILESDIR}"/${PN}-5.3-init.d-gentoo.diff
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
sed -i "/^VERSION=/s/=.*/=${PV}/" Config/version.mk || die
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--bindir="${EPREFIX}"/bin
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir)
|
||||
--enable-etcdir="${EPREFIX}"/etc/zsh
|
||||
--enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help
|
||||
--enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions
|
||||
--enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions
|
||||
--enable-function-subdirs
|
||||
--with-tcsetpgrp
|
||||
$(use_enable maildir maildir-support)
|
||||
$(use_enable pcre)
|
||||
$(use_enable caps cap)
|
||||
$(use_enable unicode multibyte)
|
||||
$(use_enable gdbm )
|
||||
)
|
||||
|
||||
if use static ; then
|
||||
myconf+=( --disable-dynamic )
|
||||
append-ldflags -static
|
||||
fi
|
||||
if use debug ; then
|
||||
myconf+=(
|
||||
--enable-zsh-debug
|
||||
--enable-zsh-mem-debug
|
||||
--enable-zsh-mem-warning
|
||||
--enable-zsh-secure-free
|
||||
--enable-zsh-hash-debug
|
||||
)
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
myconf+=( --enable-libs=-liconv )
|
||||
append-ldflags -Wl,-x
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
|
||||
if use static ; then
|
||||
# compile all modules statically, see Bug #27392
|
||||
# removed cap and curses because linking failes
|
||||
sed -e "s,link=no,link=static,g" \
|
||||
-e "/^name=zsh\/cap/s,link=static,link=no," \
|
||||
-e "/^name=zsh\/curses/s,link=static,link=no," \
|
||||
-i "${S}"/config.modules || die
|
||||
if ! use gdbm ; then
|
||||
sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \
|
||||
"${S}"/config.modules || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if [[ ${PV} == 9999* ]] && use doc ; then
|
||||
emake -C Doc everything
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
addpredict /dev/ptmx
|
||||
local i
|
||||
for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do
|
||||
rm "${S}"/Test/${i} || die
|
||||
done
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install $(usex doc "install.info" "")
|
||||
|
||||
insinto /etc/zsh
|
||||
export PREFIX_QUOTE_CHAR='"' PREFIX_EXTRA_REGEX="/EUID/s,0,${EUID},"
|
||||
newins "$(prefixify_ro "${FILESDIR}"/zprofile-3)" zprofile
|
||||
|
||||
keepdir /usr/share/zsh/site-functions
|
||||
insinto /usr/share/zsh/${PV%_*}/functions/Prompts
|
||||
newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup
|
||||
|
||||
local i
|
||||
|
||||
# install miscellaneous scripts (bug #54520)
|
||||
sed -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \
|
||||
-e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" \
|
||||
-i {Util,Misc}/* || die
|
||||
for i in Util Misc ; do
|
||||
insinto /usr/share/zsh/${PV%_*}/${i}
|
||||
doins ${i}/*
|
||||
done
|
||||
|
||||
# install header files (bug #538684)
|
||||
insinto /usr/include/zsh
|
||||
doins config.h Src/*.epro
|
||||
for i in Src/{zsh.mdh,*.h} ; do
|
||||
sed -e 's@\.\./config\.h@config.h@' \
|
||||
-e 's@#\(\s*\)include "\([^"]\+\)"@#\1include <zsh/\2>@' \
|
||||
-i "${i}"
|
||||
doins "${i}"
|
||||
done
|
||||
|
||||
dodoc ChangeLog* META-FAQ NEWS README config.modules
|
||||
|
||||
if use doc ; then
|
||||
pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null
|
||||
docinto html
|
||||
dodoc Doc/*.html
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins Doc/zsh.{dvi,pdf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
docinto StartupFiles
|
||||
dodoc StartupFiles/z*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
echo
|
||||
elog "If you want to enable Portage completions and Gentoo prompt,"
|
||||
elog "emerge app-shells/gentoo-zsh-completions and add"
|
||||
elog " autoload -U compinit promptinit"
|
||||
elog " compinit"
|
||||
elog " promptinit; prompt gentoo"
|
||||
elog "to your ~/.zshrc"
|
||||
echo
|
||||
elog "Also, if you want to enable cache for the completions, add"
|
||||
elog " zstyle ':completion::complete:*' use-cache 1"
|
||||
elog "to your ~/.zshrc"
|
||||
echo
|
||||
elog "Note that a system zprofile startup file is installed. This will override"
|
||||
elog "PATH and possibly other variables that a user may set in ~/.zshenv."
|
||||
elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile"
|
||||
elog "or other user startup files that are sourced after the system zprofile."
|
||||
echo
|
||||
elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells,"
|
||||
elog "one method is to use a separate path-setting file that is conditionally sourced"
|
||||
elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the"
|
||||
elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/."
|
||||
echo
|
||||
elog "See https://wiki.gentoo.org/wiki/Zsh/HOWTO for more introduction documentation."
|
||||
echo
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit gnome2 systemd
|
||||
|
||||
DESCRIPTION="Simple document viewer for GNOME"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Evince"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
# subslot = evd3.(suffix of libevdocument3)-evv3.(suffix of libevview3)
|
||||
SLOT="0/evd3.4-evv3.3"
|
||||
IUSE="djvu dvi gstreamer gnome gnome-keyring +introspection nautilus nsplugin +postscript t1lib tiff xps"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris"
|
||||
|
||||
# atk used in libview
|
||||
# gdk-pixbuf used all over the place
|
||||
COMMON_DEPEND="
|
||||
dev-libs/atk
|
||||
>=dev-libs/glib-2.36:2[dbus]
|
||||
>=dev-libs/libxml2-2.5:2
|
||||
sys-libs/zlib:=
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-3.16.0:3[introspection?]
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
>=x11-libs/cairo-1.10:=
|
||||
>=app-text/poppler-0.33[cairo]
|
||||
djvu? ( >=app-text/djvu-3.5.22:= )
|
||||
dvi? (
|
||||
virtual/tex-base
|
||||
dev-libs/kpathsea:=
|
||||
t1lib? ( >=media-libs/t1lib-5:= ) )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
media-libs/gst-plugins-good:1.0 )
|
||||
gnome? ( gnome-base/gnome-desktop:3= )
|
||||
gnome-keyring? ( >=app-crypt/libsecret-0.5 )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1:= )
|
||||
nautilus? ( >=gnome-base/nautilus-2.91.4[introspection?] )
|
||||
postscript? ( >=app-text/libspectre-0.2:= )
|
||||
tiff? ( >=media-libs/tiff-3.6:0= )
|
||||
xps? ( >=app-text/libgxps-0.2.1:= )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
gnome-base/gvfs
|
||||
gnome-base/librsvg
|
||||
|| (
|
||||
>=x11-themes/adwaita-icon-theme-2.17.1
|
||||
>=x11-themes/hicolor-icon-theme-0.10 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
app-text/yelp-tools
|
||||
dev-util/gdbus-codegen
|
||||
>=dev-util/gtk-doc-am-1.13
|
||||
>=dev-util/intltool-0.35
|
||||
dev-util/itstool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# eautoreconf needs:
|
||||
# app-text/yelp-tools
|
||||
|
||||
src_prepare() {
|
||||
gnome2_src_prepare
|
||||
|
||||
# Do not depend on adwaita-icon-theme, bug #326855, #391859
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=29942
|
||||
sed -e 's/adwaita-icon-theme >= $ADWAITA_ICON_THEME_REQUIRED//g' \
|
||||
-i configure || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
--disable-static \
|
||||
--enable-pdf \
|
||||
--enable-comics \
|
||||
--enable-thumbnailer \
|
||||
--with-platform=gnome \
|
||||
--enable-dbus \
|
||||
$(use_enable djvu) \
|
||||
$(use_enable dvi) \
|
||||
$(use_enable gstreamer multimedia) \
|
||||
$(use_enable gnome libgnome-desktop) \
|
||||
$(use_with gnome-keyring keyring) \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable nautilus) \
|
||||
$(use_enable nsplugin browser-plugin) \
|
||||
$(use_enable postscript ps) \
|
||||
$(use_enable t1lib) \
|
||||
$(use_enable tiff) \
|
||||
$(use_enable xps) \
|
||||
BROWSER_PLUGIN_DIR="${EPREFIX}"/usr/$(get_libdir)/nsbrowser/plugins \
|
||||
--with-systemduserunitdir="$(systemd_get_userunitdir)"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ebuild-mode-1.42.tar.xz 34936 BLAKE2B dd94d17dc57e2d32b329ab62ec6eec8ada6a4aeddadb8d978736f5dcb4d613759fd860043cab92d12db11614f8b7fa71fc5537576a2af3f5e6c9d56fc2fdcc05 SHA512 119f954eaf009bd0c9f0a75810b94a54d65ed91c6ffef20dd164c7a5ef095410dd0f3642426817f5efa6623d4f3e120ed3b27076222b02a90e75a83bb80b8703
|
||||
DIST ebuild-mode-1.43.tar.xz 34688 BLAKE2B 577900e2fa7ccb2362ec7f9046affb58e92bdfde44f2ea48274ba61d65f35fa6a1852bda6d9c64bd3f63aba99df244b4cb3378de079259508b149cdacf7caf28 SHA512 91f9a06de6feeeadb27d765a6ca6f2fa17e01938a6c953efe3586646f1bf48da87fe269ee9b07b2e16199d3ba4a76f42b8be9143218b808fac2971fc6f64f36d
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit xemacs-elisp
|
||||
|
||||
DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
|
||||
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~x86"
|
||||
|
||||
RDEPEND=">=app-editors/xemacs-21.4.20-r5
|
||||
app-xemacs/sh-script"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_compile() {
|
||||
${XEMACS_BATCH_CLEAN} -eval "(add-to-list 'load-path \".\")" \
|
||||
-f batch-byte-compile ebuild-mode.el gentoo-newsitem-mode.el || die
|
||||
xemacs-elisp-make-autoload-file \
|
||||
ebuild-mode.el gentoo-newsitem-mode.el || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,112 @@
|
||||
Do not use -isystem to add headers, as they break GCC 6's header wrapping.
|
||||
See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
|
||||
|
||||
--- a/client/CMakeLists.txt
|
||||
+++ b/client/CMakeLists.txt
|
||||
@@ -52,7 +52,7 @@ IF(NOT WITHOUT_SERVER)
|
||||
upgrade/program.cc
|
||||
)
|
||||
ADD_COMPILE_FLAGS(
|
||||
- upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
TARGET_LINK_LIBRARIES(mysql_upgrade mysqlclient client_base mysqlcheck_core)
|
||||
ADD_DEPENDENCIES(mysql_upgrade GenFixPrivs GenSysSchema)
|
||||
--- a/client/base/CMakeLists.txt
|
||||
+++ b/client/base/CMakeLists.txt
|
||||
@@ -49,7 +49,7 @@ ADD_COMPILE_FLAGS(
|
||||
mutex.cc
|
||||
mysql_query_runner.cc
|
||||
show_variable_query_extractor.cc
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(client_base mysqlclient)
|
||||
--- a/client/dump/CMakeLists.txt
|
||||
+++ b/client/dump/CMakeLists.txt
|
||||
@@ -50,7 +50,7 @@ IF(USING_LOCAL_BOOST)
|
||||
|
||||
ADD_COMPILE_FLAGS(
|
||||
${BOOST_LIB_SOURCES}
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
IF(HAVE_clock_gettime_IN_rt)
|
||||
@@ -145,7 +145,7 @@ TARGET_LINK_LIBRARIES(mysqlpump_lib
|
||||
|
||||
ADD_COMPILE_FLAGS(
|
||||
${MYSQLPUMP_LIB_SOURCES}
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
# Files that use Boost sources that trigger compilation warnings
|
||||
@@ -179,7 +179,7 @@ ADD_COMPILE_FLAGS(
|
||||
)
|
||||
MYSQL_ADD_EXECUTABLE(mysqlpump program.cc)
|
||||
ADD_COMPILE_FLAGS(
|
||||
- program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(mysqlpump mysqlpump_lib ${LOCAL_BOOST_LIB})
|
||||
--- a/libmysqld/CMakeLists.txt
|
||||
+++ b/libmysqld/CMakeLists.txt
|
||||
@@ -123,7 +123,7 @@ ADD_COMPILE_FLAGS(
|
||||
../sql/item_geofunc_setops.cc
|
||||
../sql/item_json_func.cc
|
||||
../sql/spatial.cc
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
ADD_COMPILE_FLAGS(
|
||||
--- a/sql/CMakeLists.txt
|
||||
+++ b/sql/CMakeLists.txt
|
||||
@@ -311,7 +311,7 @@ ADD_COMPILE_FLAGS(
|
||||
item_geofunc_setops.cc
|
||||
item_json_func.cc
|
||||
spatial.cc
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
ADD_COMPILE_FLAGS(
|
||||
--- a/storage/innobase/xtrabackup/src/CMakeLists.txt
|
||||
+++ b/storage/innobase/xtrabackup/src/CMakeLists.txt
|
||||
@@ -79,7 +79,7 @@ SET(keyring_source_files
|
||||
|
||||
ADD_COMPILE_FLAGS(
|
||||
${keyring_source_files}
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
-DEMBEDDED_LIBRARY
|
||||
)
|
||||
|
||||
--- a/unittest/gunit/CMakeLists.txt
|
||||
+++ b/unittest/gunit/CMakeLists.txt
|
||||
@@ -385,7 +385,7 @@ IF (MERGE_UNITTESTS)
|
||||
ENDIF()
|
||||
ADD_COMPILE_FLAGS(
|
||||
${MERGE_SMALL_TESTS}
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
# Fixes "C1128: number of sections exceeded object file format limit" in MSVC
|
||||
IF(WIN32)
|
||||
@@ -467,11 +467,11 @@ ENDIF(MERGE_UNITTESTS)
|
||||
ENDIF()
|
||||
ADD_COMPILE_FLAGS(
|
||||
bounded_queue-t.cc
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
ADD_COMPILE_FLAGS(
|
||||
pump_object_filter-t.cc
|
||||
- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR}
|
||||
+ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
FOREACH(test ${SERVER_TESTS})
|
Binary file not shown.
@ -0,0 +1,36 @@
|
||||
From 91ba61ff69dc02a412eebae6222793e803b13ec2 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Tue, 17 Apr 2018 13:47:27 +0200
|
||||
Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
|
||||
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
src/osgQt/CMakeLists.txt | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index aaea748..4345ea2 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -487,6 +487,7 @@ ENDIF()
|
||||
|
||||
#If we have found Qt5, let's try to top off by getting the webkit as well
|
||||
IF ( Qt5Widgets_FOUND )
|
||||
+ FIND_PACKAGE(Qt5OpenGL REQUIRED)
|
||||
FIND_PACKAGE(Qt5WebKitWidgets QUIET)
|
||||
|
||||
IF(COMMAND cmake_policy)
|
||||
diff --git a/src/osgQt/CMakeLists.txt b/src/osgQt/CMakeLists.txt
|
||||
index 60f3250..e4523e0 100644
|
||||
--- a/src/osgQt/CMakeLists.txt
|
||||
+++ b/src/osgQt/CMakeLists.txt
|
||||
@@ -85,5 +85,5 @@ ENDIF( QT4_FOUND )
|
||||
SETUP_LIBRARY(${LIB_NAME})
|
||||
|
||||
IF ( Qt5Widgets_FOUND )
|
||||
- qt5_use_modules( ${LIB_NAME} Widgets OpenGL )
|
||||
+ TARGET_LINK_LIBRARIES( ${LIB_NAME} Qt5::Widgets Qt5::OpenGL )
|
||||
ENDIF ( Qt5Widgets_FOUND )
|
||||
--
|
||||
2.17.0
|
||||
|
Binary file not shown.
@ -1,228 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
BOOTSTRAP_VERSION="bootstrap-1.8"
|
||||
BOOTSTRAP_URI="
|
||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-${BOOTSTRAP_VERSION}.tbz )
|
||||
ppc64? (
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-${BOOTSTRAP_VERSION}.tbz
|
||||
)
|
||||
s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
"
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
||||
# The upstream tests fail under portage but pass if the build is
|
||||
# run according to their documentation [1].
|
||||
# I am restricting the tests on released versions until this is
|
||||
# solved.
|
||||
# [1] https://golang.org/issues/18442
|
||||
RESTRICT="test"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
SRC_URI+="!gccgo? ( ${BOOTSTRAP_URI} )"
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo"
|
||||
|
||||
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="
|
||||
usr/lib/go/src/debug/elf/testdata/*.obj
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/escapeinfo.gox
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/unicode.gox
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/time.gox
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
|
||||
sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] ||
|
||||
die "go-$(gcc-major-version): command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
einfo "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
#
|
||||
# deliberately use cp to retain permissions
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
einstalldocs
|
||||
}
|
@ -1,227 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
|
||||
BOOTSTRAP_VERSION="bootstrap-1.8"
|
||||
BOOTSTRAP_URI="
|
||||
amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-${BOOTSTRAP_VERSION}.tbz )
|
||||
arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-${BOOTSTRAP_VERSION}.tbz )
|
||||
ppc64? (
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64-${BOOTSTRAP_VERSION}.tbz
|
||||
${BOOTSTRAP_DIST}/go-linux-ppc64le-${BOOTSTRAP_VERSION}.tbz
|
||||
)
|
||||
s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86? ( ${BOOTSTRAP_DIST}/go-linux-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-${BOOTSTRAP_VERSION}.tbz )
|
||||
"
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* amd64 arm ~arm64 ~ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"
|
||||
# The upstream tests fail under portage but pass if the build is
|
||||
# run according to their documentation [1].
|
||||
# I am restricting the tests on released versions until this is
|
||||
# solved.
|
||||
# [1] https://golang.org/issues/18442
|
||||
RESTRICT="test"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
SRC_URI+="!gccgo? ( ${BOOTSTRAP_URI} )"
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="gccgo"
|
||||
|
||||
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# These test data objects have writable/executable stacks.
|
||||
QA_EXECSTACK="
|
||||
usr/lib/go/src/debug/elf/testdata/*.obj
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/unicode.gox
|
||||
usr/lib/go/src/go/internal/gccgoimporter/testdata/time.gox
|
||||
"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch()
|
||||
{
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os()
|
||||
{
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple()
|
||||
{
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile()
|
||||
{
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
pkg_pretend()
|
||||
{
|
||||
# make.bash does not understand cross-compiling a cross-compiler
|
||||
if [[ $(go_tuple) != $(go_tuple ${CTARGET}) ]]; then
|
||||
die "CHOST CTARGET pair unsupported: CHOST=${CHOST} CTARGET=${CTARGET}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack()
|
||||
{
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
|
||||
if use gccgo; then
|
||||
mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
|
||||
local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
|
||||
[[ -x ${go_binary} ]] || go_binary=$(
|
||||
find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
|
||||
sort -V | tail -n1)
|
||||
[[ -x ${go_binary} ]] ||
|
||||
die "go-$(gcc-major-version): command not found"
|
||||
ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
|
||||
fi
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
einfo "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
local bin_path f x
|
||||
|
||||
dodir /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] https://golang.org/issue/2775
|
||||
#
|
||||
# deliberately use cp to retain permissions
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
einstalldocs
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST mono-basic-4.6.tar.bz2 2051520 BLAKE2B 0fc4961e9beb0894dcc081ecd06abf8a2e1c3d1aa6bb129b72d2c87ab15e9e779c0305f030515b18bd218ac595cd03ebad2fef5403dfc5aeb7a58b8886d085a0 SHA512 a8b50f9fa0d2e7533429722e584f42ee3e3794e1e013a2ca75b616b2b7b8c755dbe0722187b5e0982b9ebb8b5d22310a21fcfd55a6c027ee6eadcc7887e106d9
|
||||
DIST mono-basic-4.7.tar.bz2 2051806 BLAKE2B 8d8beb26bfc79c5ff648d671fc92d0f15204694ac735d1ab0c375547f7f4a89519f24bc512ecc16ae93455c7c28978ef2112804335a02b9ccb63e537298e11d5 SHA512 c690f81d7af64d1592bc480be230abc93480728288291fe85de5c8b273eb6127d619c3bd02f2acd285b9b055ef4f2970a764b34f49f15e59ed238d01c151c99a
|
||||
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit mono-env
|
||||
|
||||
DESCRIPTION="Visual Basic Compiler and Runtime"
|
||||
HOMEPAGE="https://www.mono-project.com/docs/about-mono/languages/visualbasic/"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="LGPL-2 MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-lang/mono"
|
||||
DEPEND="${RDEPEND}"
|
Binary file not shown.
@ -0,0 +1,31 @@
|
||||
From 349a41da1ad88ad87825414752a8ff5fdd6a6c3f Mon Sep 17 00:00:00 2001
|
||||
From: Billy Brumley <bbrumley@gmail.com>
|
||||
Date: Wed, 11 Apr 2018 10:10:58 +0300
|
||||
Subject: [PATCH] RSA key generation: ensure BN_mod_inverse and BN_mod_exp_mont
|
||||
both get called with BN_FLG_CONSTTIME flag set.
|
||||
|
||||
CVE-2018-0737
|
||||
|
||||
Reviewed-by: Rich Salz <rsalz@openssl.org>
|
||||
Reviewed-by: Matt Caswell <matt@openssl.org>
|
||||
(cherry picked from commit 6939eab03a6e23d2bd2c3f5e34fe1d48e542e787)
|
||||
---
|
||||
crypto/rsa/rsa_gen.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c
|
||||
index 9ca5dfe..42b89a8 100644
|
||||
--- a/crypto/rsa/rsa_gen.c
|
||||
+++ b/crypto/rsa/rsa_gen.c
|
||||
@@ -156,6 +156,8 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value,
|
||||
if (BN_copy(rsa->e, e_value) == NULL)
|
||||
goto err;
|
||||
|
||||
+ BN_set_flags(rsa->p, BN_FLG_CONSTTIME);
|
||||
+ BN_set_flags(rsa->q, BN_FLG_CONSTTIME);
|
||||
BN_set_flags(r2, BN_FLG_CONSTTIME);
|
||||
/* generate p and q */
|
||||
for (;;) {
|
||||
--
|
||||
2.7.4
|
||||
|
@ -0,0 +1,251 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
|
||||
|
||||
PATCH_SET="openssl-1.0.2-patches-1.3"
|
||||
MY_P=${P/_/-}
|
||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
||||
HOMEPAGE="https://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
|
||||
mirror://gentoo/${PATCH_SET}.tar.xz
|
||||
https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="+asm bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 sslv2 +sslv3 static-libs test +tls-heartbeat vanilla zlib"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
RDEPEND=">=app-misc/c_rehash-1.7-r1
|
||||
gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
|
||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
|
||||
kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/perl-5
|
||||
sctp? ( >=net-misc/lksctp-tools-1.0.12 )
|
||||
test? (
|
||||
sys-apps/diffutils
|
||||
sys-devel/bc
|
||||
)"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
usr/include/openssl/opensslconf.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# keep this in sync with app-misc/c_rehash
|
||||
SSL_CNF_DIR="/etc/ssl"
|
||||
|
||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||
# that gets blown away anyways by the Configure script in src_configure
|
||||
rm -f Makefile
|
||||
|
||||
if ! use vanilla ; then
|
||||
eapply "${WORKDIR}"/patch/*.patch
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
||||
# disable fips in the build
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
sed -i \
|
||||
-e '/DIRS/s: fips : :g' \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
|
||||
Makefile.org \
|
||||
|| die
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
|
||||
|
||||
# since we're forcing $(CC) as makedep anyway, just fix
|
||||
# the conditional as always-on
|
||||
# helps clang (#417795), and versioned gcc (#499818)
|
||||
sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
|
||||
|
||||
# quiet out unknown driver argument warnings since openssl
|
||||
# doesn't have well-split CFLAGS and we're making it even worse
|
||||
# and 'make depend' uses -Werror for added fun (#417795 again)
|
||||
[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
|
||||
chmod a+rx gentoo.config || die
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags $(test-flags-CC -Wa,--noexecstack)
|
||||
append-cppflags -DOPENSSL_NO_BUF_FREELISTS
|
||||
|
||||
sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
|
||||
# The config script does stupid stuff to prompt the user. Kill it.
|
||||
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
unset CROSS_COMPILE #311473
|
||||
|
||||
tc-export CC AR RANLIB RC
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free https://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired https://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 https://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired https://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: Expired https://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
# See if our toolchain supports __uint128_t. If so, it's 64bit
|
||||
# friendly and can use the nicely optimized code paths. #460790
|
||||
local ec_nistp_64_gcc_128
|
||||
# Disable it for now though #469976
|
||||
#if ! use bindist ; then
|
||||
# echo "__uint128_t i;" > "${T}"/128.c
|
||||
# if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
|
||||
# ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
|
||||
# fi
|
||||
#fi
|
||||
|
||||
# https://github.com/openssl/openssl/issues/2286
|
||||
if use ia64 ; then
|
||||
replace-flags -g3 -g2
|
||||
replace-flags -ggdb3 -ggdb2
|
||||
fi
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use cpu_flags_x86_sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
$(use_ssl !bindist ec) \
|
||||
${ec_nistp_64_gcc_128} \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
enable-rc5 \
|
||||
enable-tlsext \
|
||||
$(use_ssl asm) \
|
||||
$(use_ssl gmp gmp -lgmp) \
|
||||
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
|
||||
$(use_ssl rfc3779) \
|
||||
$(use_ssl sctp) \
|
||||
$(use_ssl sslv2 ssl2) \
|
||||
$(use_ssl sslv3 ssl3) \
|
||||
$(use_ssl tls-heartbeat heartbeats) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
|
||||
--libdir=$(get_libdir) \
|
||||
shared threads \
|
||||
|| die
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAG=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
|
||||
-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# depend is needed to use $confopts; it also doesn't matter
|
||||
# that it's -j1 as the code itself serializes subdirs
|
||||
emake -j1 depend
|
||||
emake all
|
||||
# rehash is needed to prep the certs/ dir; do this
|
||||
# separately to avoid parallel build issues.
|
||||
emake rehash
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake INSTALL_PREFIX="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# openssl installs perl version of c_rehash by default, but
|
||||
# we provide a shell version via app-misc/c_rehash
|
||||
rm "${ED}"/usr/bin/c_rehash || die
|
||||
|
||||
local -a DOCS=( CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el )
|
||||
einstalldocs
|
||||
|
||||
use rfc3779 && dodoc engines/ccgost/README.gost
|
||||
|
||||
# This is crappy in that the static archives are still built even
|
||||
# when USE=static-libs. But this is due to a failing in the openssl
|
||||
# build system: the static archives are built as PIC all the time.
|
||||
# Only way around this would be to manually configure+compile openssl
|
||||
# twice; once with shared lib support enabled and once without.
|
||||
use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
|
||||
|
||||
# create the certs directory
|
||||
dodir ${SSL_CNF_DIR}/certs
|
||||
cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
|
||||
rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
|
||||
|
||||
# Namespace openssl programs to prevent conflicts with other man pages
|
||||
cd "${ED}"/usr/share/man
|
||||
local m d s
|
||||
for m in $(find . -type f | xargs grep -L '#include') ; do
|
||||
d=${m%/*} ; d=${d#./} ; m=${m##*/}
|
||||
[[ ${m} == openssl.1* ]] && continue
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
|
||||
mv ${d}/{,ssl-}${m}
|
||||
# fix up references to renamed man pages
|
||||
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
|
||||
ln -s ssl-${m} ${d}/openssl-${m}
|
||||
# locate any symlinks that point to this man page ... we assume
|
||||
# that any broken links are due to the above renaming
|
||||
for s in $(find -L ${d} -type l) ; do
|
||||
s=${s##*/}
|
||||
rm -f ${d}/${s}
|
||||
ln -s ssl-${m} ${d}/ssl-${s}
|
||||
ln -s ssl-${s} ${d}/openssl-${s}
|
||||
done
|
||||
done
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
|
||||
|
||||
dodir /etc/sandbox.d #254521
|
||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
||||
|
||||
diropts -m0700
|
||||
keepdir ${SSL_CNF_DIR}/private
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||
c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
|
||||
eend $?
|
||||
}
|
@ -0,0 +1,284 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
|
||||
|
||||
MY_P=${P/_/-}
|
||||
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
|
||||
HOMEPAGE="https://www.openssl.org/"
|
||||
SRC_URI="mirror://openssl/source/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="openssl"
|
||||
SLOT="0/1.1" # .so version of libssl/libcrypto
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="+asm bindist elibc_musl rfc3779 sctp cpu_flags_x86_sse2 static-libs test tls-heartbeat vanilla zlib"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
RDEPEND=">=app-misc/c_rehash-1.7-r1
|
||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-lang/perl-5
|
||||
sctp? ( >=net-misc/lksctp-tools-1.0.12 )
|
||||
test? (
|
||||
sys-apps/diffutils
|
||||
sys-devel/bc
|
||||
)"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
# This does not copy the entire Fedora patchset, but JUST the parts that
|
||||
# are needed to make it safe to use EC with RESTRICT=bindist.
|
||||
# See openssl.spec for the matching numbering of SourceNNN, PatchNNN
|
||||
SOURCE1=hobble-openssl
|
||||
SOURCE12=ec_curve.c
|
||||
SOURCE13=ectest.c
|
||||
PATCH1=openssl-1.1.0-build.patch # Fixes EVP testcase for EC
|
||||
PATCH37=openssl-1.1.0-ec-curves.patch
|
||||
FEDORA_GIT_BASE='https://src.fedoraproject.org/cgit/rpms/openssl.git/plain/'
|
||||
FEDORA_GIT_BRANCH='f27'
|
||||
FEDORA_SRC_URI=()
|
||||
FEDORA_SOURCE=( $SOURCE1 $SOURCE12 $SOURCE13 )
|
||||
FEDORA_PATCH=( $PATCH1 $PATCH37 )
|
||||
for i in "${FEDORA_SOURCE[@]}" ; do
|
||||
FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${P}_${i}" )
|
||||
done
|
||||
for i in "${FEDORA_PATCH[@]}" ; do # Already have a version prefix
|
||||
FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${i}" )
|
||||
done
|
||||
SRC_URI+=" bindist? ( ${FEDORA_SRC_URI[@]} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
usr/include/openssl/opensslconf.h
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.0.2a-x32-asm.patch #542618
|
||||
"${FILESDIR}"/${P}-CVE-2018-0737.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use bindist; then
|
||||
# This just removes the prefix, and puts it into WORKDIR like the RPM.
|
||||
for i in "${FEDORA_SOURCE[@]}" ; do
|
||||
cp -f "${DISTDIR}"/"${P}_${i}" "${WORKDIR}"/"${i}" || die
|
||||
done
|
||||
# .spec %prep
|
||||
bash "${WORKDIR}"/"${SOURCE1}" || die
|
||||
cp -f "${WORKDIR}"/"${SOURCE12}" "${S}"/crypto/ec/ || die
|
||||
cp -f "${WORKDIR}"/"${SOURCE13}" "${S}"/test/ || die
|
||||
for i in "${FEDORA_PATCH[@]}" ; do
|
||||
epatch "${DISTDIR}"/"${i}"
|
||||
done
|
||||
# Also see the configure parts below:
|
||||
# enable-ec \
|
||||
# $(use_ssl !bindist ec2m) \
|
||||
|
||||
fi
|
||||
# keep this in sync with app-misc/c_rehash
|
||||
SSL_CNF_DIR="/etc/ssl"
|
||||
|
||||
# Make sure we only ever touch Makefile.org and avoid patching a file
|
||||
# that gets blown away anyways by the Configure script in src_configure
|
||||
rm -f Makefile
|
||||
|
||||
if ! use vanilla ; then
|
||||
epatch "${PATCHES[@]}"
|
||||
fi
|
||||
|
||||
eapply_user #332661
|
||||
|
||||
# make sure the man pages are suffixed #302165
|
||||
# don't bother building man pages if they're disabled
|
||||
# Make DOCDIR Gentoo compliant
|
||||
sed -i \
|
||||
-e '/^MANSUFFIX/s:=.*:=ssl:' \
|
||||
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
|
||||
-e $(has noman FEATURES \
|
||||
&& echo '/^install:/s:install_docs::' \
|
||||
|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
|
||||
-e "/^DOCDIR/s@\$(BASENAME)@&-${PF}@" \
|
||||
Configurations/unix-Makefile.tmpl \
|
||||
|| die
|
||||
|
||||
# show the actual commands in the log
|
||||
sed -i '/^SET_X/s@=.*@=set -x@' Makefile.shared
|
||||
|
||||
# quiet out unknown driver argument warnings since openssl
|
||||
# doesn't have well-split CFLAGS and we're making it even worse
|
||||
# and 'make depend' uses -Werror for added fun (#417795 again)
|
||||
[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
|
||||
|
||||
# allow openssl to be cross-compiled
|
||||
cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
|
||||
chmod a+rx gentoo.config
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
append-flags $(test-flags-CC -Wa,--noexecstack)
|
||||
append-cppflags -DOPENSSL_NO_BUF_FREELISTS
|
||||
|
||||
# Prefixify Configure shebang (#141906)
|
||||
sed \
|
||||
-e "1s,/usr/bin/env,${EPREFIX}&," \
|
||||
-i Configure || die
|
||||
# Remove test target when FEATURES=test isn't set
|
||||
if ! use test ; then
|
||||
sed \
|
||||
-e '/^$config{dirs}/s@ "test",@@' \
|
||||
-i Configure || die
|
||||
fi
|
||||
# The config script does stupid stuff to prompt the user. Kill it.
|
||||
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
|
||||
./config --test-sanity || die "I AM NOT SANE"
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
unset APPS #197996
|
||||
unset SCRIPTS #312551
|
||||
unset CROSS_COMPILE #311473
|
||||
|
||||
tc-export CC AR RANLIB RC
|
||||
|
||||
# Clean out patent-or-otherwise-encumbered code
|
||||
# Camellia: Royalty Free https://en.wikipedia.org/wiki/Camellia_(cipher)
|
||||
# IDEA: Expired https://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
|
||||
# EC: ????????? ??/??/2015 https://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
|
||||
# MDC2: Expired https://en.wikipedia.org/wiki/MDC-2
|
||||
# RC5: Expired https://en.wikipedia.org/wiki/RC5
|
||||
|
||||
use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
|
||||
echoit() { echo "$@" ; "$@" ; }
|
||||
|
||||
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
|
||||
|
||||
# See if our toolchain supports __uint128_t. If so, it's 64bit
|
||||
# friendly and can use the nicely optimized code paths. #460790
|
||||
local ec_nistp_64_gcc_128
|
||||
# Disable it for now though #469976
|
||||
#if ! use bindist ; then
|
||||
# echo "__uint128_t i;" > "${T}"/128.c
|
||||
# if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
|
||||
# ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
|
||||
# fi
|
||||
#fi
|
||||
|
||||
local sslout=$(./gentoo.config)
|
||||
einfo "Use configuration ${sslout:-(openssl knows best)}"
|
||||
local config="Configure"
|
||||
[[ -z ${sslout} ]] && config="config"
|
||||
|
||||
# Fedora hobbled-EC needs 'no-ec2m'
|
||||
# 'srp' was restricted until early 2017 as well.
|
||||
# "disable-deprecated" option breaks too many consumers.
|
||||
# Don't set it without thorough revdeps testing.
|
||||
echoit \
|
||||
./${config} \
|
||||
${sslout} \
|
||||
$(use cpu_flags_x86_sse2 || echo "no-sse2") \
|
||||
enable-camellia \
|
||||
enable-ec \
|
||||
$(use_ssl !bindist ec2m) \
|
||||
enable-srp \
|
||||
$(use elibc_musl && echo "no-async") \
|
||||
${ec_nistp_64_gcc_128} \
|
||||
enable-idea \
|
||||
enable-mdc2 \
|
||||
enable-rc5 \
|
||||
$(use_ssl asm) \
|
||||
$(use_ssl rfc3779) \
|
||||
$(use_ssl sctp) \
|
||||
$(use_ssl tls-heartbeat heartbeats) \
|
||||
$(use_ssl zlib) \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
|
||||
--libdir=$(get_libdir) \
|
||||
shared threads \
|
||||
|| die
|
||||
|
||||
# Clean out hardcoded flags that openssl uses
|
||||
# Fix quoting for sed
|
||||
local DEFAULT_CFLAGS=$(grep ^CFLAGS= Makefile | LC_ALL=C sed \
|
||||
-e 's:^CFLAGS=::' \
|
||||
-e 's:-fomit-frame-pointer ::g' \
|
||||
-e 's:-O[0-9] ::g' \
|
||||
-e 's:-march=[-a-z0-9]* ::g' \
|
||||
-e 's:-mcpu=[-a-z0-9]* ::g' \
|
||||
-e 's:-m[a-z0-9]* ::g' \
|
||||
-e 's:\\:\\\\:g' \
|
||||
)
|
||||
sed -i \
|
||||
-e "/^CFLAGS=/s|=.*|=${DEFAULT_CFLAGS} ${CFLAGS}|" \
|
||||
-e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# depend is needed to use $confopts; it also doesn't matter
|
||||
# that it's -j1 as the code itself serializes subdirs
|
||||
emake -j1 depend
|
||||
emake all
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
# openssl installs perl version of c_rehash by default, but
|
||||
# we provide a shell version via app-misc/c_rehash
|
||||
rm "${ED}"/usr/bin/c_rehash || die
|
||||
|
||||
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/${PN}-c-indent.el
|
||||
|
||||
# This is crappy in that the static archives are still built even
|
||||
# when USE=static-libs. But this is due to a failing in the openssl
|
||||
# build system: the static archives are built as PIC all the time.
|
||||
# Only way around this would be to manually configure+compile openssl
|
||||
# twice; once with shared lib support enabled and once without.
|
||||
use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
|
||||
|
||||
# create the certs directory
|
||||
keepdir ${SSL_CNF_DIR}/certs
|
||||
|
||||
# Namespace openssl programs to prevent conflicts with other man pages
|
||||
cd "${ED}"/usr/share/man
|
||||
local m d s
|
||||
for m in $(find . -type f | xargs grep -L '#include') ; do
|
||||
d=${m%/*} ; d=${d#./} ; m=${m##*/}
|
||||
[[ ${m} == openssl.1* ]] && continue
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
|
||||
mv ${d}/{,ssl-}${m}
|
||||
# fix up references to renamed man pages
|
||||
sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
|
||||
ln -s ssl-${m} ${d}/openssl-${m}
|
||||
# locate any symlinks that point to this man page ... we assume
|
||||
# that any broken links are due to the above renaming
|
||||
for s in $(find -L ${d} -type l) ; do
|
||||
s=${s##*/}
|
||||
rm -f ${d}/${s}
|
||||
ln -s ssl-${m} ${d}/ssl-${s}
|
||||
ln -s ssl-${s} ${d}/openssl-${s}
|
||||
done
|
||||
done
|
||||
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
|
||||
|
||||
dodir /etc/sandbox.d #254521
|
||||
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
|
||||
|
||||
diropts -m0700
|
||||
keepdir ${SSL_CNF_DIR}/private
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
|
||||
c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
|
||||
eend $?
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
--- Makefile.PL.orig 2013-07-13 15:39:13.091479998 +0400
|
||||
+++ Makefile.PL 2013-07-13 15:39:45.418479431 +0400
|
||||
@@ -18,5 +18,6 @@
|
||||
( AUTHOR => 'Ian Brayshaw <ian@onemore.org>') : ()) ,
|
||||
'LIBS' => [''] ,
|
||||
'DEFINE' => '' ,
|
||||
- 'INC' => '-I.'
|
||||
+ 'INC' => '-I.' ,
|
||||
+ 'OPTIMIZE' => '$(CFLAGS)'
|
||||
);
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,4 @@
|
||||
DIST autoprefixer-rails-6.7.7.2.gem 354816 BLAKE2B 4f572e2e6a33825f69764737c756eb39e4773b252574920d97ce8f4fc4de95db936886c6bd065f5fc3450af74bd6ccf2a8e3e9fb0f3fb92f5ef5048f54c95a74 SHA512 5027da925da376fa271eded6792ed754aa34a2b12ae41ca0fd7cb0938f14b530a4ee16b02b62c22d00454da96b839201ea0e60e14e270f4a0f54c5e7105cf5db
|
||||
DIST autoprefixer-rails-7.1.6.gem 190976 BLAKE2B 071db0c97fbfa5ab7f62dc4a58064056297b37ceacfe51183b8f8cb8385f10a5a3fedf1599bbd47518dd29c89a8fb8d6e12ae2ccd711f5e255964baf1cdaf5bb SHA512 832626700f6a61d44b0fb3721d29121cda858f80aa8a13d134af874cc3e71eb27360f8d9e6de618fe9400d966d2e0afbd2e8a82772f96f34d6f78171574be536
|
||||
DIST autoprefixer-rails-7.2.3.gem 195072 BLAKE2B fa7f215239c2e326019f6fa65d8a6c7fa02c0ba46a24935dde80130035e2b22016b300ef1be0c8b116d1a5f2b8c56fd02d9183ab49e80ca5218b18638d1c5f7b SHA512 adb1fb174a49ac3e26ac6be18339e69d65a6afe132cf4c73f33c3c13a675cd473844f8e8f3e15dc5948530886e6da5cac5aaab6566bed6916ea376d8e812a940
|
||||
DIST autoprefixer-rails-7.2.6.gem 196608 BLAKE2B 0f9224fbf765877b1b7414c68fc39a6587514d27fb5290e1a623db8dcdcbf6f668b66ddd0133906a97e63e877b8201168a45520a9919dc756021d5a7cffc0d38 SHA512 37b3f245291711f92ab9e264491637e753afb95e52f9fd4e2bda6655cd781b2d031934f3379cabdd5589bdf57b780d0727f2fff1cdf7887ca4cc323d23023396
|
||||
DIST autoprefixer-rails-8.1.0.1.gem 198144 BLAKE2B ac02ea54020da8d00f14a3a08609d1f2805bd3e213473e725b2c5e5b4a3eab81df2288b036faf4b4e895b5da02b117179b2d4539959aec81c8b1ed48a452c441 SHA512 4f68152996316acba5aebe77d3882927aeb92a0c81e913c6e54af521ab25a69d35f477a9b0bd6310f1ede71801071b02ec5a3cf52cfa54b33062472f02fd08e5
|
||||
DIST autoprefixer-rails-8.3.0.gem 200192 BLAKE2B 17ac3bf4bb9bdea4705cb70232da223b8e53896cf01bc783becff3894f8dc900df4a0dcc5fac759845005fdbcfc1d37b3b5a1ff75837bc4b87a60a62b5baf7b8 SHA512 425c82c07036271ad10d847c71e99364b6737caed7039b73de1f48b003c5382b9926efa04a9bcdf1bf752ce6853eec43eb53c9ca70e1362a004b5107463c6d45
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="vendor"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Add vendor prefixes to CSS rules using values from the Can I Use website"
|
||||
HOMEPAGE="https://github.com/ai/autoprefixer-rails"
|
||||
LICENSE="MIT"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="7"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "dev-ruby/execjs:*"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/rails
|
||||
dev-ruby/rake
|
||||
dev-ruby/rspec-rails
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e "/bundler/d" -e "/BUNDLE/d" spec/app/config/boot.rb || die
|
||||
sed -i -e "/Bundler/,+3d" spec/app/config/application.rb || die
|
||||
rm spec/rails_spec.rb spec/compass_spec.rb || die
|
||||
}
|
Binary file not shown.
@ -1,4 +1,5 @@
|
||||
DIST cmake-3.10.2.tar.gz 7824452 BLAKE2B cc579f27d7d5668d1f375e7263e0b62212be1191735189d34b1f0aa921861ead5d3872388eebbb5136a72e3dec3920f1ebfb0bf45b642cf92eef02e4c8665d49 SHA512 f58fdd025285c9ff5396c0bd0d9573fc8a498fcbe5c11b336cb8ad6154ca6bc875c1a5e22d6654ba98596791ecf89ae8adffb83450839fa1275756b0af5bf82b
|
||||
DIST cmake-3.10.3.tar.gz 7825559 BLAKE2B 1db8c21abdcfac2612fa914d49f9edcf199240b714104dba1d470c8e1e487d8e6cc5d486febae88d4a71eb9419064bcf94f9bb2c779771323221c1f117baa693 SHA512 1ba6381321cb34c3c050548a1346d3b92d590a196d8aff7435c079cd485d01f7a6cd650ad97d00931aff424fcdc195bbaa6d9d7db679bf02f72f586c7b528ae4
|
||||
DIST cmake-3.11.0.tar.gz 7948287 BLAKE2B c56da8645d87bc06735e2afb9b8481918acd0a43e3fc96b6f58c1a311fa6a7a270a9be8d13d2106b3fcde802f8c084314717262edd760c7c7f06bd8c07f1fe69 SHA512 03b058483d236d4f4427c93cc41af77068c243fc4b6f24aeaf2daf97af215bc664bc1b733195463af4cfc94ec70076710f425661859d752ddf3b9610adca9834
|
||||
DIST cmake-3.11.1.tar.gz 7951125 BLAKE2B 157c2eac49900df554fb335c4a17484ca425a97e2c41b9539cf1f02cc09246e515d8c2b43549a7a395df378f1dd3f4757465edab6f1ea5d08d5835b6728b35d7 SHA512 d5df043453a9f9478a0e165ded6ce247a7b495fe8c4e56905bb523889a016fb8eb769455c2c2c5f6118c61bcffafe4e3e219ad99b2a85918323c2155f10089d8
|
||||
DIST cmake-3.9.6.tar.gz 7705400 BLAKE2B e0a5307af0a34863c50ea6aa9323025ef588b27e648107c3a81c362ee7ae4a1d2a07cc335d816b286ce4ddb249f9c6c08c3e8cf99856c7113f3724f47c62da43 SHA512 9fda2c9ac054ef8fb1bf3885fbdec02c518da89ade220eba06b5502ac3ff300f635ec0922e61f3b2d090644fb743b8f71a04c532ab66b2d890a180cc7da54e6c
|
||||
|
@ -0,0 +1,210 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
CMAKE_REMOVE_MODULES="no"
|
||||
inherit bash-completion-r1 elisp-common eutils flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils cmake-utils
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="Cross platform Make"
|
||||
HOMEPAGE="https://cmake.org/"
|
||||
SRC_URI="https://cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="CMake"
|
||||
SLOT="0"
|
||||
[[ "${PV}" = *_rc* ]] || \
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc emacs system-jsoncpp ncurses qt5"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/rhash
|
||||
>=app-arch/libarchive-3.0.0:=
|
||||
>=dev-libs/expat-2.0.1
|
||||
>=dev-libs/libuv-1.0.0:=
|
||||
>=net-misc/curl-7.21.5[ssl]
|
||||
sys-libs/zlib
|
||||
virtual/pkgconfig
|
||||
emacs? ( virtual/emacs )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
system-jsoncpp? ( >=dev-libs/jsoncpp-0.6.0_rc2:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
PATCHES=(
|
||||
# prefix
|
||||
"${FILESDIR}"/${PN}-3.4.0_rc1-darwin-bundle.patch
|
||||
"${FILESDIR}"/${PN}-3.9.0_rc2-prefix-dirs.patch
|
||||
"${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch
|
||||
|
||||
# handle gentoo packaging in find modules
|
||||
"${FILESDIR}"/${PN}-3.11.0_rc2-FindBLAS.patch
|
||||
"${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch
|
||||
"${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
|
||||
|
||||
# respect python eclasses
|
||||
"${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
|
||||
"${FILESDIR}"/${PN}-3.9.0_rc2-FindPythonInterp.patch
|
||||
|
||||
# upstream fixes (can usually be removed with a version bump)
|
||||
)
|
||||
|
||||
cmake_src_bootstrap() {
|
||||
# Cleanup args to extract only JOBS.
|
||||
# Because bootstrap does not know anything else.
|
||||
echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
|
||||
par_arg="--parallel=${par_arg}"
|
||||
else
|
||||
par_arg="--parallel=1"
|
||||
fi
|
||||
|
||||
# disable running of cmake in boostrap command
|
||||
sed -i \
|
||||
-e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
|
||||
bootstrap || die "sed failed"
|
||||
|
||||
# execinfo.h on Solaris isn't quite what it is on Darwin
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
sed -i -e 's/execinfo\.h/blablabla.h/' Source/kwsys/CMakeLists.txt || die
|
||||
fi
|
||||
|
||||
tc-export CC CXX LD
|
||||
|
||||
# bootstrap script isn't exactly /bin/sh compatible
|
||||
${CONFIG_SHELL:-sh} ./bootstrap \
|
||||
--prefix="${T}/cmakestrap/" \
|
||||
${par_arg} \
|
||||
|| die "Bootstrap failed"
|
||||
}
|
||||
|
||||
cmake_src_test() {
|
||||
# fix OutDir and SelectLibraryConfigurations tests
|
||||
# these are altered thanks to our eclass
|
||||
sed -i -e 's:#IGNORE ::g' \
|
||||
"${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
|
||||
|| die
|
||||
|
||||
pushd "${BUILD_DIR}" > /dev/null
|
||||
|
||||
local ctestargs
|
||||
[[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
|
||||
|
||||
# Excluded tests:
|
||||
# BootstrapTest: we actualy bootstrap it every time so why test it.
|
||||
# BundleUtilities: bundle creation broken
|
||||
# CTest.updatecvs: which fails to commit as root
|
||||
# Fortran: requires fortran
|
||||
# Qt4Deploy, which tries to break sandbox and ignores prefix
|
||||
# RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because
|
||||
# debugedit binary is not in the expected location
|
||||
# TestUpload, which requires network access
|
||||
"${BUILD_DIR}"/bin/ctest ${ctestargs} \
|
||||
-E "(BootstrapTest|BundleUtilities|CTest.UpdateCVS|Fortran|Qt4Deploy|RunCMake.CPack_RPM|TestUpload)" \
|
||||
|| die "Tests failed"
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
# Add gcc libs to the default link paths
|
||||
sed -i \
|
||||
-e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
|
||||
-e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
|
||||
Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
|
||||
if ! has_version \>=${CATEGORY}/${PN}-3.4.0_rc1 ; then
|
||||
CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
|
||||
cmake_src_bootstrap
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Fix linking on Solaris
|
||||
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_USE_SYSTEM_LIBRARIES=ON
|
||||
-DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
|
||||
-DCMAKE_DOC_DIR=/share/doc/${PF}
|
||||
-DCMAKE_MAN_DIR=/share/man
|
||||
-DCMAKE_DATA_DIR=/share/${PN}
|
||||
-DSPHINX_MAN=$(usex doc)
|
||||
-DSPHINX_HTML=$(usex doc)
|
||||
-DBUILD_CursesDialog="$(usex ncurses)"
|
||||
)
|
||||
|
||||
if use qt5 ; then
|
||||
mycmakeargs+=(
|
||||
-DBUILD_QtDialog=ON
|
||||
$(cmake-utils_use_find_package qt5 Qt5Widgets)
|
||||
)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use emacs && elisp-compile Auxiliary/cmake-mode.el
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins Auxiliary/vim/syntax/cmake.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/indent
|
||||
doins Auxiliary/vim/indent/cmake.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}/${PN}.vim"
|
||||
|
||||
dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
|
||||
|
||||
rm -r "${ED}"/usr/share/cmake/{completions,editors} || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
if use qt5; then
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
if use qt5; then
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,51 @@
|
||||
From e60ae49271e06384163afa1ebd1e562eb7c520ed Mon Sep 17 00:00:00 2001
|
||||
From: David Edmundson <kde@davidedmundson.co.uk>
|
||||
Date: Thu, 15 Feb 2018 17:39:22 +0000
|
||||
Subject: [PATCH] Add high DPI support
|
||||
|
||||
---
|
||||
src/listview.cpp | 11 ++++++++++-
|
||||
src/qgit.cpp | 5 ++++-
|
||||
2 files changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/listview.cpp b/src/listview.cpp
|
||||
index dd6a8cb..e4f094e 100644
|
||||
--- a/src/listview.cpp
|
||||
+++ b/src/listview.cpp
|
||||
@@ -884,7 +884,16 @@ void ListViewDelegate::addTextPixmap(QPixmap** pp, SCRef txt, const QStyleOption
|
||||
int pw = fm.boundingRect(txt).width() + 2 * spacing;
|
||||
int ph = fm.height();
|
||||
|
||||
- QPixmap* newPm = new QPixmap(ofs + pw, ph);
|
||||
+ QSize pixmapSize(ofs + pw, ph);
|
||||
+
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
|
||||
+ qreal dpr = qApp->devicePixelRatio();
|
||||
+ QPixmap* newPm = new QPixmap(pixmapSize * dpr);
|
||||
+ newPm->setDevicePixelRatio(dpr);
|
||||
+#else
|
||||
+ QPixmap* newPm = new QPixmap(pixmapSize);
|
||||
+#endif
|
||||
+
|
||||
QPainter p;
|
||||
p.begin(newPm);
|
||||
if (!pm->isNull()) {
|
||||
diff --git a/src/qgit.cpp b/src/qgit.cpp
|
||||
index 266a7b8..b01c49e 100644
|
||||
--- a/src/qgit.cpp
|
||||
+++ b/src/qgit.cpp
|
||||
@@ -18,7 +18,10 @@ using namespace QGit;
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
QApplication app(argc, argv);
|
||||
- QCoreApplication::setOrganizationName(ORG_KEY);
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
|
||||
+ app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||
+#endif
|
||||
+ QCoreApplication::setOrganizationName(ORG_KEY);
|
||||
QCoreApplication::setApplicationName(APP_KEY);
|
||||
|
||||
/* On Windows msysgit exec directory is set up
|
||||
--
|
||||
2.15.1
|
||||
|
@ -0,0 +1,24 @@
|
||||
From 563bc3ab3f928a3ba1c22e5e62ab8cbe15c6bc15 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Tue, 17 Apr 2018 13:28:19 +0200
|
||||
Subject: [PATCH] Fix build with Qt 5.11 (missing header)
|
||||
|
||||
---
|
||||
src/patchview.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/patchview.cpp b/src/patchview.cpp
|
||||
index 5e3765d..afa796e 100644
|
||||
--- a/src/patchview.cpp
|
||||
+++ b/src/patchview.cpp
|
||||
@@ -6,6 +6,7 @@
|
||||
Copyright: See COPYING file that comes with this distribution
|
||||
|
||||
*/
|
||||
+#include <QButtonGroup>
|
||||
#include <QScrollBar>
|
||||
#include "common.h"
|
||||
#include "git.h"
|
||||
--
|
||||
2.17.0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue