parent
868511a5e8
commit
0c5bd37fd2
@ -1,4 +1,5 @@
|
||||
DIST elektra-0.7.1.tar.gz 1347524 SHA256 ff90ae274935eac9c9c5c85ca7e66049be46a31d9ef08bc59a59858a15284c8c SHA512 25ca25e95d1a20a79ba97b094dc9630fb791f6653c2bacec751cc51492202831b7d28ae0786081e6be91581245bda3f5b7e2f3b523f7faa6bfb1d97b3d209684 WHIRLPOOL e90e7c126f2467c8ae29e3cffd5d8a6bfa444dfd38edcc8809d49562825aff8ec6c826139da4a2aa09e38935ee63b48674431c7cc27e2a14d372b2b8270b170d
|
||||
DIST elektra-0.8.12.tar.gz 2102450 SHA256 562432bea9455a61ff6e6b3263078ea9b26bef2ed177a04b5f9b181d605bc021 SHA512 be01dbeae5cc680973a7c7917f341506106139c7facc3d3f597f31f7aa91065dcee862121b8704d589f4c6dd916a99cadc9b67e2e9604bec2841b1ebafea89ea WHIRLPOOL 6661d9a337aa71fcc9764f127ec4055b3eb1456d60608c80ac8763aee2d680ab8691a16668da8ef694efb09e2415f58bf4e34a4f1f0e9a7498fecf88f56ce9da
|
||||
DIST elektra-0.8.3.tar.gz 1092409 SHA256 48fab82a6b1e8f0038c43ae9ade4da25b697d0aa74e39b7b94056ab7febc4be1 SHA512 e298c0515515a3a59fe28e695fd347ce775465d95f95f8d08c54e0223baf24300ec7e876d35fd3a07f2348290fdc7f740557333b26e847d09b4c41df63a1d886 WHIRLPOOL 64673416e96cc0a8f3ffbfc3f88525de3bc1270b381d0642b59f0a4f9d49db5cb296bd10a2839bc2baea82f58dcb6416ada1031553d378cba858d8f94df2d3b9
|
||||
DIST elektra-0.8.6.tar.gz 1188337 SHA256 e815cf69b070c339784472841aa0ee0b169fab7c78f41cbbd7044f53fa9ed216 SHA512 4df585e07ab461b924a506a8c58bcfbe55e6c1df72710bfdc13760559054ffef6b92f8da94c08f2d8f6a7a7692983d0e92d4ffa98506fcbfc166a71bf989e488 WHIRLPOOL b0dfa2841dcef35e03dfa04e5613576d5d8d74586e959c538399adbebf2d4d4842b15e912845c07f5c309614e33217b112124ec0971accf9fa4e521e1283732a
|
||||
DIST elektra-0.8.7.tar.gz 1566800 SHA256 698ebd41d540eb0c6427c17c13a6a0f03eef94655fbd40655c9b42d612ea1c9b SHA512 37b34abeb392e170f89a97f825153f925d7b11ea980832cb8f1bf8dbd8b098f8bd553b3998728ef84ce4f4c53ea1f420824984fe670f6752c1b50e98821eb07e WHIRLPOOL 7f3f290f9064488fd1c9927a76d3f9e235e144b1ebe91a02b392ee468b2bcc4881906a71b88822a75ac1506200c3c8d5857c31f35bdc8f9832eae67c2647a768
|
||||
|
@ -0,0 +1,120 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.8.12.ebuild,v 1.1 2015/08/05 12:03:06 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-multilib eutils java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
|
||||
HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra"
|
||||
SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl";
|
||||
IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}"
|
||||
|
||||
RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
|
||||
augeas? ( app-admin/augeas )
|
||||
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
|
||||
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
|
||||
java? ( >=virtual/jdk-1.8.0 )
|
||||
qt5? (
|
||||
>=dev-qt/qtdeclarative-5.3
|
||||
>=dev-qt/qtgui-5.3
|
||||
>=dev-qt/qttest-5.3
|
||||
>=dev-qt/qtwidgets-5.3
|
||||
)
|
||||
uname? ( sys-apps/coreutils )
|
||||
systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] )
|
||||
yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( >=dev-cpp/gtest-1.7.0 )"
|
||||
|
||||
DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO )
|
||||
# tries to write to user's home directory (and doesn't respect HOME)
|
||||
RESTRICT="test"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch )
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
einfo remove bundled libs
|
||||
# TODO: Remove bundled inih from src/plugins/ini (add to portage):
|
||||
# https://code.google.com/p/inih/
|
||||
rm -rf src/external || die
|
||||
|
||||
# move doc files to correct location
|
||||
sed -e "s/elektra-api/${PF}/" \
|
||||
-i cmake/ElektraCache.cmake || die
|
||||
|
||||
# avoid useless build time, nothing ends up installed
|
||||
comment_add_subdirectory benchmarks
|
||||
comment_add_subdirectory examples
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local my_plugins="ALL"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
use augeas || my_plugins+=";-augeas"
|
||||
use java || my_plugins+=";-jni"
|
||||
else
|
||||
my_plugins+=";-augeas;-jni"
|
||||
fi
|
||||
|
||||
use dbus || my_plugins+=";-dbus"
|
||||
use iconv || my_plugins+=";-iconv"
|
||||
use ini || my_plugins+=";-ini" # bundles inih
|
||||
use simpleini || my_plugins+=";-simpleini"
|
||||
use syslog || my_plugins+=";-syslog"
|
||||
use systemd || my_plugins+=";-journald"
|
||||
use tcl || my_plugins+=";-tcl"
|
||||
use uname || my_plugins+=";-uname"
|
||||
use xml || my_plugins+=";-xmltool"
|
||||
use yajl || my_plugins+=";-yajl"
|
||||
|
||||
# Disabling for good (?):
|
||||
# counter - Only useful for debugging the plugin framework
|
||||
# doc - Explaining basic makeup of a function //bug #514402
|
||||
# noresolver - Does not resolve, but can act as one
|
||||
# template - Template for new plugin written in C
|
||||
# wresolver - Resolver for non-POSIX, e.g. w32/w64 systems
|
||||
my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver"
|
||||
|
||||
local my_tools
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
my_tools="kdb"
|
||||
use qt5 && my_tools+=";qt-gui"
|
||||
fi
|
||||
|
||||
mycmakeargs=(
|
||||
"-DBUILD_SHARED=ON"
|
||||
"-DPLUGINS=${my_plugins}"
|
||||
"-DTOOLS=${my_tools}"
|
||||
"-DLATEX_COMPILER=OFF"
|
||||
"-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
|
||||
$(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \
|
||||
|| echo -DBUILD_DOCUMENTATION=OFF)
|
||||
$(cmake-utils_use static-libs BUILD_STATIC)
|
||||
$(cmake-utils_use test BUILD_TESTING)
|
||||
$(cmake-utils_use test ENABLE_TESTING)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einfo remove test_data
|
||||
rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data"
|
||||
einfo remove tool_exec
|
||||
rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec"
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-9999.ebuild,v 1.1 2015/08/05 12:03:06 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-multilib eutils java-pkg-opt-2 git-r3
|
||||
|
||||
DESCRIPTION="Universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
|
||||
HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra"
|
||||
EGIT_REPO_URI="git://github.com/ElektraInitiative/libelektra.git"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl";
|
||||
IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}"
|
||||
|
||||
RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
|
||||
augeas? ( app-admin/augeas )
|
||||
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
|
||||
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
|
||||
java? ( >=virtual/jdk-1.8.0 )
|
||||
qt5? (
|
||||
>=dev-qt/qtdeclarative-5.3
|
||||
>=dev-qt/qtgui-5.3
|
||||
>=dev-qt/qttest-5.3
|
||||
>=dev-qt/qtwidgets-5.3
|
||||
)
|
||||
uname? ( sys-apps/coreutils )
|
||||
systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] )
|
||||
yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( >=dev-cpp/gtest-1.7.0 )"
|
||||
|
||||
DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO )
|
||||
# tries to write to user's home directory (and doesn't respect HOME)
|
||||
RESTRICT="test"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch )
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
einfo remove bundled libs
|
||||
# TODO: Remove bundled inih from src/plugins/ini (add to portage):
|
||||
# https://code.google.com/p/inih/
|
||||
rm -rf src/external || die
|
||||
|
||||
# move doc files to correct location
|
||||
sed -e "s/elektra-api/${PF}/" \
|
||||
-i cmake/ElektraCache.cmake || die
|
||||
|
||||
# avoid useless build time, nothing ends up installed
|
||||
comment_add_subdirectory benchmarks
|
||||
comment_add_subdirectory examples
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local my_plugins="ALL"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
use augeas || my_plugins+=";-augeas"
|
||||
use java || my_plugins+=";-jni"
|
||||
else
|
||||
my_plugins+=";-augeas;-jni"
|
||||
fi
|
||||
|
||||
use dbus || my_plugins+=";-dbus"
|
||||
use iconv || my_plugins+=";-iconv"
|
||||
use ini || my_plugins+=";-ini" # bundles inih
|
||||
use simpleini || my_plugins+=";-simpleini"
|
||||
use syslog || my_plugins+=";-syslog"
|
||||
use systemd || my_plugins+=";-journald"
|
||||
use tcl || my_plugins+=";-tcl"
|
||||
use uname || my_plugins+=";-uname"
|
||||
use xml || my_plugins+=";-xmltool"
|
||||
use yajl || my_plugins+=";-yajl"
|
||||
|
||||
# Disabling for good (?):
|
||||
# counter - Only useful for debugging the plugin framework
|
||||
# doc - Explaining basic makeup of a function //bug #514402
|
||||
# noresolver - Does not resolve, but can act as one
|
||||
# template - Template for new plugin written in C
|
||||
# wresolver - Resolver for non-POSIX, e.g. w32/w64 systems
|
||||
my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver"
|
||||
|
||||
local my_tools
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
my_tools="kdb"
|
||||
use qt5 && my_tools+=";qt-gui"
|
||||
fi
|
||||
|
||||
mycmakeargs=(
|
||||
"-DBUILD_SHARED=ON"
|
||||
"-DPLUGINS=${my_plugins}"
|
||||
"-DTOOLS=${my_tools}"
|
||||
"-DLATEX_COMPILER=OFF"
|
||||
"-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
|
||||
$(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \
|
||||
|| echo -DBUILD_DOCUMENTATION=OFF)
|
||||
$(cmake-utils_use static-libs BUILD_STATIC)
|
||||
$(cmake-utils_use test BUILD_TESTING)
|
||||
$(cmake-utils_use test ENABLE_TESTING)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einfo remove test_data
|
||||
rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data"
|
||||
einfo remove tool_exec
|
||||
rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec"
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
--- a/src/libtools/tests/CMakeLists.txt 2014-08-22 20:52:14.634898037 +0200
|
||||
+++ b/src/libtools/tests/CMakeLists.txt 2014-08-22 21:19:25.770506035 +0200
|
||||
@@ -4,10 +4,12 @@
|
||||
add_cppheaders (HDR_FILES)
|
||||
add_toolheaders(HDR_FILES)
|
||||
|
||||
-include (LibAddTest)
|
||||
+if (ENABLE_TESTING)
|
||||
+ include (LibAddTest)
|
||||
|
||||
-file (GLOB TESTS testtool_*.cpp)
|
||||
-foreach (file ${TESTS})
|
||||
- get_filename_component (name ${file} NAME_WE)
|
||||
- add_gtest (${name})
|
||||
-endforeach (file ${TESTS})
|
||||
\ No newline at end of file
|
||||
+ file (GLOB TESTS testtool_*.cpp)
|
||||
+ foreach (file ${TESTS})
|
||||
+ get_filename_component (name ${file} NAME_WE)
|
||||
+ add_gtest (${name})
|
||||
+ endforeach (file ${TESTS})
|
||||
+endif (ENABLE_TESTING)
|
@ -1 +1,2 @@
|
||||
DIST puppetdb-3.0.1.tar.gz 24693952 SHA256 b5e86d36845c62d75c078816cffd5d38d97f014da8886506819b21a6c2719366 SHA512 00960de13270a8063de1845f7f0c42a3fa4bdec10ab2b8f66ce0dba27acda1b78974c57c0f3c6e2c09187f63e85d799b94f95de563bcbc179e9d692470a1e902 WHIRLPOOL ec136a91b2712b9249defaff6ea24b6f1ed917e519850515d8c0b995c5dcbc049550b2ac9efbe585c197a5747edcdb10e490a016de2067b593c833e02d8a7426
|
||||
DIST puppetdb-3.0.2.tar.gz 24698063 SHA256 976ef25948b206ad9a0abfee1ac8a4e737e87b7d8b26c3af24bc3237d1dd757b SHA512 9bf8ed30f2156bd7e544899d0e135aeaa0a30b3df76245878ce27f3a195bb4a6356a143b65a7ba1bb8c8382e64d1d616131ffe7dbeea15d2d1b5bdd34a93fc8e WHIRLPOOL e55c7405b814ab39e7e58941c3c71ea31f7ebd42bb23de2d98f722a99382f50999fa83105b3d730d49188d137aee1bdf7ed63fc30f8a879809b6e4762ba00873
|
||||
|
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppetdb/puppetdb-3.0.2.ebuild,v 1.1 2015/08/06 01:44:54 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
DESCRIPTION="PuppetDB collects data generated by Puppet."
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetdb/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND+=">=virtual/jdk-1.7.0"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppetdb
|
||||
enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die
|
||||
sed -i 's/sysconfig/conf\.d/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/puppetdb.tmpfiles.conf || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/puppetlabs/server/data/puppetdb
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb
|
||||
insopts -m0744
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppetdb.jar
|
||||
insinto /etc/puppetlabs/puppetdb
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/bootstrap.cfg
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetdb/conf.d
|
||||
doins ext/config/conf.d/jetty.ini
|
||||
doins ext/config/conf.d/repl.ini
|
||||
doins ext/config/conf.d/database.ini
|
||||
doins ext/config/conf.d/config.ini
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/ssl-setup
|
||||
doins ext/cli/export
|
||||
doins ext/cli/config-migration
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/anonymize
|
||||
doins ext/cli/import
|
||||
insinto /opt/puppetlabs/server/apps/puppetdb/bin
|
||||
doins ext/bin/puppetdb
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb
|
||||
dosym /opt/puppetlabs/server/apps/puppetdb/bin/puppetdb /usr/bin/puppetdb
|
||||
# init type tasks
|
||||
newconfd ext/default puppetdb
|
||||
systemd_dounit ext/redhat/puppetdb.service
|
||||
systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf
|
||||
newinitd "${FILESDIR}/puppetdb.initd" puppetdb
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetdb.logrotate.conf puppetdb
|
||||
fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb
|
||||
fperms -R 770 /opt/puppetlabs/server/data/puppetdb
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'"
|
||||
elog
|
||||
elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'"
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
HOST_NAME=`uname -n`
|
||||
if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
|
||||
echo "**** Error: Tripwire database for ${HOST_NAME} not found. ****"
|
||||
echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". ****"
|
||||
else
|
||||
test -f /etc/tripwire/tw.cfg && /usr/sbin/tripwire --check
|
||||
fi
|
@ -1,316 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
##
|
||||
## Tripwire(R) 2.3 for LINUX(R) Post-RPM installation script
|
||||
##
|
||||
## Copyleft information contained in footer
|
||||
##
|
||||
########################################################################
|
||||
########################################################################
|
||||
|
||||
##=======================================================
|
||||
## Setup
|
||||
##=======================================================
|
||||
|
||||
# We can assume all the correct tools are in place because the
|
||||
# RPM installed, didn't it?
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Set HOST_NAME variable
|
||||
##-------------------------------------------------------
|
||||
HOST_NAME='localhost'
|
||||
if uname -n > /dev/null 2> /dev/null ; then
|
||||
HOST_NAME=`uname -n`
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Program variables - edited by RPM during initial install
|
||||
##-------------------------------------------------------
|
||||
|
||||
# Site Passphrase variable
|
||||
TW_SITE_PASS=""
|
||||
|
||||
# Complete path to site key
|
||||
SITE_KEY="/etc/tripwire/site.key"
|
||||
|
||||
# Local Passphrase variable
|
||||
TW_LOCAL_PASS=""
|
||||
|
||||
# Complete path to local key
|
||||
LOCAL_KEY="/etc/tripwire/${HOST_NAME}-local.key"
|
||||
|
||||
# If clobber==true, overwrite files; if false, do not overwrite files.
|
||||
CLOBBER="false"
|
||||
|
||||
# If prompt==true, ask for confirmation before continuing with install.
|
||||
PROMPT="true"
|
||||
|
||||
# Name of twadmin executeable
|
||||
TWADMIN="twadmin"
|
||||
|
||||
# Path to twadmin executeable
|
||||
TWADMPATH=/usr/sbin
|
||||
|
||||
# Path to configuration directory
|
||||
CONF_PATH="/etc/tripwire"
|
||||
|
||||
# Name of clear text policy file
|
||||
TXT_POL=$CONF_PATH/twpol.txt
|
||||
|
||||
# Name of clear text configuration file
|
||||
TXT_CFG=$CONF_PATH/twcfg.txt
|
||||
|
||||
# Name of encrypted configuration file
|
||||
CONFIG_FILE=$CONF_PATH/tw.cfg
|
||||
|
||||
# Path of the final Tripwire policy file (signed)
|
||||
SIGNED_POL=`grep POLFILE $TXT_CFG | sed -e 's/^.*=\(.*\)/\1/'`
|
||||
|
||||
|
||||
##=======================================================
|
||||
## Create Key Files
|
||||
##=======================================================
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If user has to enter a passphrase, give some
|
||||
## advice about what is appropriate.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ -z "$TW_SITE_PASS" ] || [ -z "$TW_LOCAL_PASS" ]; then
|
||||
cat << END_OF_TEXT
|
||||
|
||||
----------------------------------------------
|
||||
The Tripwire site and local passphrases are used to
|
||||
sign a variety of files, such as the configuration,
|
||||
policy, and database files.
|
||||
|
||||
Passphrases should be at least 8 characters in length
|
||||
and contain both letters and numbers.
|
||||
|
||||
See the Tripwire manual for more information.
|
||||
END_OF_TEXT
|
||||
fi
|
||||
|
||||
##=======================================================
|
||||
## Generate keys.
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Creating key files..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Site key file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
# If clobber is true, and prompting is off (unattended operation)
|
||||
# and the key file already exists, remove it. Otherwise twadmin
|
||||
# will prompt with an "are you sure?" message.
|
||||
|
||||
if [ "$CLOBBER" = "true" ] && [ "$PROMPT" = "false" ] && [ -f "$SITE_KEY" ] ; then
|
||||
rm -f "$SITE_KEY"
|
||||
fi
|
||||
|
||||
if [ -f "$SITE_KEY" ] && [ "$CLOBBER" = "false" ] ; then
|
||||
echo "The site key file \"$SITE_KEY\""
|
||||
echo 'exists and will not be overwritten.'
|
||||
else
|
||||
cmdargs="--generate-keys --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: site key generation failed"
|
||||
exit 1
|
||||
else chmod 640 "$SITE_KEY"
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Local key file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
# If clobber is true, and prompting is off (unattended operation)
|
||||
# and the key file already exists, remove it. Otherwise twadmin
|
||||
# will prompt with an "are you sure?" message.
|
||||
|
||||
if [ "$CLOBBER" = "true" ] && [ "$PROMPT" = "false" ] && [ -f "$LOCAL_KEY" ] ; then
|
||||
rm -f "$LOCAL_KEY"
|
||||
fi
|
||||
|
||||
if [ -f "$LOCAL_KEY" ] && [ "$CLOBBER" = "false" ] ; then
|
||||
echo "The site key file \"$LOCAL_KEY\""
|
||||
echo 'exists and will not be overwritten.'
|
||||
else
|
||||
cmdargs="--generate-keys --local-keyfile \"$LOCAL_KEY\""
|
||||
if [ -n "$TW_LOCAL_PASS" ] ; then
|
||||
cmdargs="$cmdargs --local-passphrase \"$TW_LOCAL_PASS\""
|
||||
fi
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: local key generation failed"
|
||||
exit 1
|
||||
else chmod 640 "$LOCAL_KEY"
|
||||
fi
|
||||
fi
|
||||
|
||||
##=======================================================
|
||||
## Sign the Configuration File
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Signing configuration file..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If noclobber, then backup any existing config file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ "$CLOBBER" = "false" ] && [ -s "$CONFIG_FILE" ] ; then
|
||||
backup="${CONFIG_FILE}.$$.bak"
|
||||
echo "Backing up $CONFIG_FILE"
|
||||
echo " to $backup"
|
||||
`mv "$CONFIG_FILE" "$backup"`
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: backup of configuration file failed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Build command line.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cmdargs="--create-cfgfile"
|
||||
cmdargs="$cmdargs --cfgfile \"$CONFIG_FILE\""
|
||||
cmdargs="$cmdargs --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Sign the file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs \"$TXT_CFG\""
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: signing of configuration file failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the rights properly
|
||||
chmod 640 "$CONFIG_FILE"
|
||||
|
||||
##-------------------------------------------------------
|
||||
## We keep the cleartext version around.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cat << END_OF_TEXT
|
||||
|
||||
A clear-text version of the Tripwire configuration file
|
||||
$TXT_CFG
|
||||
has been preserved for your inspection. It is recommended
|
||||
that you delete this file manually after you have examined it.
|
||||
|
||||
END_OF_TEXT
|
||||
|
||||
##=======================================================
|
||||
## Sign tripwire policy file.
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Signing policy file..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If noclobber, then backup any existing policy file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ "$CLOBBER" = "false" ] && [ -s "$POLICY_FILE" ] ; then
|
||||
backup="${POLICY_FILE}.$$.bak"
|
||||
echo "Backing up $POLICY_FILE"
|
||||
echo " to $backup"
|
||||
mv "$POLICY_FILE" "$backup"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: backup of policy file failed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Build command line.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cmdargs="--create-polfile"
|
||||
cmdargs="$cmdargs --cfgfile \"$CONFIG_FILE\""
|
||||
cmdargs="$cmdargs --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Sign the file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs \"$TXT_POL\""
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: signing of policy file failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the proper rights on the newly signed policy file.
|
||||
chmod 0640 "$SIGNED_POL"
|
||||
|
||||
##-------------------------------------------------------
|
||||
## We keep the cleartext version around.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cat << END_OF_TEXT
|
||||
|
||||
A clear-text version of the Tripwire policy file
|
||||
$TXT_POL
|
||||
has been preserved for your inspection. This implements
|
||||
a minimal policy, intended only to test essential
|
||||
Tripwire functionality. You should edit the policy file
|
||||
to describe your system, and then use twadmin to generate
|
||||
a new signed copy of the Tripwire policy.
|
||||
|
||||
END_OF_TEXT
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
#
|
||||
# TRIPWIRE GPL NOTICES
|
||||
#
|
||||
# The developer of the original code and/or files is Tripwire, Inc.
|
||||
# Portions created by Tripwire, Inc. are copyright 2000 Tripwire, Inc.
|
||||
# Tripwire is a registered trademark of Tripwire, Inc. All rights reserved.
|
||||
#
|
||||
# This program is free software. The contents of this file are subject to
|
||||
# the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation; either version 2 of the License, or (at your option)
|
||||
# any later version. You may redistribute it and/or modify it only in
|
||||
# compliance with the GNU General Public License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful. However,
|
||||
# this program is distributed "AS-IS" WITHOUT ANY WARRANTY; INCLUDING THE
|
||||
# IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# Please see the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Nothing in the GNU General Public License or any other license to use the
|
||||
# code or files shall permit you to use Tripwire's trademarks,
|
||||
# service marks, or other intellectual property without Tripwire's
|
||||
# prior written consent.
|
||||
#
|
||||
# If you have any questions, please contact Tripwire, Inc. at either
|
||||
# info@tripwire.org or www.tripwire.org.
|
||||
#
|
||||
########################################################################
|
||||
########################################################################
|
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/tripwire/tripwire-2.4.2.2-r1.ebuild,v 1.6 2013/09/03 15:01:35 nimiux Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Open Source File Integrity Checker and IDS"
|
||||
HOMEPAGE="http://www.tripwire.org/"
|
||||
SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2
|
||||
mirror://gentoo/twpol.txt.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
IUSE="ssl static"
|
||||
|
||||
DEPEND="sys-devel/automake
|
||||
sys-devel/autoconf
|
||||
ssl? ( dev-libs/openssl )"
|
||||
RDEPEND="virtual/cron
|
||||
virtual/mta
|
||||
ssl? ( dev-libs/openssl )"
|
||||
|
||||
S="${WORKDIR}"/tripwire-"${PV}"-src
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-fix-configure.patch
|
||||
epatch "${FILESDIR}"/"${P}"-buildnum.patch
|
||||
epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# tripwire can be sensitive to compiler optimisation.
|
||||
# see #32613, #45823, and others.
|
||||
# -taviso@gentoo.org
|
||||
strip-flags
|
||||
append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
|
||||
chmod +x configure || die
|
||||
econf $(use_enable ssl openssl) $(use_enable static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
|
||||
doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
|
||||
dodir /etc/tripwire /var/lib/tripwire{,/report}
|
||||
keepdir /var/lib/tripwire{,/report}
|
||||
|
||||
exeinto /etc/cron.daily
|
||||
doexe "${FILESDIR}"/tripwire.cron
|
||||
|
||||
dodoc ChangeLog policy/policyguide.txt TRADEMARK \
|
||||
"${FILESDIR}"/tripwire.txt
|
||||
|
||||
insinto /etc/tripwire
|
||||
doins "${WORKDIR}"/twpol.txt "${FILESDIR}"/twcfg.txt
|
||||
|
||||
exeinto /etc/tripwire
|
||||
doexe "${FILESDIR}"/twinstall.sh
|
||||
|
||||
fperms 755 /etc/tripwire/twinstall.sh /etc/cron.daily/tripwire.cron
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "After installing this package, you should check the policy"
|
||||
elog "file (twpol.txt) shipped with the package to see if it"
|
||||
elog "suits your needs, and modify it accordingly."
|
||||
elog
|
||||
elog "Check bug #34662 to find a bash script which generates a"
|
||||
elog "policy file from the Gentoo packages installed in your system."
|
||||
elog
|
||||
elog "Once the policy file is ready, you can run the"
|
||||
elog "\"/etc/tripwire/twinstall.sh\" script to generate the "
|
||||
elog "cryptographic keys, and \"tripwire --init\" to initialize"
|
||||
elog "the Tripwire's database."
|
||||
elog
|
||||
elog "A quickstart guide is included with the documentation."
|
||||
elog
|
||||
}
|
@ -1,80 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/tripwire/tripwire-2.4.2.2-r2.ebuild,v 1.5 2014/08/03 18:34:45 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Open Source File Integrity Checker and IDS"
|
||||
HOMEPAGE="http://www.tripwire.org/"
|
||||
SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
IUSE="ssl static +tools"
|
||||
|
||||
DEPEND="sys-devel/automake
|
||||
sys-devel/autoconf
|
||||
ssl? ( dev-libs/openssl )"
|
||||
RDEPEND="virtual/cron
|
||||
virtual/mta
|
||||
ssl? ( dev-libs/openssl )"
|
||||
PDEPEND="tools? ( app-admin/mktwpol )"
|
||||
|
||||
S="${WORKDIR}"/tripwire-"${PV}"-src
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-fix-configure.patch
|
||||
epatch "${FILESDIR}"/"${P}"-buildnum.patch
|
||||
epatch "${FILESDIR}"/"${P}"-gcc-4.7.patch
|
||||
epatch "${FILESDIR}"/"${PN}"-twpol-GENERIC.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# tripwire can be sensitive to compiler optimisation.
|
||||
# see #32613, #45823, and others.
|
||||
# -taviso@gentoo.org
|
||||
strip-flags
|
||||
append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
|
||||
econf $(use_enable ssl openssl) $(use_enable static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
|
||||
doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
|
||||
dodir /etc/tripwire /var/lib/tripwire{,/report}
|
||||
keepdir /var/lib/tripwire{,/report}
|
||||
|
||||
exeinto /etc/cron.daily
|
||||
doexe "${FILESDIR}"/tripwire
|
||||
|
||||
dodoc ChangeLog policy/policyguide.txt TRADEMARK \
|
||||
"${FILESDIR}"/tripwire.txt
|
||||
|
||||
insinto /etc/tripwire
|
||||
doins "${FILESDIR}"/twcfg.txt policy/twpol-GENERIC.txt
|
||||
|
||||
fperms 750 /etc/cron.daily/tripwire
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog "Tripwire needs to be configured before its first run. You can"
|
||||
elog "do this by manually editing the twpol-GENERIC.txt file shipped with"
|
||||
elog "the package to suit your needs. A quickstart guide is provided"
|
||||
elog "in tripwire.txt file to help you with this."
|
||||
elog "To configure tripwire automatically, you can use the twsetup.sh"
|
||||
elog "script provided by the app-admin/mktwpol package. This package is"
|
||||
elog "installed for you by the \"tools\" USE flag (which is enabled by"
|
||||
elog "default."
|
||||
else
|
||||
elog "Maintenance of tripwire policy files as packages are added"
|
||||
elog "and deleted from your system can be automated by the mktwpol.sh"
|
||||
elog "script provided by the app-admin/mktwpol package. This package"
|
||||
elog "is installed for you if you append \"tools\" to your USE flags"
|
||||
fi
|
||||
}
|
@ -1,81 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/tripwire/tripwire-2.4.2.2.ebuild,v 1.7 2013/09/03 15:01:36 nimiux Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Open Source File Integrity Checker and IDS"
|
||||
HOMEPAGE="http://www.tripwire.org/"
|
||||
SRC_URI="mirror://sourceforge/tripwire/tripwire-${PV}-src.tar.bz2
|
||||
mirror://gentoo/twpol.txt.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
IUSE="ssl static"
|
||||
|
||||
DEPEND="sys-devel/automake
|
||||
sys-devel/autoconf
|
||||
ssl? ( dev-libs/openssl )"
|
||||
RDEPEND="virtual/cron
|
||||
virtual/mta
|
||||
ssl? ( dev-libs/openssl )"
|
||||
|
||||
S="${WORKDIR}"/tripwire-"${PV}"-src
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-fix-configure.patch
|
||||
epatch "${FILESDIR}"/"${P}"-buildnum.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# tripwire can be sensitive to compiler optimisation.
|
||||
# see #32613, #45823, and others.
|
||||
# -taviso@gentoo.org
|
||||
strip-flags
|
||||
append-cppflags -DCONFIG_DIR='"\"/etc/tripwire\""' -fno-strict-aliasing
|
||||
chmod +x configure || die
|
||||
econf $(use_enable ssl openssl) $(use_enable static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin "${S}"/bin/{siggen,tripwire,twadmin,twprint}
|
||||
doman "${S}"/man/man{4/*.4,5/*.5,8/*.8}
|
||||
dodir /etc/tripwire /var/lib/tripwire{,/report}
|
||||
keepdir /var/lib/tripwire{,/report}
|
||||
|
||||
exeinto /etc/cron.daily
|
||||
doexe "${FILESDIR}"/tripwire.cron
|
||||
|
||||
dodoc ChangeLog policy/policyguide.txt TRADEMARK \
|
||||
"${FILESDIR}"/tripwire.txt
|
||||
|
||||
insinto /etc/tripwire
|
||||
doins "${WORKDIR}"/twpol.txt "${FILESDIR}"/twcfg.txt
|
||||
|
||||
exeinto /etc/tripwire
|
||||
doexe "${FILESDIR}"/twinstall.sh
|
||||
|
||||
fperms 755 /etc/tripwire/twinstall.sh /etc/cron.daily/tripwire.cron
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "After installing this package, you should check the policy"
|
||||
elog "file (twpol.txt) shipped with the package to see if it"
|
||||
elog "suits your needs, and modify it accordingly."
|
||||
elog
|
||||
elog "Check bug #34662 to find a bash script which generates a"
|
||||
elog "policy file from the Gentoo packages installed in your system."
|
||||
elog
|
||||
elog "Once the policy file is ready, you can run the"
|
||||
elog "\"/etc/tripwire/twinstall.sh\" script to generate the "
|
||||
elog "cryptographic keys, and \"tripwire --init\" to initialize"
|
||||
elog "the Tripwire's database."
|
||||
elog
|
||||
elog "A quickstart guide is included with the documentation."
|
||||
elog
|
||||
}
|
@ -0,0 +1,184 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.8.10.ebuild,v 1.1 2015/08/05 21:56:49 tamiko Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit cmake-utils eutils fdo-mime flag-o-matic python-any-r1 qt4-r2
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/doxygen/doxygen.git"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
# KEYWORDS="~alpha ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
fi
|
||||
SRC_URI+=" http://dev.gentoo.org/~xarthisius/distfiles/doxywizard.png"
|
||||
|
||||
DESCRIPTION="Documentation system for most programming languages"
|
||||
HOMEPAGE="http://www.doxygen.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="clang debug doc dot doxysearch qt4 sqlite"
|
||||
|
||||
#missing SerbianCyrilic, JapaneseEn, KoreanEn, Chinesetraditional
|
||||
LANGS=(hy ar pt_BR ca zh cs de da eo es fa fi fr el hr hu id it ja ko lt mk
|
||||
nl nb pl pt ro ru sl sk sr sv tr uk vi af)
|
||||
for X in "${LANGS[@]}" ; do
|
||||
IUSE="${IUSE} linguas_${X}"
|
||||
done
|
||||
|
||||
RDEPEND="app-text/ghostscript-gpl
|
||||
dev-lang/perl
|
||||
media-libs/libpng
|
||||
virtual/libiconv
|
||||
clang? ( sys-devel/clang )
|
||||
doc? ( app-text/texlive[extra] )
|
||||
dot? (
|
||||
media-gfx/graphviz
|
||||
media-libs/freetype
|
||||
)
|
||||
doxysearch? ( =dev-libs/xapian-1.2* )
|
||||
qt4? ( dev-qt/qtgui:4 )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
"
|
||||
|
||||
DEPEND="sys-apps/sed
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
doc? ( ${PYTHON_DEPS} )
|
||||
${RDEPEND}"
|
||||
|
||||
# src_test() defaults to make -C testing but there is no such directory (bug #504448)
|
||||
RESTRICT="mirror test"
|
||||
EPATCH_SUFFIX="patch"
|
||||
|
||||
get_langs() {
|
||||
# using only user set linguas also fixes #263641
|
||||
my_linguas=()
|
||||
for lingua in ${LINGUAS}; do
|
||||
if has ${lingua} "${LANGS[@]}"; then
|
||||
case ${lingua} in
|
||||
hy) lingua=am ;;
|
||||
pt_BR) lingua=br ;;
|
||||
zh*) lingua=cn ;;
|
||||
cs) lingua=cz ;;
|
||||
da) lingua=dk ;;
|
||||
el*) lingua=gr ;;
|
||||
ja*) lingua=jp ;;
|
||||
ko) lingua=kr ;;
|
||||
nb) lingua=no ;;
|
||||
sl) lingua=si ;;
|
||||
tr*) lingua=tr ;;
|
||||
uk) lingua=ua ;;
|
||||
af) lingua=za ;;
|
||||
esac
|
||||
has ${lingua} "${my_linguas[@]}" ||
|
||||
my_linguas+=(${lingua})
|
||||
fi
|
||||
done
|
||||
f_langs="${my_linguas[@]}"
|
||||
echo ${f_langs// /;}
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Ensure we link to -liconv
|
||||
if use elibc_FreeBSD && has_version dev-libs/libiconv || use elibc_uclibc; then
|
||||
for pro in */*.pro.in */*/*.pro.in; do
|
||||
echo "unix:LIBS += -liconv" >> "${pro}"
|
||||
done
|
||||
fi
|
||||
|
||||
# Call dot with -Teps instead of -Tps for EPS generation - bug #282150
|
||||
sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die
|
||||
|
||||
# prefix search tools patch, plus OSX fixes
|
||||
epatch "${FILESDIR}"/${PN}-1.8.9.1-empty-line-sigsegv.patch #454348
|
||||
|
||||
epatch "${FILESDIR}"/${P}-link_with_pthread.patch
|
||||
|
||||
# fix pdf doc
|
||||
sed -i.orig -e "s:g_kowal:g kowal:" \
|
||||
doc/maintainers.txt || die
|
||||
|
||||
if is-flagq "-O3" ; then
|
||||
echo
|
||||
ewarn "Compiling with -O3 is known to produce incorrectly"
|
||||
ewarn "optimized code which breaks doxygen."
|
||||
echo
|
||||
elog "Continuing with -O2 instead ..."
|
||||
echo
|
||||
replace-flags "-O3" "-O2"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=YES
|
||||
-DDOC_INSTALL_DIR="share/doc/${P}"
|
||||
-DLANG_CODES="$(get_langs)"
|
||||
$(cmake-utils_use clang use_libclang)
|
||||
$(cmake-utils_use doc build_doc)
|
||||
$(cmake-utils_use doxysearch build_search)
|
||||
$(cmake-utils_use qt4 build_wizard)
|
||||
$(cmake-utils_use sqlite use_sqlite3)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
# generate html and pdf documents. errors here are not considered
|
||||
# fatal, hence the ewarn message TeX's font caching in /var/cache/fonts
|
||||
# causes sandbox warnings, so we allow it.
|
||||
if use doc; then
|
||||
if ! use dot; then
|
||||
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
|
||||
{Doxyfile,doc/Doxyfile} \
|
||||
|| ewarn "disabling dot failed"
|
||||
fi
|
||||
cd "${BUILD_DIR}" && emake docs
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use qt4; then
|
||||
doicon "${DISTDIR}/doxywizard.png"
|
||||
make_desktop_entry doxywizard "DoxyWizard ${PV}" \
|
||||
"/usr/share/pixmaps/doxywizard.png" \
|
||||
"Development"
|
||||
fi
|
||||
|
||||
dodoc LANGUAGE.HOWTO README.md
|
||||
|
||||
cmake-utils_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
elog
|
||||
elog "For examples and other goodies, see the source tarball. For some"
|
||||
elog "example output, run doxygen on the doxygen source using the"
|
||||
elog "Doxyfile provided in the top-level source dir."
|
||||
elog
|
||||
elog "Disabling the dot USE flag will remove the GraphViz dependency,"
|
||||
elog "along with Doxygen's ability to generate diagrams in the docs."
|
||||
elog "See the Doxygen homepage for additional helper tools to parse"
|
||||
elog "more languages."
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt
|
||||
index 055aac3..b66bde7 100644
|
||||
--- a/addon/doxywizard/CMakeLists.txt
|
||||
+++ b/addon/doxywizard/CMakeLists.txt
|
||||
@@ -73,6 +73,7 @@ ${doxywizard_RESOURCES_RCC}
|
||||
)
|
||||
target_link_libraries(doxywizard
|
||||
${QT_LIBRARIES}
|
||||
+pthread
|
||||
)
|
||||
|
||||
install(TARGETS doxywizard DESTINATION bin)
|
||||
diff --git a/addon/doxysearch/CMakeLists.txt b/addon/doxysearch/CMakeLists.txt
|
||||
index 33e01c1..165fc3e 100644
|
||||
--- a/addon/doxysearch/CMakeLists.txt
|
||||
+++ b/addon/doxysearch/CMakeLists.txt
|
||||
@@ -20,6 +20,7 @@ target_link_libraries(doxyindexer
|
||||
${ZLIB_LIBRARIES}
|
||||
${WIN_EXTRA_LIBS}
|
||||
qtools
|
||||
+ pthread
|
||||
)
|
||||
|
||||
add_executable(doxysearch.cgi
|
||||
@@ -29,6 +30,7 @@ target_link_libraries(doxysearch.cgi
|
||||
${XAPIAN_LIBRARIES}
|
||||
${ZLIB_LIBRARIES}
|
||||
${WIN_EXTRA_LIBS}
|
||||
+ pthread
|
||||
)
|
||||
|
||||
install(TARGETS doxyindexer doxysearch.cgi DESTINATION bin)
|
@ -1,370 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.2.5-r9.ebuild,v 1.3 2015/07/30 09:58:16 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
REPO="xen-unstable.hg"
|
||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
||||
S="${WORKDIR}/${REPO}"
|
||||
live_eclass="mercurial"
|
||||
else
|
||||
KEYWORDS="amd64 x86"
|
||||
UPSTREAM_VER=9
|
||||
SECURITY_VER=5
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=1
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
SEABIOS_VER=1.6.3.2
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
S="${WORKDIR}/xen-${PV}"
|
||||
fi
|
||||
|
||||
inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
|
||||
|
||||
DESCRIPTION="Xend daemon and tools"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
DOCS=( README docs/README.xen-bugtool )
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml pygrub screen static-libs system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( qemu )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libgcrypt:0
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pypam[${PYTHON_USEDEP}]
|
||||
sys-libs/zlib
|
||||
sys-power/iasl
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
dev-ml/findlib
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
${PYTHON_DEPS}
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
sys-devel/bin86
|
||||
sys-devel/dev86
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/latex2html[png,gif]
|
||||
media-gfx/transfig
|
||||
media-gfx/graphviz
|
||||
dev-tex/xcolor
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
dev-tex/latexmk
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-latexrecommended
|
||||
)
|
||||
hvm? ( x11-proto/xproto
|
||||
!net-libs/libiscsi )"
|
||||
RDEPEND="sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
ocaml? ( >=dev-lang/ocaml-4 )
|
||||
screen? (
|
||||
app-misc/screen
|
||||
app-admin/logrotate
|
||||
)
|
||||
virtual/udev"
|
||||
|
||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
export "CONFIG_IOEMU=y"
|
||||
else
|
||||
export "CONFIG_IOEMU=n"
|
||||
fi
|
||||
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||
if use x86 && use amd64; then
|
||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||
elif use x86; then
|
||||
export XEN_TARGET_ARCH="x86_32"
|
||||
elif use amd64 ; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
|
||||
use api && export "LIBXENAPI_BINDINGS=y"
|
||||
use flask && export "FLASK_ENABLE=y"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
use system-seabios && epatch "${WORKDIR}"/patches-gentoo/${PN}-4-unbundle-seabios.patch
|
||||
|
||||
if gcc-specs-pie; then
|
||||
epatch "${WORKDIR}"/patches-gentoo/ipxe-nopie.patch
|
||||
fi
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
|
||||
# try and remove all the default cflags
|
||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
||||
-exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} + || die "failed to re-set custom-cflags"
|
||||
fi
|
||||
|
||||
if ! use pygrub; then
|
||||
sed -e '/^SUBDIRS-$(PYTHON_TOOLS) += pygrub$/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
# Disable hvm support on systems that don't support x86_32 binaries.
|
||||
if ! use hvm; then
|
||||
sed -e '/^CONFIG_IOEMU := y$/d' -i config/*.mk || die
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
if ! use qemu; then
|
||||
sed -e "/^CONFIG_IOEMU := y$/d" -i config/*.mk || die
|
||||
sed -e "s:install-tools\: tools/ioemu-dir:install-tools\: :g" -i Makefile || die
|
||||
fi
|
||||
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# Bug 445986
|
||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' -i tools/firmware/Makefile || die
|
||||
|
||||
# fix QA warning, create /var/run/, /var/lock dynamically
|
||||
sed -i -e "/\$(INSTALL_DIR) \$(DESTDIR)\$(XEN_RUN_DIR)/d" \
|
||||
tools/libxl/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/run\//d" \
|
||||
tools/xenstore/Makefile \
|
||||
tools/pygrub/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/lock\/subsys/d" \
|
||||
tools/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
||||
|
||||
use doc && emake -C docs txt html
|
||||
emake -C docs man-pages
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Override auto-detection in the build system, bug #382573
|
||||
export INITD_DIR=/tmp/init.d
|
||||
export CONFIG_LEAF_DIR=../tmp/default
|
||||
|
||||
# Let the build system compile installed Python modules.
|
||||
local PYTHONDONTWRITEBYTECODE
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" install-tools \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
# Remove RedHat-specific stuff
|
||||
rm -rf "${D}"tmp || die
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=1:autoballoon=1:' \
|
||||
-e 's:^#lockfile="/var/lock/xl":lockfile="/var/lock/xl":' \
|
||||
-e 's:^#vifscript="vif-bridge":vifscript="vif-bridge":' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||
|
||||
dohtml -r docs/
|
||||
docinto pdf
|
||||
dodoc ${DOCS[@]}
|
||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
||||
fi
|
||||
|
||||
rm -rf "${D}"/usr/share/doc/xen/
|
||||
doman docs/man?/*
|
||||
|
||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${ED}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${ED}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == 'amd64' ]] && use qemu; then
|
||||
mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
|
||||
mv "${D}"usr/lib/xen/bin/qemu* "${D}"usr/$(get_libdir)/xen/bin/ || die
|
||||
fi
|
||||
|
||||
# For -static-libs wrt Bug 384355
|
||||
if ! use static-libs; then
|
||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
||||
fi
|
||||
|
||||
# xend expects these to exist
|
||||
keepdir /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
|
||||
rm -rf "${D}"/etc/udev
|
||||
|
||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "http://www.gentoo.org/doc/en/xen-gu"${D}"usr/ide.xml"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem at boot."
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# TODO: we need to have the current Python slot here.
|
||||
if ! has_version "dev-lang/python[ncurses]"; then
|
||||
echo
|
||||
ewarn "NB: Your dev-lang/python is built without USE=ncurses."
|
||||
ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
|
||||
fi
|
||||
|
||||
if has_version "sys-apps/iproute2[minimal]"; then
|
||||
echo
|
||||
ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
|
||||
ewarn "will not work until you rebuild iproute2 without USE=minimal."
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
echo
|
||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
||||
elog "support enable the hvm use flag."
|
||||
elog "An x86 or amd64 system is required to build HVM support."
|
||||
fi
|
||||
|
||||
if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
|
||||
echo
|
||||
elog "xensv is broken upstream (Gentoo bug #142011)."
|
||||
elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
|
||||
fi
|
||||
}
|
@ -1,437 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.5.1-r2.ebuild,v 1.2 2015/07/30 09:56:27 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
KEYWORDS=""
|
||||
REPO="xen-unstable.hg"
|
||||
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}"
|
||||
S="${WORKDIR}/${REPO}"
|
||||
live_eclass="mercurial"
|
||||
else
|
||||
KEYWORDS="amd64 ~arm ~arm64 -x86"
|
||||
UPSTREAM_VER=0
|
||||
SECURITY_VER=5
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=4
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
# xen-tools ovmf's patches
|
||||
OVMF_VER=1
|
||||
|
||||
SEABIOS_VER=1.7.5
|
||||
OVMF_PV=20150629
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
[[ -n ${OVMF_VER} ]] && \
|
||||
OVMF_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
ovmf? ( http://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
||||
${OVMF_PATCHSET_URI} )
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
S="${WORKDIR}/xen-${MY_PV}"
|
||||
fi
|
||||
|
||||
inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass}
|
||||
|
||||
DESCRIPTION="Xend daemon and tools"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
DOCS=( README docs/README.xen-bugtool )
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
||||
# >=dev-lang/ocaml-4 stable
|
||||
# Masked in profiles/eapi-5-files instead
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam python pygrub screen static-libs system-qemu system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
pygrub? ( python )
|
||||
ovmf? ( hvm )
|
||||
qemu? ( !system-qemu )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libaio
|
||||
dev-libs/libgcrypt:0
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
ovmf? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/sqlite} )
|
||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
||||
amd64? ( sys-devel/bin86
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
sys-devel/dev86
|
||||
sys-power/iasl )
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/latex2html[png,gif]
|
||||
media-gfx/graphviz
|
||||
dev-tex/xcolor
|
||||
media-gfx/transfig
|
||||
dev-texlive/texlive-latexextra
|
||||
virtual/latex-base
|
||||
dev-tex/latexmk
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-latexrecommended
|
||||
)
|
||||
hvm? ( x11-proto/xproto
|
||||
!net-libs/libiscsi )
|
||||
qemu? ( x11-libs/pixman )
|
||||
system-qemu? ( app-emulation/qemu[xen] )
|
||||
ocaml? ( dev-ml/findlib
|
||||
>=dev-lang/ocaml-4 )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
screen? (
|
||||
app-misc/screen
|
||||
app-admin/logrotate
|
||||
)
|
||||
virtual/udev"
|
||||
|
||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="usr/lib/xen/boot/hvmloader
|
||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
fi
|
||||
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||
if use x86 && use amd64; then
|
||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||
elif use x86; then
|
||||
export XEN_TARGET_ARCH="x86_32"
|
||||
elif use amd64 ; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
# Ovmf's patchset
|
||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
||||
einfo "Try to apply Ovmf patcheset"
|
||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-ovmf
|
||||
popd > /dev/null
|
||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
||||
fi
|
||||
|
||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
||||
|
||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
||||
|
||||
use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die
|
||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' \
|
||||
-i tools/firmware/Makefile || die
|
||||
|
||||
# Drop .config, fixes to gcc-4.6
|
||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
|
||||
# try and remove all the default cflags
|
||||
find "${S}" \( -name Makefile -o -name Rules.mk -o -name Config.mk \) \
|
||||
-exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} + || die "failed to re-set custom-cflags"
|
||||
fi
|
||||
|
||||
if ! use pygrub; then
|
||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use python; then
|
||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
if ! use qemu; then
|
||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
||||
fi
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
||||
|
||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||
-i tools/qemu-xen/configure || die
|
||||
|
||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||
fi
|
||||
|
||||
# use /var instead of /var/lib, consistat with previous ebuild
|
||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
# use /run instead of /var/run
|
||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||
-e 's:^#lockfile=:lockfile=:' \
|
||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${PREFIX}/usr \
|
||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||
--libexecdir=${PREFIX}/usr/libexec \
|
||||
--disable-werror \
|
||||
--disable-xen \
|
||||
--enable-tools \
|
||||
--enable-docs \
|
||||
$(use_with system-qemu) \
|
||||
$(use_enable pam) \
|
||||
$(use_enable api xenapi) \
|
||||
$(use_enable ovmf) \
|
||||
$(use_enable ocaml ocamltools) \
|
||||
"
|
||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
||||
use qemu || myconf+=" --with-system-qemu"
|
||||
use amd64 && myconf+=" --enable-qemu-traditional"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt}
|
||||
|
||||
use doc && emake -C docs txt html
|
||||
emake -C docs man-pages
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Override auto-detection in the build system, bug #382573
|
||||
export INITD_DIR=/tmp/init.d
|
||||
export CONFIG_LEAF_DIR=../tmp/default
|
||||
|
||||
# Let the build system compile installed Python modules.
|
||||
local PYTHONDONTWRITEBYTECODE
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${D}"
|
||||
|
||||
# Remove RedHat-specific stuff
|
||||
rm -rf "${D}"tmp || die
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||
|
||||
dohtml -r docs/
|
||||
docinto pdf
|
||||
dodoc ${DOCS[@]}
|
||||
[ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html
|
||||
fi
|
||||
|
||||
rm -rf "${D}"/usr/share/doc/xen/
|
||||
doman docs/man?/*
|
||||
|
||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||
newinitd "${FILESDIR}"/xenstored.initd xenstored
|
||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
# For -static-libs wrt Bug 384355
|
||||
if ! use static-libs; then
|
||||
rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a
|
||||
fi
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(get_udevdir)"
|
||||
rm -rf "${D}"/etc/udev
|
||||
|
||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# TODO: we need to have the current Python slot here.
|
||||
if ! has_version "dev-lang/python[ncurses]"; then
|
||||
echo
|
||||
ewarn "NB: Your dev-lang/python is built without USE=ncurses."
|
||||
ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py."
|
||||
fi
|
||||
|
||||
if has_version "sys-apps/iproute2[minimal]"; then
|
||||
echo
|
||||
ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking"
|
||||
ewarn "will not work until you rebuild iproute2 without USE=minimal."
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
echo
|
||||
elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm"
|
||||
elog "support enable the hvm use flag."
|
||||
elog "An x86 or amd64 system is required to build HVM support."
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source"
|
||||
elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently"
|
||||
elog "with the qemu capable xen. It is up to the user to distinguish between and utilise"
|
||||
elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise"
|
||||
fi
|
||||
|
||||
if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then
|
||||
echo
|
||||
elog "xensv is broken upstream (Gentoo bug #142011)."
|
||||
elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed."
|
||||
fi
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>xfce</herd>
|
||||
<maintainer>
|
||||
<email>xfce@gentoo.org</email>
|
||||
<name>XFCE Team</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,9 +1,4 @@
|
||||
DIST efl-1.10.1.tar.bz2 38538939 SHA256 203e6455a98b89c36e5ad838ea7dab855d744b8253843f468b72a925a058499f SHA512 96da96af331d7acc96f18dacd21c5756455a059244438daba2c9d6aeb5c991cdca5013ef7e672bae0bbe69a755c20eee8bb2051dbb372495e77ce943b57c16df WHIRLPOOL 76448b1077a81b698586129dc3ba033f82c6b0551edb92202c4cbbfd816e890390075df2d64f5e2c5fb7834bd5610628f5e63644ef73174d5e6680a973afa1f7
|
||||
DIST efl-1.11.2.tar.bz2 40950173 SHA256 b8646edbcfeb28da1447e072fa80b39546be18023903f7e5cf63c06784abc759 SHA512 4ffabe3b5ec704bcbff3d47c597fe8f27c03a6d6f43bd1f85add4667f1b946ac00d93a71cebdb31d46f5dbc6429d3100932d5011c8e7ef83ada73f19a24d1f04 WHIRLPOOL 69a858b29a1f4a7a0104fb167a738e9109cde78ba0107016814699f6f9a7757a7a931a5625db388a7550f5e0158c9765c3b23c47bb52c1e089814336310a7212
|
||||
DIST efl-1.12.2-lauch_via_logind_or_root_privilege.patch.xz 6276 SHA256 9af4e2cc5df96d25fb70f7d21381444ce988dd8f71f1a544bdc357115040897c SHA512 2011619b6382358e291ee185426716836c136e85d7fd337b73f909acd7b2ba82d65bba3e5328eac0909a55af04aa47f5e0778f6f22fb47a914c146b68ba17733 WHIRLPOOL c4085c8f3d59566c09e8a7428df6a0a2cb634f5f15f2fbf75bd98d85e6136a8469ef1ec1a692e485e1d7afc9c3c35cfe0ac428d2843eabbbcb8e516910a97ba9
|
||||
DIST efl-1.12.2.tar.bz2 46808743 SHA256 aa1a6b95de3d92dda819e1245254e3d9c0d68f77d27d89afb1ae3f2244c0bf0c SHA512 8d137a4cd7a11f102b949bfc7047b3be870df6d7ede72765b005914729bf291f59d1f70b69ab7fbbd3328975068aa5ded2f10e556a7d4f7c31aedfcd0d7340e9 WHIRLPOOL 531f81000dafbd88dacd24588a3832a7c2afccf466d070d78d86641b8c0e3e64854c4f9d8dfe46ab0fb84fd6890ac6eb3e8e63d02ef58bedf88c265412f3ddf7
|
||||
DIST efl-1.13.1.tar.xz 40332672 SHA256 7e06e11678063fd74522f8fc56eb3d0235e9d7f889639e2ecff4bb663a2568d6 SHA512 29324acdeffa287f4ef9c72938cfc18ab4f8ae40a0b2ddbdeccb323361bfe10da43b65a419561e04a7c2c148b1a9bc820a71ad735fbf2988940e982b73e2b2f5 WHIRLPOOL 10639471666c7aae6283f4ff442b10fea7e5159f36207a676030a9a6961e86faee72026b1bdd4c512f0831db7a945dbf53e2e3da67defb4527d3adc72ee52756
|
||||
DIST efl-1.8.5.tar.bz2 28175735 SHA256 4456ce34bdc8294336c451a44e12f2f928ac9b857040da6d72c10432611646de SHA512 155542aa900980c59745dd2b25244d52b38de0de400b8432f9183c53c9770efdbca9d6e31f3305cf16d19357660ff8383447442d6a08c9ddec2e83a5b054e6df WHIRLPOOL d8efbc474a6d62837ab94c7ab6a060c1440fa16a2e798c2d722d6029ac17421afb8b07b3cf614c94fa9fed9f55fad8994377bc7a37b1e024fcf28423b45221a0
|
||||
DIST efl-1.8.6.tar.bz2 28101148 SHA256 0cc0a559ee7b249000771734e4c037695284d4980839436b57ac3afbaffb2089 SHA512 8bd02faa155500cdeab5dab878e7884c05829c5e6e7c645cd4802ffe597bb4abca8e783e771595be56a72ba2a10c8e361626b51f94292a05a8747985dbba064e WHIRLPOOL 35353c081872fb316e61f4a379a650be18bd61c213872715c4b363d3664afc92bdb2f90d454862b31e0523739071a716d1e4bbe7d25482ff82ba2681f611e098
|
||||
DIST efl-1.9.4.tar.bz2 28180009 SHA256 39a285488dbc32f9c90514615ca8b9c13b7e47cd207d64a569ed524eeb0cd0c1 SHA512 7fa6edc141e630ed9419a668adc59f6ebfd551bfa1b77410985b0f08d23769efe9a21254c4d9ac95c2dee7f66e831a99744510110f413a7d987d72a7b71171d8 WHIRLPOOL c6cce0ad2bd3f149b07ed6a297453afcc63dd194b7236f3e1ccb4839e5117dc10e7dcb4951e70bf613c2e7eb19393508c1d99ea7ab3b8846f83e11f3f6061d6b
|
||||
DIST efl-1.9.5.tar.bz2 28199381 SHA256 207a9310a0d34cb08911282247745bb89907d7ee183485464c35318279d48cf7 SHA512 e3e214c205c5a680055c9fb98bc467a37564982ceb58f4cfb8f7dd761745a65f81820c2a7d399f6302e47e91bdf7d15ef6d042d284b2f8e69781d2508fc9fb49 WHIRLPOOL 304f89308606bb097dc2d3b58ef4f578b54fcc638aeb88f7b468a4544024b69351aa5b5fad74e67cdbb7cd426eca4103f0535ca56acf59d7ae6d99d5e8ae5cfe
|
||||
DIST efl-1.15.0.tar.xz 43130156 SHA256 5d9580e9ba961fc64222d54a73849c730477c209dde89cc123dde14f22d532bc SHA512 59f28ddee01b4b5f1d7117a9e4c051e7074fbd5712dae7d9f99f0a4d09d41963cc411eeec664f3e1c57e84ad6ebde9c58ddcc9931eef0468817a90fe96a1dfdd WHIRLPOOL 113a0da4c0f2a7b22bcfd12b2f83a85a999979ec97a423cd53310e9ef9d15d8f1d0db5dd035bc931116d4a79b435144366c1930ffe3f11d48fd439ca37124e36
|
||||
|
@ -1,275 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.10.1.ebuild,v 1.3 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
||||
MY_P=${P%%_*}
|
||||
SRC_URI="http://download.enlightenment.org/pre-releases/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X sdl wayland ) )
|
||||
gles? ( || ( X wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
sdl? ( opengl )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
drm? ( >=x11-libs/libxkbcommon-0.3.0 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
!oldlua? ( >=dev-lang/luajit-2.0.0 )
|
||||
oldlua? ( dev-lang/lua )
|
||||
physics? ( >=sci-physics/bullet-2.80 )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
|
||||
local MY_ECONF
|
||||
use X && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable oldlua lua-old)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--disable-gstreamer1
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
# disable gstreamer:1.0 support until evas_generic_loaders has it too
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,275 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.11.2.ebuild,v 1.2 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
||||
MY_P=${P%%_*}
|
||||
SRC_URI="http://download.enlightenment.org/pre-releases/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X sdl wayland ) )
|
||||
gles? ( || ( X wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
sdl? ( opengl )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
drm? ( >=x11-libs/libxkbcommon-0.3.0 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
!oldlua? ( >=dev-lang/luajit-2.0.0 )
|
||||
oldlua? ( dev-lang/lua )
|
||||
physics? ( >=sci-physics/bullet-2.80 )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
|
||||
local MY_ECONF
|
||||
use X && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable oldlua lua-old)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--disable-gstreamer1
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
# disable gstreamer:1.0 support until evas_generic_loaders has it too
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -0,0 +1,247 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.15.0.ebuild,v 1.2 2015/08/06 04:22:05 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
||||
MY_P=${P%%_*}
|
||||
SRC_URI="http://download.enlightenment.org/pre-releases/${MY_P}.tar.xz"
|
||||
EKEY_STATE="snap"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus jpeg2k neon oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 valgrind wayland webp X xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X sdl wayland ) )
|
||||
gles? ( || ( X wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
sdl? ( opengl )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
drm? (
|
||||
>=dev-libs/libinput-0.8
|
||||
media-libs/mesa[gbm]
|
||||
>=x11-libs/libdrm-2.4
|
||||
>=x11-libs/libxkbcommon-0.3.0
|
||||
)
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib:2 )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl:0 ) )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
!oldlua? ( >=dev-lang/luajit-2.0.0 )
|
||||
oldlua? ( dev-lang/lua )
|
||||
physics? ( >=sci-physics/bullet-2.80 )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl2
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
tslib? ( x11-libs/tslib )
|
||||
valgrind? ( dev-util/valgrind )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
virtual/jpeg
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
#external lz4 support currently broken because of unstable ABI/API
|
||||
# app-arch/lz4
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
if use ssl && use gnutls ; then
|
||||
einfo "You enabled both USE=ssl and USE=gnutls, but only one can be used;"
|
||||
einfo "gnutls has been selected for you."
|
||||
fi
|
||||
if use opengl && use gles ; then
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used;"
|
||||
einfo "opengl has been selected for you."
|
||||
fi
|
||||
|
||||
E_ECONF=(
|
||||
--with-profile=$(usex debug debug release)
|
||||
--with-crypto=$(usex gnutls gnutls $(usex ssl openssl none))
|
||||
--with-x11=$(usex X xlib none)
|
||||
$(use_with X x)
|
||||
--with-opengl=$(usex opengl full $(usex gles es none))
|
||||
--with-glib=$(usex glib)
|
||||
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer gstreamer1)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable neon)
|
||||
$(use_enable nls)
|
||||
$(use_enable oldlua lua-old)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable valgrind)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
--enable-image-loader-jpeg
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--disable-gstreamer
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
|
||||
# external lz4 support currently broken because of unstable ABI/API
|
||||
#--enable-liblz4
|
||||
)
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,284 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.8.5.ebuild,v 1.9 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xcb xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
X? ( !xcb )
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X xcb sdl wayland ) )
|
||||
gles? ( || ( X xcb wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
xcb? ( pixman )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( || ( X xcb ) )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
physics? ( sci-physics/bullet )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xcb? (
|
||||
x11-libs/libxcb
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
x11-libs/xcb-util-renderutil
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
x11-libs/xcb-util-renderutil
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
dev-lang/lua
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
use xcb && x11="xcb"
|
||||
|
||||
local MY_ECONF
|
||||
( use X || use xcb ) && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,284 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.8.6.ebuild,v 1.3 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xcb xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
X? ( !xcb )
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X xcb sdl wayland ) )
|
||||
gles? ( || ( X xcb wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
xcb? ( pixman )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( || ( X xcb ) )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
physics? ( sci-physics/bullet )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xcb? (
|
||||
x11-libs/libxcb
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
x11-libs/xcb-util-renderutil
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
x11-libs/xcb-util-renderutil
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
dev-lang/lua
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
use xcb && x11="xcb"
|
||||
|
||||
local MY_ECONF
|
||||
( use X || use xcb ) && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,274 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.9.4.ebuild,v 1.2 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
||||
MY_P=${P%%_*}
|
||||
SRC_URI="http://download.enlightenment.org/pre-releases/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X sdl wayland ) )
|
||||
gles? ( || ( X wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
sdl? ( opengl )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
!oldlua? ( >=dev-lang/luajit-2.0.0 )
|
||||
oldlua? ( dev-lang/lua )
|
||||
physics? ( >=sci-physics/bullet-2.80 )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
|
||||
local MY_ECONF
|
||||
use X && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable oldlua lua-old)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--disable-gstreamer1
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
# disable gstreamer:1.0 support until evas_generic_loaders has it too
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,274 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/efl/efl-1.9.5.ebuild,v 1.2 2015/02/14 04:35:08 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
||||
MY_P=${P%%_*}
|
||||
SRC_URI="http://download.enlightenment.org/pre-releases/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
||||
|
||||
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus +jpeg jpeg2k oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l2 wayland webp X xim xine xpm"
|
||||
|
||||
REQUIRED_USE="
|
||||
pulseaudio? ( sound )
|
||||
opengl? ( || ( X sdl wayland ) )
|
||||
gles? ( || ( X wayland ) )
|
||||
gles? ( !sdl )
|
||||
gles? ( egl )
|
||||
sdl? ( opengl )
|
||||
wayland? ( egl !opengl gles )
|
||||
xim? ( X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
debug? ( dev-util/valgrind )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fribidi? ( dev-libs/fribidi )
|
||||
gif? ( media-libs/giflib )
|
||||
glib? ( dev-libs/glib )
|
||||
gnutls? ( net-libs/gnutls )
|
||||
!gnutls? ( ssl? ( dev-libs/openssl ) )
|
||||
gstreamer? (
|
||||
=media-libs/gstreamer-0.10*
|
||||
=media-libs/gst-plugins-good-0.10*
|
||||
=media-plugins/gst-plugins-ffmpeg-0.10*
|
||||
)
|
||||
harfbuzz? ( media-libs/harfbuzz )
|
||||
ibus? ( app-i18n/ibus )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
!oldlua? ( >=dev-lang/luajit-2.0.0 )
|
||||
oldlua? ( dev-lang/lua )
|
||||
physics? ( >=sci-physics/bullet-2.80 )
|
||||
pixman? ( x11-libs/pixman )
|
||||
png? ( media-libs/libpng:0= )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
scim? ( app-i18n/scim )
|
||||
sdl? (
|
||||
media-libs/libsdl
|
||||
virtual/opengl
|
||||
)
|
||||
sound? ( media-libs/libsndfile )
|
||||
systemd? ( sys-apps/systemd )
|
||||
tiff? ( media-libs/tiff )
|
||||
tslib? ( x11-libs/tslib )
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.3.0
|
||||
>=x11-libs/libxkbcommon-0.3.1
|
||||
media-libs/mesa[gles2,wayland]
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
X? (
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXp
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXScrnSaver
|
||||
|
||||
opengl? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
|
||||
gles? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrender
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
xine? ( >=media-libs/xine-lib-1.1.1 )
|
||||
xpm? ( x11-libs/libXpm )
|
||||
|
||||
sys-apps/dbus
|
||||
>=sys-apps/util-linux-2.20.0
|
||||
sys-libs/zlib
|
||||
|
||||
!dev-libs/ecore
|
||||
!dev-libs/edbus
|
||||
!dev-libs/eet
|
||||
!dev-libs/eeze
|
||||
!dev-libs/efreet
|
||||
!dev-libs/eina
|
||||
!dev-libs/eio
|
||||
!dev-libs/embryo
|
||||
!dev-libs/eobj
|
||||
!dev-libs/ephysics
|
||||
!media-libs/edje
|
||||
!media-libs/emotion
|
||||
!media-libs/ethumb
|
||||
!media-libs/evas
|
||||
"
|
||||
|
||||
#soft blockers added above for binpkg users
|
||||
#hard blocks are needed for building
|
||||
CORE_EFL_CONFLICTS="
|
||||
!!dev-libs/ecore
|
||||
!!dev-libs/edbus
|
||||
!!dev-libs/eet
|
||||
!!dev-libs/eeze
|
||||
!!dev-libs/efreet
|
||||
!!dev-libs/eina
|
||||
!!dev-libs/eio
|
||||
!!dev-libs/embryo
|
||||
!!dev-libs/eobj
|
||||
!!dev-libs/ephysics
|
||||
!!media-libs/edje
|
||||
!!media-libs/emotion
|
||||
!!media-libs/ethumb
|
||||
!!media-libs/evas
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CORE_EFL_CONFLICTS}
|
||||
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
use ssl && use gnutls && {
|
||||
einfo "You enabled both USEssl and USE=gnutls, but only one can be used"
|
||||
einfo "gnutls has been selected for you"
|
||||
}
|
||||
use opengl && use gles && {
|
||||
einfo "You enabled both USE=opengl and USE=gles, but only one can be used"
|
||||
einfo "opengl has been selected for you"
|
||||
}
|
||||
|
||||
local profile="release"
|
||||
|
||||
use debug && profile="debug"
|
||||
|
||||
local crypto="none"
|
||||
|
||||
use gnutls && crypto="gnutls"
|
||||
use ssl && crypto="openssl"
|
||||
|
||||
local x11="none"
|
||||
local enable_graphics=""
|
||||
|
||||
use X && x11="xlib"
|
||||
|
||||
local MY_ECONF
|
||||
use X && MY_ECONF+=" --with-x"
|
||||
|
||||
local opengl="none"
|
||||
|
||||
use gles && opengl="es"
|
||||
use opengl && opengl="full"
|
||||
|
||||
local glib="no"
|
||||
|
||||
use glib && glib="yes"
|
||||
|
||||
MY_ECONF+="
|
||||
--with-profile=${profile}
|
||||
--with-crypto=${crypto}
|
||||
--with-x11=${x11}
|
||||
--with-opengl=${opengl}
|
||||
--with-glib=${glib}
|
||||
--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa
|
||||
|
||||
$(use_enable bmp image-loader-bmp)
|
||||
$(use_enable bmp image-loader-wbmp)
|
||||
$(use_enable drm)
|
||||
$(use_enable doc)
|
||||
$(use_enable eet image-loader-eet)
|
||||
$(use_enable egl)
|
||||
$(use_enable fbcon fb)
|
||||
$(use_enable fontconfig)
|
||||
$(use_enable fribidi)
|
||||
$(use_enable gif image-loader-gif)
|
||||
$(use_enable gstreamer)
|
||||
$(use_enable harfbuzz)
|
||||
$(use_enable ico image-loader-ico)
|
||||
$(use_enable ibus)
|
||||
$(use_enable jpeg image-loader-jpeg)
|
||||
$(use_enable jpeg2k image-loader-jp2k)
|
||||
$(use_enable nls)
|
||||
$(use_enable oldlua lua-old)
|
||||
$(use_enable physics)
|
||||
$(use_enable pixman)
|
||||
$(use_enable pixman pixman-font)
|
||||
$(use_enable pixman pixman-rect)
|
||||
$(use_enable pixman pixman-line)
|
||||
$(use_enable pixman pixman-poly)
|
||||
$(use_enable pixman pixman-image)
|
||||
$(use_enable pixman pixman-image-scale-sample)
|
||||
$(use_enable png image-loader-png)
|
||||
$(use_enable ppm image-loader-pmaps)
|
||||
$(use_enable psd image-loader-psd)
|
||||
$(use_enable pulseaudio)
|
||||
$(use_enable scim)
|
||||
$(use_enable sdl)
|
||||
$(use_enable sound audio)
|
||||
$(use_enable systemd)
|
||||
$(use_enable tga image-loader-tga)
|
||||
$(use_enable tiff image-loader-tiff)
|
||||
$(use_enable tslib)
|
||||
$(use_enable v4l2)
|
||||
$(use_enable wayland)
|
||||
$(use_enable webp image-loader-webp)
|
||||
$(use_enable xim)
|
||||
$(use_enable xine)
|
||||
$(use_enable xpm image-loader-xpm)
|
||||
--enable-cserve
|
||||
--enable-image-loader-generic
|
||||
|
||||
--disable-tizen
|
||||
--disable-gesture
|
||||
--disable-gstreamer1
|
||||
--enable-xinput2
|
||||
--disable-xinput22
|
||||
--disable-multisense
|
||||
--enable-libmount
|
||||
"
|
||||
# disable gstreamer:1.0 support until evas_generic_loaders has it too
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ewarn "If the following compile phase fails with a message including"
|
||||
ewarn "lib/edje/.libs/libedje.so: undefined reference to 'eet_mmap'"
|
||||
ewarn "then most likely the @preserved-rebuild feature of portage"
|
||||
ewarn "preserved the 1.7 libraries, which cause the build failure."
|
||||
ewarn "As a workaround, either remove those libs manually or"
|
||||
ewarn "uninstall all packages still using those old libs with"
|
||||
ewarn "emerge -aC @preserved-rebuild"
|
||||
|
||||
enlightenment_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
enlightenment_src_install
|
||||
}
|
@ -1,8 +1,3 @@
|
||||
DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
|
||||
DIST nss-3.17.3.tar.gz 6932021 SHA256 f4d5e9035a2f84f25f35c283de3b0ff60d72e918748de25eaf017ed201fa21d5 SHA512 828d3d495492bed020d819790b439a912e5a997a2e38dd2b3b27f5d92989960984b758fffe410fc82165dea2c138125571a992f6b90596f599bfb5636d0ccaaf WHIRLPOOL f450eefbd2a64fe0cde12188ff6b1e21d649528e06f3d9303f28147cfee77aa085bd83746a7b5ccb1a1c57599688e05a214ef6e0eac79c9c8d1e3958aa7a1542
|
||||
DIST nss-3.17.4.tar.gz 6924699 SHA256 1d98ad1881a4237ec98cbe472fc851480f0b0e954dfe224d047811fb96ff9d79 SHA512 dfc44e28c303743a72b4553f471089bc991c3cb61d5f3071082c16400d5e4f216f84a2e44536570316fe0e798c14ca370c875dad791a873034595b9e4dd70b89 WHIRLPOOL bb6e1027c5237d12fe58b4c520536022d8d4e83183a78c3421fd46bf9c3503b1f0ca4644240e383f216ec1e5174c0ae4148372db68fb9f1c10275954559d5bbf
|
||||
DIST nss-3.18.1.tar.gz 6945125 SHA256 10d005ca1b143a8b77032a169c595d06cf42d16d54809558ea30f1ffe73fef70 SHA512 00c2893b5aa74038661f7353ebc8200746de1757cec61072717a89ec10292040a1dd954aaf688fbcf68261031ec30e85e6fe9ab46283e202e8b62b06e05fa616 WHIRLPOOL 85ceb38b5c586149ee5d99b974742e17a232418278bc7405d20da4d64c0e18901ec8fe19385b932ce9661eb5362f7a7810d31ef1d0a7a105e99648d40c293c70
|
||||
DIST nss-3.19.1.tar.gz 6953537 SHA256 b7be709551ec13206d8e3e8c065b894fa981c11573115e9478fa051029c52fff SHA512 8938fff8d819f5a223f99b3ee55734b624609dd87d9035c3bb4ca22db707da709f43d6e56610860ff99e4d2271405ad0efb762ba3f6d9e6cd586415e31412107 WHIRLPOOL d5ba4abaa29c28c19f18314427c581b1356ab4edaeb818433000dd63281340de7db5cf98700c80d781cb26e6989b222113e927eb2e890592ae8691fe8dcb4eb9
|
||||
DIST nss-3.19.2.tar.gz 6953657 SHA256 1306663e8f61d8449ad8cbcffab743a604dcd9f6f34232c210847c51dce2c9ae SHA512 d3c45010f8dace58f9da9efe0f9792f8b8a69384e100663f33c949685cdd1ce70e5131f279bc82336622841c41dbc0a4d70a7cc6839a1782dbe8b3c3fd8bc59d WHIRLPOOL d69ab02e12f6b22f47df7be7925343c58e68a69b33833b85d6f2ca70f652d9d159accea45f2c141fa89245ab64dffff0f1289129427564203fe2faf3af1c11e3
|
||||
DIST nss-3.19.tar.gz 6951461 SHA256 989ebdf79374f24181f060d332445b1a4baf3df39d08514c4349ba8573cefa9b SHA512 e428d206a4fd30087f275a33771a1d7e753b000e8fc3e7c746972a89d1b32300d3619f430ea15e870d82b3af52785d4dd36ae89c9c496f014f9f323ea373da14 WHIRLPOOL 3a8b58a8a28e31f65f40cfa6a9bd9ca2177a17552082d8de2189da6c92ff7ba9c90be13793666558a2bff609da738cb1f4313968077e1041b8f283d36005e76c
|
||||
DIST nss-pem-015ae754dd9f6fbcd7e52030ec9732eb27fc06a8.tar.bz2 27506 SHA256 50d9ec26a75835e900302f631456e278e13d4b435b8f98aa69f79dd439ddc6ab SHA512 0158a140f112a905f7db5a4f4d04f49f6742db1d2665ddf6c32913c367f0b93a57f86ba13b9883a42a528aff44c48196941d7c0fd7a27005db6adaf07802e501 WHIRLPOOL 279ef11d2d6f0cb7c192189d64bc6971cdada7417b93a65a3ff0ba4548b736b53b9812803024c2349114e94e0864f2b58c23812687ed3f75cf28334b0f6e11ac
|
||||
|
@ -1,321 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.17.3.ebuild,v 1.10 2014/12/26 09:18:30 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.6-r1"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
>=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,321 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.17.4.ebuild,v 1.3 2015/03/26 11:36:48 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.6-r1"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
>=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,325 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.18.1.ebuild,v 1.2 2015/05/12 15:09:36 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.8"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
epatch "${FILESDIR}/${PN}-cacert-class3.patch" # 521462
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
# install man-pages for utils (bug #516810)
|
||||
doman doc/nroff/*.1
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,325 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.19.1.ebuild,v 1.1 2015/06/01 21:11:59 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.8"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
epatch "${FILESDIR}/${PN}-cacert-class3.patch" # 521462
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
# install man-pages for utils (bug #516810)
|
||||
doman doc/nroff/*.1
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,325 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.19.ebuild,v 1.2 2015/05/12 15:09:36 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.8"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="015ae754dd9f6fbcd7e52030ec9732eb27fc06a8"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
CDEPEND=">=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]"
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
${CDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.17.1-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
epatch "${FILESDIR}/${PN}-cacert-class3.patch" # 521462
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
${DEFAULT_ABI})
|
||||
einfo "Running compilation test to determine bit'ness"
|
||||
mybits=$(nssbits)
|
||||
;;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fakedir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
# install man-pages for utils (bug #516810)
|
||||
doman doc/nroff/*.1
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST WebService-Linode-0.28.tar.gz 33775 SHA256 66a315016999c0d2043caae86e664dad10c6613708f33a2f56aae8030326c509 SHA512 142d307f1384ab32e272894dcd6153f006b30dfa37e5542de9efd7a95c426fc920dc15e85b24140c93ea5c3bf3e8940547812e80de70bc36d75c3b7c83987db0 WHIRLPOOL 4b1d4b81563eb570b09da60cd43abddb4b522d3e4f18f363c5610ad12e076835df263b05285c5fd82536b2878e201d9a222d5954cfbf5d368189ad423cb3ca84
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/WebService-Linode/WebService-Linode-0.28.0.ebuild,v 1.1 2015/08/05 14:07:25 zlogene Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR="MIKEGRB"
|
||||
MODULE_VERSION="0.28"
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl interface to the Linode.com API"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="test? ( virtual/perl-Test-Simple )
|
||||
dev-perl/Module-Build-Tiny"
|
||||
|
||||
RDEPEND="dev-perl/JSON
|
||||
dev-perl/libwww-perl
|
||||
dev-perl/LWP-Protocol-https"
|
||||
|
||||
SRC_TEST="do"
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>perl</herd>
|
||||
<upstream>
|
||||
<remote-id type="cpan">WebService-Linode</remote-id>
|
||||
<remote-id type="cpan-module">WebService::Linode</remote-id>
|
||||
<remote-id type="cpan-module">WebService::Linode::Base</remote-id>
|
||||
<remote-id type="cpan-module">WebService::Linode::DNS</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST bandit-0.12.0.tar.gz 65558 SHA256 3c147b507696f3a74a5cf3581cc3bb65a63df454fcf24db28c3d1baa765a3b04 SHA512 ef1d80f2ca09d427e6d48f983d696fb92eb12184fbdc13dfb170a73c5935f56f7e6bf3b4cf4d211598f884592e6fe2ca33f6d33732cf12e740f74d43ffe78457 WHIRLPOOL 1defd5dcb9d120585b10e72c51501373572e7d56c0e379ec587592fd53a381baf262a970956cd9fa4c2ad007697a1b7db9068d130b6cb3a33a00c40bb9c6a13c
|
||||
DIST bandit-0.13.0.tar.gz 73142 SHA256 4593957b236564599dec7c8b2da5b084f9b257213688a3a97b2643c04721eb66 SHA512 1605fb2e3e43a85ccf89a0b18c517082543d20b55149383d3704d71854817cfef3fd5e1095dd58e24efe0324ca9430fc8d7ab9f3e4f1db1ca0ffe7c4f8e17577 WHIRLPOOL 3becc739b966c2ff550988f04b1dbb03b285b120ff1f2bf4822a0b2277bdd2dc23f7e5c4d5ce6ea98dc45211d9ee7ed52f37e602f2d18558eacce356b81f79a5
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/bandit/bandit-0.13.0.ebuild,v 1.1 2015/08/06 01:47:22 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 python3_4 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A security linter from OpenStack Security"
|
||||
HOMEPAGE="https://openstack.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-python/pbr-1.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-2.0.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}
|
||||
test? (
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/hacking-0.9.2[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
|
||||
!~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=dev-python/appdirs-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.5.0[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
testr init
|
||||
testr run || die
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/psutil/psutil-3.1.1.ebuild,v 1.1 2015/08/06 01:09:30 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Retrieve information on running processes and system utilization"
|
||||
HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.python.org/pypi/psutil/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST mini_magick-3.8.1.tar.gz 219340 SHA256 2c44e5d8a8d4cd1dbef15a1f67517c03d16081f916eb8612e35ebd942b4d6e1e SHA512 be3465a2f5c38b21e26cddc551ff442f5ac009aaeb579f79547726077e270c5e3fae955c44707c5cfeb76399a947f0d917eac68c2dd982e231163527bc559908 WHIRLPOOL 06c897114f330be1d5edb948e2a6d2d6a35e3a2866b0ce3825f9e93bda1696d4ca5146a90721a0b16d01366d21f20662ce41e78a8026fa5d32e02805b1111e1d
|
||||
DIST mini_magick-4.2.1.tar.gz 1059651 SHA256 da09b071870371fd1aaa5bf24a462d363d3a451fa118e7e8630adf505b2a7580 SHA512 3ff9de560b9624e1ad77db8dd9feb27c21ca6b94e24ee5d2b0e6f39b47a7e6db49676842bcb5cdc7c24d4c32c91d6c6077d92f7f003c566187b90776fc7253e7 WHIRLPOOL 555f53bffa51ec765dbab614588a04af4ccb2315892052cdfc4a8dd5489d230f7651157a041b1f12da6188888138c218cb3e6a62b9093698a02c6b1d7478cba7
|
||||
DIST mini_magick-4.2.4.tar.gz 1059654 SHA256 264e3be1e069ae28dffa3704a711b75517dd6c1fdd2c729d2b1959b4ffeada35 SHA512 dd8df139ec8678a144d91d78846f7e700bfd31d4a90e90b61a885a348fa2ba3055d49336d7ede8b74cb398a1a12760729e4f7948447a8e05f443228b964132f8 WHIRLPOOL 73794b64b54c1c3f274cf1b2be9f129d15708279d09acd2dacc1c932706fea777e3d920d22f958a902daf326c10586042b52483cc23f2402216b9db12edc5f84
|
||||
DIST mini_magick-4.2.7.tar.gz 1059704 SHA256 55c829cbbc09020a7e48864374341b09c25700f343e6f443248bf99b906ed88c SHA512 172e71d3d9286d92541951d83a67e3be05ff207e27502472426fab10ca92339c371f52ca85790300bdb881b10470ed7810e01a85d3b4e1a2ed4e89dc0f117493 WHIRLPOOL 90d8a7544d11699724b873b30cdc9243d5c388ddb4216577119770ea38ac1d336a5af2853861a9a6dd957f1f0a17af363446882ebaae19853f20dbf10398f66e
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/mini_magick-3.8.1-r1.ebuild,v 1.1 2014/11/08 16:20:14 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="Manipulate images with minimal use of memory"
|
||||
HOMEPAGE="http://github.com/minimagick/minimagick"
|
||||
SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RUBY_S="minimagick-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
# It's only used at runtime in this case because this extension only
|
||||
# _calls_ the commands. But when we run tests we're going to need tiff
|
||||
# and jpeg support at a minimum.
|
||||
RDEPEND="media-gfx/imagemagick"
|
||||
DEPEND="test? ( media-gfx/imagemagick[tiff,jpeg] )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/subexec-0.2.1 =dev-ruby/subexec-0.2*"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/mocha )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# remove executable bit from all files
|
||||
find "${S}" -type f -exec chmod -x {} +
|
||||
|
||||
sed -i -e '/[Bb]undler/ s:^:#:' spec/spec_helper.rb || die
|
||||
|
||||
# Don't force a specific formatter but use overall Gentoo defaults.
|
||||
sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid test depending on graphicsmagick
|
||||
sed -e '/identifies when gm exists/,/^ end/ s:^:#:' \
|
||||
-i spec/lib/mini_magick_spec.rb || die
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/mini_magick-4.2.1.ebuild,v 1.1 2015/04/10 05:57:15 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="Manipulate images with minimal use of memory"
|
||||
HOMEPAGE="http://github.com/minimagick/minimagick"
|
||||
SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RUBY_S="minimagick-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
# It's only used at runtime in this case because this extension only
|
||||
# _calls_ the commands. But when we run tests we're going to need tiff
|
||||
# and jpeg support at a minimum.
|
||||
RDEPEND+=" media-gfx/imagemagick"
|
||||
DEPEND+=" test? ( media-gfx/imagemagick[tiff,jpeg,png] >=media-gfx/graphicsmagick-1.3.20[tiff,jpeg,png] )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# remove executable bit from all files
|
||||
find "${S}" -type f -exec chmod -x {} +
|
||||
|
||||
sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die
|
||||
|
||||
# Don't force a specific formatter but use overall Gentoo defaults.
|
||||
sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid test depending on graphicsmagick
|
||||
sed -e '/identifies when gm exists/,/^ end/ s:^:#:' \
|
||||
-i spec/lib/mini_magick_spec.rb || die
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mini_magick/mini_magick-4.2.4.ebuild,v 1.1 2015/05/21 04:59:13 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_BINWRAP=""
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="Manipulate images with minimal use of memory"
|
||||
HOMEPAGE="https://github.com/minimagick/minimagick"
|
||||
SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RUBY_S="minimagick-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
# It's only used at runtime in this case because this extension only
|
||||
# _calls_ the commands. But when we run tests we're going to need tiff
|
||||
# and jpeg support at a minimum.
|
||||
RDEPEND+=" media-gfx/imagemagick"
|
||||
DEPEND+=" test? ( media-gfx/imagemagick[tiff,jpeg,png] >=media-gfx/graphicsmagick-1.3.20[tiff,jpeg,png] )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/posix-spawn )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# remove executable bit from all files
|
||||
find "${S}" -type f -exec chmod -x {} +
|
||||
|
||||
sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die
|
||||
|
||||
# Don't force a specific formatter but use overall Gentoo defaults.
|
||||
sed -i -e '/config.formatter/d' spec/spec_helper.rb || die
|
||||
|
||||
# Avoid test depending on graphicsmagick
|
||||
sed -e '/identifies when gm exists/,/^ end/ s:^:#:' \
|
||||
-i spec/lib/mini_magick_spec.rb || die
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/eclass/golang-vcs-snapshot.eclass,v 1.2 2015/08/05 19:23:28 williamh Exp $
|
||||
|
||||
# @ECLASS: golang-vcs-snapshot.eclass
|
||||
# @MAINTAINER:
|
||||
# William Hubbs <williamh@gentoo.org>
|
||||
# @BLURB: support eclass for unpacking VCS snapshot tarballs for
|
||||
# software written in the Go programming language
|
||||
# @DESCRIPTION:
|
||||
# This eclass provides a convenience src_unpack() which unpacks the
|
||||
# first tarball mentioned in SRC_URI to its appropriate location in
|
||||
# ${WORKDIR}/${P}, treating ${WORKDIR}/${P} as a go workspace.
|
||||
#
|
||||
# The location where the tarball is extracted is defined as
|
||||
# ${WORKDIR}/${P}/src/${EGO_PN}.
|
||||
#
|
||||
# The typical use case is VCS snapshots coming from github, bitbucket
|
||||
# and similar services.
|
||||
#
|
||||
# Please note that this eclass currently handles only tarballs
|
||||
# (.tar.gz), but support for more formats may be added in the future.
|
||||
#
|
||||
# @EXAMPLE:
|
||||
#
|
||||
# @CODE
|
||||
# EGO_PN=github.com/user/package
|
||||
# inherit golang-vcs-snapshot
|
||||
#
|
||||
# SRC_URI="http://github.com/example/${PN}/tarball/v${PV} -> ${P}.tar.gz"
|
||||
# @CODE
|
||||
#
|
||||
# The above example will extract the tarball to
|
||||
# ${WORKDIR}/${P}/src/github.com/user/package
|
||||
|
||||
inherit golang-base
|
||||
|
||||
case ${EAPI:-0} in
|
||||
5) ;;
|
||||
*) die "${ECLASS} API in EAPI ${EAPI} not yet established."
|
||||
esac
|
||||
|
||||
EXPORT_FUNCTIONS src_unpack
|
||||
|
||||
# @FUNCTION: golang-vcs-snapshot_src_unpack
|
||||
# @DESCRIPTION:
|
||||
# Extract the first archive from ${A} to the appropriate location for GOPATH.
|
||||
golang-vcs-snapshot_src_unpack() {
|
||||
local x
|
||||
ego_pn_check
|
||||
set -- ${A}
|
||||
x="$1"
|
||||
mkdir -p "${WORKDIR}/${P}/src/${EGO_PN%/*}" || die
|
||||
tar -C "${WORKDIR}/${P}/src/${EGO_PN%/*}" -x --strip-components 1 \
|
||||
-f "${DISTDIR}/${x}" || die
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST OpenMesh-2.3.1.tar.bz2 18203577 SHA256 5cd6537c64e1ff3f451e19328a70c02d283d06705e96698c19dde75c3749e4f8 SHA512 5d0822032111f07dc23751edebc7efa6e98d7e729ee020cfa6b5cf78b4c5e1a9f0ea1ca4a5cf3b1fe1cb1fc4389260f834b9e1c682a4f4c68cdc84035eef6c67 WHIRLPOOL 398fd2ae94e3927024fdc8489801480b9c27449e1ac5559f0e8c890ebee3d61b66207c6909f4b3ef73ec16829fee877e57e434a77c9dde2c0d22ec80a987e968
|
||||
DIST OpenMesh-3.2.tar.bz2 23766435 SHA256 c74890539846c8222aae93ad63316132e84bf4b2080c9b8321790767723f32e5 SHA512 40b346a6c7b141c284183ca66a489d20b668e3c3c0fb5b4e4185b86ea4552f031ea3106e918b2c3cf8e1bc713f3aac325dd17b50ec4d29f6446cf2cbde9a3dd9 WHIRLPOOL 93d8a2d2443f3de8938bf02836f1e1af92fc5adcd0c8c8fbc404a489d566d8d0e4dc4ed86665a8de0c94b171c045713497a7ef6fdb2aa83e04c5a3e2c18a79d5
|
||||
DIST OpenMesh-3.3.tar.bz2 24797682 SHA256 4eff6fff5685c57e2e7cdbf5b4b1ef183b3806db822eb01f74c8895e0fbe7a1d SHA512 3bed1f6a3d7db9b67d6c17647bf6c5efa26aca394763d14f5106f70573660329618d99287a51bea23c3a34b495117e38d5756d6d5bf49ea1add711d9e68bab8d WHIRLPOOL 3e6469940dd0ea5c6b83f79841faae8917c25558ea2bc43d78b7576c070fb8ab14b0280c1900e7d871f30a305ab42791a5498373a8869674179b0fd73dc626d5
|
||||
DIST OpenMesh-4.1.tar.bz2 24728164 SHA256 3e30cd7325db6367175e2e88c7516c23b7f90c9e1ff739c7d62e7de21228bb8e SHA512 064a4d5cb467589869baf4a302e6c620bd84de874b24019252b97ef863b59e83f2fe23ea45e4a5162a7765847da19f75f563f084cf2b3ae77c7e704b4c859b71 WHIRLPOOL 6989d0ff9dd24bf5b8252e6fc0a416258015d1b5a6202b4e7583c1f2eefe59826a5e2aaa6d50f105083f43680431a67e1cab5b81ace06b119d4e3737267f79ee
|
||||
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-3.3.ebuild,v 1.1 2015/08/05 15:32:21 jsbronder Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit eutils cmake-utils
|
||||
|
||||
MY_PN="OpenMesh"
|
||||
MY_PV="${PV/_rc/-RC}"
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
|
||||
HOMEPAGE="http://www.openmesh.org/"
|
||||
SRC_URI="http://openmesh.org/media/Releases/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-3-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~x86"
|
||||
IUSE="qt4 qt5 static-libs test"
|
||||
|
||||
RDEPEND="
|
||||
qt4? ( dev-qt/qtgui:4
|
||||
dev-qt/qtopengl:4
|
||||
media-libs/freeglut )
|
||||
qt5? ( dev-qt/qtgui:5
|
||||
dev-qt/qtopengl:5
|
||||
media-libs/freeglut )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-cpp/gtest )"
|
||||
|
||||
src_prepare() {
|
||||
# Fix libdir and remove rpath.
|
||||
sed -i \
|
||||
-e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
|
||||
-e "s|\(set (ACG_PROJECT_PLUGINDIR \"\)lib\(.*\)|\1$(get_libdir)\2|" \
|
||||
-e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
|
||||
-e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
|
||||
-e '/^ *INSTALL_RPATH/d' \
|
||||
cmake/ACGCommon.cmake || die
|
||||
|
||||
if ! use static-libs; then
|
||||
sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
|
||||
src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
|
||||
sed -i '/OpenMeshCoreStatic/d' \
|
||||
src/${MY_PN}/Tools/CMakeLists.txt || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=""
|
||||
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_UNIT_TESTS=TRUE"
|
||||
|
||||
# Disable python bindings until someone wants them.
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_BINDINGS=FALSE"
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=FALSE"
|
||||
|
||||
if ! use qt4 && ! use qt5; then
|
||||
mycmakeargs="${mycmakeargs} -DBUILD_APPS=OFF"
|
||||
fi
|
||||
|
||||
if use qt4 && ! use qt5; then
|
||||
mycmakeargs="${mycmakeargs} -DFORCE_QT4=ON"
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
dodoc LICENSE/* README CHANGELOG
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/openmesh/openmesh-4.1.ebuild,v 1.1 2015/08/05 16:42:41 jsbronder Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit eutils cmake-utils
|
||||
|
||||
MY_PN="OpenMesh"
|
||||
MY_PV="${PV/_rc/-RC}"
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A generic and efficient data structure for representing and manipulating polygonal meshes"
|
||||
HOMEPAGE="http://www.openmesh.org/"
|
||||
SRC_URI="http://openmesh.org/media/Releases/${MY_PV/-RC/RC}/${MY_PN}-${MY_PV}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~ia64 ~x86"
|
||||
IUSE="qt4 qt5 static-libs test"
|
||||
|
||||
RDEPEND="
|
||||
qt4? ( dev-qt/qtgui:4
|
||||
dev-qt/qtopengl:4
|
||||
media-libs/freeglut )
|
||||
qt5? ( dev-qt/qtgui:5
|
||||
dev-qt/qtopengl:5
|
||||
media-libs/freeglut )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-cpp/gtest )"
|
||||
|
||||
src_prepare() {
|
||||
# Fix libdir and remove rpath.
|
||||
sed -i \
|
||||
-e "s|\(set (ACG_PROJECT_LIBDIR \"\).*|\1$(get_libdir)/\")|" \
|
||||
-e "s|\(BUILD_WITH_INSTALL_RPATH \)1|\1 0|" \
|
||||
-e "s|\(SKIP_BUILD_RPATH\) 0|\1 1|" \
|
||||
-e '/^ *INSTALL_RPATH/d' \
|
||||
cmake/ACGCommon.cmake || die
|
||||
|
||||
if ! use static-libs; then
|
||||
sed -i "s|\(SHARED\)ANDSTATIC|\1|" \
|
||||
src/${MY_PN}/{Core,Tools}/CMakeLists.txt || die
|
||||
sed -i '/OpenMeshCoreStatic/d' \
|
||||
src/${MY_PN}/Tools/CMakeLists.txt || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=""
|
||||
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_UNIT_TESTS=TRUE"
|
||||
|
||||
# Disable python bindings until someone wants them.
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_BINDINGS=FALSE"
|
||||
mycmakeargs="${mycmakeargs} -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=FALSE"
|
||||
|
||||
if ! use qt4 && ! use qt5; then
|
||||
mycmakeargs="${mycmakeargs} -DBUILD_APPS=OFF"
|
||||
fi
|
||||
|
||||
if use qt4 && ! use qt5; then
|
||||
mycmakeargs="${mycmakeargs} -DFORCE_QT4=ON"
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
dodoc LICENSE/* README CHANGELOG
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BUILD_DIR}/Build/$(get_libdir) ctest --verbose
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>xfce</herd>
|
||||
<maintainer>
|
||||
<email>xfce@gentoo.org</email>
|
||||
<name>XFCE Team</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1 +1,2 @@
|
||||
DIST zbar-0.10.tar.bz2 592602 SHA256 234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6 SHA512 76cb8a469e3ac9ea7932a95c500cf933501249cdb8dce4df558bf5681bd44c62111327b494e6e887079a5fd30b32154887dcc12962e6d27b1453f55457483db4 WHIRLPOOL b4d8f6b2f6deb52fc7a60721888c3bbec2f4a94d5e29488167908e8a448ca698d64db7f78fb22408d4e3360eda44fd82195a0d762b71d203ca87d549461cde7f
|
||||
DIST zbar-0.10_p20121015.zip 991578 SHA256 1e2ba2a6f27bcc93b74e57ff46cc69c0f5c8d22ae277aa3d6c9da6892b892abe SHA512 7bb74ea5b096093b283c44787547ad0b886281628d012aa7b03ddb477732feb1e12d4d5a661191d34b53b7b272a237f67840e219b0ac5e2803da478a1ddba7a1 WHIRLPOOL be6307740b7e15c344c05c60a842d2ad01c6954ada71677cb8dbcbd0720a35f7f86d673a0f92a98d5968dc8394e9917c2a80880cb17a8d54bdc16827aa5d1eeb
|
||||
|
@ -1,50 +1,63 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/zbar/zbar-0.10-r3.ebuild,v 1.5 2015/02/27 12:12:58 xmw Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/zbar/zbar-0.10_p20121015.ebuild,v 1.1 2015/08/05 13:15:17 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_DEPEND="2:2.7"
|
||||
|
||||
inherit autotools eutils flag-o-matic python
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools eutils flag-o-matic python-single-r1
|
||||
|
||||
DESCRIPTION="Library and tools for reading barcodes from images or video"
|
||||
HOMEPAGE="http://zbar.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/zbar/${P}.tar.bz2"
|
||||
SRC_URI="http://sourceforge.net/code-snapshots/hg/z/zb/zbar/code/zbar-code-38e78368283d5afe34bbc0cedb36d4540cda3a30.zip -> ${P}.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="gtk imagemagick jpeg python qt4 static-libs +threads v4l X xv"
|
||||
|
||||
RDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
|
||||
RDEPEND="sys-devel/gettext
|
||||
gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
|
||||
imagemagick? (
|
||||
|| ( media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick] ) )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
python? ( gtk? ( >=dev-python/pygtk-2 ) )
|
||||
python? ( ${PYTHON_DEPS}
|
||||
gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] ) )
|
||||
qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
|
||||
X? ( x11-libs/libXext
|
||||
xv? ( x11-libs/libXv ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
#vcs-snapshot doesn't work on .zip
|
||||
default
|
||||
mv * ${P} || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-no-v4l1-check.patch
|
||||
epatch "${FILESDIR}"/${P}-errors.patch
|
||||
#epatch "${FILESDIR}"/${P}-no-v4l1-check.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.10-errors.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.10-python-crash.patch
|
||||
|
||||
python_convert_shebangs 2 examples/upcrpc.py test/{barcodetest,test_pygtk}.py
|
||||
use python && python_fix_shebang examples/upcrpc.py test/*.py
|
||||
|
||||
sed -i -e '/AM_INIT_AUTOMAKE/s:-Werror ::' configure.ac || die #423581
|
||||
sed -e '/AM_INIT_AUTOMAKE/s: -Werror : :' \
|
||||
-e '/^AM_CFLAGS=/s: -Werror::' \
|
||||
-i configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cflags -DNDEBUG
|
||||
append-cppflags -DNDEBUG
|
||||
econf \
|
||||
$(use_with jpeg) \
|
||||
$(use_with gtk) \
|
@ -1,8 +1,3 @@
|
||||
DIST elementary-1.10.1.tar.bz2 12169180 SHA256 e8bab96242ddb284878dd6eb4a30dc7e9f6951a3123bbace2e00da4d85ec161a SHA512 58f53fbfd7f93fa6c18d48da8ffdd00e3387bdfb2e508d7d5f30bfa6fff81584bb3807b71283ffd577aca79d5cf2ade8abe3a0b989ce55245a1dfcb25c68b814 WHIRLPOOL fab0e65f4a9a80db34a50704b92623a856e094cb2870c6d83a40cc128c48773488fb4569990e77b3233efc1de368258444f7c0324eed69aadc0ae52d88651967
|
||||
DIST elementary-1.11.2.tar.bz2 16714625 SHA256 00229c373d0fafcb3d7239d154be90bafff9525383ef97c7c743dd130dd4f326 SHA512 76c1be80a90a560bbc6e6b335a20ce2f773648b43e56aa646f9e9bf855b805f3dad8f9d3539a00c2253eb22fcb9f638ebdb1a078bd0f21f4dbda8227bd6dff5b WHIRLPOOL c6069c3a36565aaa755032c975f0a2e7ba38b03b2578b77059e363d3366dde08e3fcb2081f6c171d3e74243d64747481a701892a2344879d97d637498958264f
|
||||
DIST elementary-1.12.2.tar.bz2 16726431 SHA256 c6aa5e83224400babdd2a6ed848eeb09aa9bed2e1f573619d4d8c0dbf29fcd12 SHA512 05c9fb012bd933fe52978d0bdec7d80be06a54531d6c026de0cd32c7ba218c2c9960ed6c5f5aa94360c88a4465dbd3b8df7d92e73bc6bb754493b44825858232 WHIRLPOOL 97666a5072e280a613f21b3c32566b6a47a0d5a46fbe4983ec3e40c35bba6bd1f5d8f4d09557023494a9eaa89dc14711b8cc007d81e4c19881601955c1acf3df
|
||||
DIST elementary-1.13.1.tar.xz 16120080 SHA256 11595b6c5f511150a26e970bf8e590f96a6ce9e33e5dd8419407013844b2b74f SHA512 b8d4e3ff2447a80a98119753012e6ef0666ca569e4d401e66477a51667b6e940eb9c02d87f37b289b257db2855fc35486f0229e8861e74b6c48366aac30caa9f WHIRLPOOL 5400f9a11f2997fde9ee7b170ccf6b8833ad0fdecf229fc2dcbb9eea731e40958922672b47fa539df533006b29f7a197473cb3b24b8bac51a4159fc9f249ec46
|
||||
DIST elementary-1.8.4.tar.bz2 12125663 SHA256 b3597896cd977387172e300c3df43404b6bf48c423610416b350043d4c270cb5 SHA512 c87612b38d9c123bf378e2e2b47cfb6636e4ed71ad5660bda97d9decbc6c0505de0a0e28b123908fbd9252be3b5c51c8fd44fdbd4268cef70d872b7a880a995f WHIRLPOOL 5dd53b1c4d810ee657324d8988c8aef8f5d24ee55f3ac8433e0d21e651a52ccf840c9612ce4e0991e7ca01a0e43302d9f525f0b5c6b14701e86194810a983005
|
||||
DIST elementary-1.8.5.tar.bz2 12134869 SHA256 427d0d3619a410d924ea44856ea9ddd7ce01e827be16f113627cef226eefa73f SHA512 94d32b4a2311c54fcc4549e82f825f61fe0ce63cfba8f3bdc3c02b263ed4bb622c3e119b8bb657fdd73a154ace5cceabf6f748ca561c0063271083a144729c98 WHIRLPOOL efe6bf99f1216c1ec426326490f4c751416e96d5941913e84666ca28d57a9bcada28775edc03532ce92cc18a39f5fd58deb2df202a781575eb39215a8b8393be
|
||||
DIST elementary-1.9.4.tar.bz2 12193234 SHA256 88b498832ce0bc0c24a00bd48954dcc90e1945c4ad1d830f889dd848c83a6b38 SHA512 21c25419960fdbbf428ddf961bda8f7ac96f91f7a8de3855702c1a7f641bf4b8dcec72969875e655b778e10129d56114b4b8624382ae6800f1f0966e2d0de82c WHIRLPOOL 8b9fe2b0ad65a862f3c436d0e9252d86167b7b89d1960af7726350885658772ac43c28e09f31693668b12a87c87f30ca25683738fd0953a165b857028eb0ffc8
|
||||
DIST elementary-1.9.5.tar.bz2 12192433 SHA256 65489ba954d5ba173924ba19aec99a750c2240db6268b454440a8f7e546d976b SHA512 ad9b61c407448a68a125ab8fa03377cc49ae15d7a10873e4343d2b18426414d655deb346ce7d2dfd23dce8f69b9615a2f8f39f2939a4ea15904ce5ac9880b7e2 WHIRLPOOL f44adce43180fea603f1b1c54380e4c206556938a60c8e68df4e533c689fca092b612363137c1c84ad239e751ece1ef091cc85875aa1b2a0b6bc08dce2605871
|
||||
DIST elementary-1.15.0.tar.xz 18430880 SHA256 2be3180acbb9fa2fc0e9351b5508318925eb38733a6d54e1b3fc75e58368f1b0 SHA512 5441ebc012cf76aad074d25394cbb855decabcefa5a8b5feb2909a4fbc470fad32b1660fbc0bd47f6c11267d11cb21fe9df283718d4ccf68ffe44319de229781 WHIRLPOOL 29aa20103a56bd527754f14841216f0c6198e2663836455cc8b6391a88ca558c632f15868b948059616e659fd7c43f797526a472cba26ba38bc5195f562fbb3c
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/elementary/elementary-1.10.1.ebuild,v 1.2 2014/08/10 21:08:25 slyfox Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Basic widget set, based on EFL for mobile touch-screen devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Elementary"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug examples fbcon quicklaunch sdl wayland X static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/efl-1.9.2[sdl?,png,wayland?,X?]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
MY_ECONF="
|
||||
$(use_enable debug)
|
||||
$(use_enable doc)
|
||||
--disable-ecore-cocoa
|
||||
--disable-ecore-psl1ght
|
||||
--disable-ecore-win32
|
||||
--disable-ecore-wince
|
||||
--disable-elocation
|
||||
--disable-emap
|
||||
--disable-eweather
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable fbcon ecore-fb)
|
||||
$(use_enable sdl ecore-sdl)
|
||||
$(use_enable wayland ecore-wayland)
|
||||
$(use_enable X ecore-x)
|
||||
$(use_enable quicklaunch quick-launch)
|
||||
"
|
||||
#broken: make[4]: *** No rule to make target 'prefs_example_01.epb', needed by 'all-am'. Stop
|
||||
# $(use_enable examples build-examples)
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/elementary/elementary-1.11.2.ebuild,v 1.2 2014/12/31 11:27:36 tommy Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Basic widget set, based on EFL for mobile touch-screen devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Elementary"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug examples fbcon quicklaunch sdl wayland X static-libs"
|
||||
|
||||
DEPEND="
|
||||
=dev-libs/efl-1.11*[sdl?,png,wayland?,X?]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
MY_ECONF="
|
||||
$(use_enable debug)
|
||||
$(use_enable doc)
|
||||
--disable-ecore-cocoa
|
||||
--disable-ecore-psl1ght
|
||||
--disable-ecore-win32
|
||||
--disable-ecore-wince
|
||||
--disable-elocation
|
||||
--disable-emap
|
||||
--disable-eweather
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable fbcon ecore-fb)
|
||||
$(use_enable sdl ecore-sdl)
|
||||
$(use_enable wayland ecore-wayland)
|
||||
$(use_enable X ecore-x)
|
||||
$(use_enable quicklaunch quick-launch)
|
||||
"
|
||||
#broken: make[4]: *** No rule to make target 'prefs_example_01.epb', needed by 'all-am'. Stop
|
||||
# $(use_enable examples build-examples)
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/elementary/elementary-1.8.4.ebuild,v 1.3 2014/08/10 21:08:25 slyfox Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Basic widget set, based on EFL for mobile touch-screen devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Elementary"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug examples fbcon quicklaunch sdl wayland X static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/efl-1.8.3[sdl?,png,wayland?,X?]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
MY_ECONF="
|
||||
$(use_enable debug)
|
||||
$(use_enable doc)
|
||||
--disable-ecore-cocoa
|
||||
--disable-ecore-psl1ght
|
||||
--disable-ecore-win32
|
||||
--disable-ecore-wince
|
||||
--disable-elocation
|
||||
--disable-emap
|
||||
--disable-eweather
|
||||
$(use_enable examples build-examples)
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable fbcon ecore-fb)
|
||||
$(use_enable sdl ecore-sdl)
|
||||
$(use_enable wayland ecore-wayland)
|
||||
$(use_enable X ecore-x)
|
||||
$(use_enable quicklaunch quick-launch)
|
||||
"
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/elementary/elementary-1.9.4.ebuild,v 1.2 2014/08/10 21:08:25 slyfox Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Basic widget set, based on EFL for mobile touch-screen devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Elementary"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug examples fbcon quicklaunch sdl wayland X static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/efl-1.9.2[sdl?,png,wayland?,X?]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
MY_ECONF="
|
||||
$(use_enable debug)
|
||||
$(use_enable doc)
|
||||
--disable-ecore-cocoa
|
||||
--disable-ecore-psl1ght
|
||||
--disable-ecore-win32
|
||||
--disable-ecore-wince
|
||||
--disable-elocation
|
||||
--disable-emap
|
||||
--disable-eweather
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable fbcon ecore-fb)
|
||||
$(use_enable sdl ecore-sdl)
|
||||
$(use_enable wayland ecore-wayland)
|
||||
$(use_enable X ecore-x)
|
||||
$(use_enable quicklaunch quick-launch)
|
||||
"
|
||||
#broken: make[4]: *** No rule to make target 'prefs_example_01.epb', needed by 'all-am'. Stop
|
||||
# $(use_enable examples build-examples)
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/elementary/elementary-1.9.5.ebuild,v 1.3 2014/08/10 21:08:25 slyfox Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P=${P/_/-}
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_SUB_PROJECT="core"
|
||||
EGIT_URI_APPEND="${PN}"
|
||||
else
|
||||
SRC_URI="http://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.bz2"
|
||||
EKEY_STATE="snap"
|
||||
fi
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Basic widget set, based on EFL for mobile touch-screen devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Elementary"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug examples fbcon quicklaunch sdl wayland X static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/efl-1.9.5[sdl?,png,wayland?,X?]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
MY_ECONF="
|
||||
$(use_enable debug)
|
||||
$(use_enable doc)
|
||||
--disable-ecore-cocoa
|
||||
--disable-ecore-psl1ght
|
||||
--disable-ecore-win32
|
||||
--disable-ecore-wince
|
||||
--disable-elocation
|
||||
--disable-emap
|
||||
--disable-eweather
|
||||
$(use_enable examples install-examples)
|
||||
$(use_enable fbcon ecore-fb)
|
||||
$(use_enable sdl ecore-sdl)
|
||||
$(use_enable wayland ecore-wayland)
|
||||
$(use_enable X ecore-x)
|
||||
$(use_enable quicklaunch quick-launch)
|
||||
"
|
||||
#broken: make[4]: *** No rule to make target 'prefs_example_01.epb', needed by 'all-am'. Stop
|
||||
# $(use_enable examples build-examples)
|
||||
|
||||
enlightenment_src_configure
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue