parent
820f8f343a
commit
2aec550ce2
@ -1,181 +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/puppet/puppet-2.7.22.ebuild,v 1.6 2013/07/21 17:55:12 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
USE_RUBY="ruby18 ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST="test"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG* README*"
|
||||
|
||||
inherit elisp-common xemacs-elisp-common eutils ruby-fakegem user
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software"
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://www.puppetlabs.com/downloads/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite3 vim-syntax xemacs"
|
||||
KEYWORDS="amd64 hppa ppc sparc x86"
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/facter-1.5.6
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite3? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl"
|
||||
# couchdb? ( dev-ruby/couchrest )
|
||||
# mongrel? ( www-servers/mongrel )
|
||||
# rack? ( >=dev-ruby/rack-1 )
|
||||
# rails? (
|
||||
# dev-ruby/rails
|
||||
# >=dev-ruby/activerecord-2.1
|
||||
# )
|
||||
# stomp? ( dev-ruby/stomp )
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )
|
||||
selinux? ( sec-policy/selinux-puppet )"
|
||||
RDEPEND="${RDEPEND}
|
||||
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
>=app-portage/eix-0.18.0"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
RUBY_PATCHES=( )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
all_fakegem_compile
|
||||
|
||||
if use emacs ; then
|
||||
elisp-compile ext/emacs/puppet-mode.el
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
# Create a separate version for xemacs to be able to install
|
||||
# emacs and xemacs in parallel.
|
||||
mkdir ext/xemacs
|
||||
cp ext/emacs/* ext/xemacs/
|
||||
xemacs-elisp-compile ext/xemacs/puppet-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
each_fakegem_install() {
|
||||
${RUBY} install.rb --destdir="${D}" install
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
newinitd "${FILESDIR}"/puppet.init-r1 puppet
|
||||
doconfd conf/gentoo/conf.d/puppet
|
||||
|
||||
# Initial configuration files
|
||||
insinto /etc/puppet
|
||||
# Bug #338439
|
||||
#doins conf/gentoo/puppet/*
|
||||
doins conf/redhat/puppet.conf
|
||||
|
||||
# Location of log and data files
|
||||
keepdir /var/{run,log}/puppet
|
||||
fowners -R puppet:puppet /var/{run,log}/puppet
|
||||
|
||||
if use minimal ; then
|
||||
rm "${ED}/usr/bin/puppetmasterd"
|
||||
rm "${ED}/etc/puppet/auth.conf"
|
||||
else
|
||||
newinitd "${FILESDIR}"/puppetmaster.init puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
insinto /etc/puppet
|
||||
doins conf/redhat/fileserver.conf
|
||||
|
||||
keepdir /etc/puppet/manifests
|
||||
keepdir /etc/puppet/modules
|
||||
|
||||
keepdir /var/lib/puppet/ssl
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/{run,log,lib}/puppet
|
||||
fi
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} ext/emacs/puppet-mode.el*
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use xemacs ; then
|
||||
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
|
||||
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
|
||||
fi
|
||||
|
||||
if use vim-syntax ; then
|
||||
insinto /usr/share/vim/vimfiles/ftdetect; doins ext/vim/ftdetect/puppet.vim
|
||||
insinto /usr/share/vim/vimfiles/syntax; doins ext/vim/syntax/puppet.vim
|
||||
fi
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
docinto conf; dodoc conf/namespaceauth.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
|
||||
elog "cause puppet to hang while installing packages."
|
||||
elog
|
||||
elog "Puppet uses eix to get information about currently installed packages,"
|
||||
elog "so please keep the eix metadata cache updated so puppet is able to properly"
|
||||
elog "handle package installations."
|
||||
elog
|
||||
elog "Currently puppet only supports adding and removing services to the default"
|
||||
elog "runlevel, if you want to add/remove a service from another runlevel you may"
|
||||
elog "do so using symlinking."
|
||||
elog
|
||||
|
||||
if [ \
|
||||
-f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
|
||||
-f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
|
||||
-f "${EPREFIX}/etc/puppet/puppetca.conf" \
|
||||
] ; then
|
||||
elog
|
||||
elog "Please remove deprecated config files."
|
||||
elog " /etc/puppet/puppetca.conf"
|
||||
elog " /etc/puppet/puppetd.conf"
|
||||
elog " /etc/puppet/puppetmasterd.conf"
|
||||
elog
|
||||
fi
|
||||
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use xemacs && xemacs-elisp-site-regen
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST NaturalDocs-1.35.zip 344357 SHA256 f509a4d4e01d673a5e44fa45d6ca7851af7b3e00189afb5f23c0e57123e55fed SHA512 c9b65613aaeb1835f511fe8f466b3461f6c25460b84167a6698da2e281574a9f223db437032c29099bf4abc601ce185f05f41c7f4c882a6659a8c1cecdfe7829 WHIRLPOOL 5d0bd9ff07d7b7569a0ea4918f3ec56b8eb6cde282cf16fc932f8d42899dc0a0d725a8ad64d830265cd76d4e48240a4ea8255c7153fcdd14550e8ad4ead11916
|
||||
DIST NaturalDocs-1.4.zip 422789 SHA256 fc625ed5612dbb3f291290f2e39a0626377b7ad3f634a021dbfe5a75137d6072 SHA512 3d2bebe03c2cc012cdbad7143f7728f8f2d12e934a052d39a734f252b32b02790aae966142f43ce4c05f2048187fffa747081c4e7ab9a75d013bccd92bde2739 WHIRLPOOL fca1e8dd8631549d9f7ea5f562f55527fafababb0f769dda14ac319e5bcbc6da495b6990004fc76534301f801879a29209a807e7eebc0340654425a3ad2518a3
|
||||
DIST NaturalDocs-1.52.zip 460793 SHA256 3f13c99e15778afe6c5555084a083f856e93567b31b08acd1fd81afb10082681 SHA512 45d79dd2bf55a8cb7356eb5321a8c99cbab9d69a4d9a97033737090df2bfd86ee7a058a03016646c7fd6f20daf6523b2d77cd2248a7503a6c5c22684f08431c1 WHIRLPOOL 11bd1d5ad3b96b5d116be3463c871c25f60837f1f2f866f9f8dcdfbc33cdfc051a582e5e1b81289685924a57de503026ad1bb44d6965d0f0cd6c94a91c7909ab
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/NaturalDocs/NaturalDocs-1.35.ebuild,v 1.8 2008/02/19 17:15:47 dertobi123 Exp $
|
||||
|
||||
DESCRIPTION="Extensible, multi-language source code documentation generator"
|
||||
HOMEPAGE="http://www.naturaldocs.org/"
|
||||
SRC_URI="mirror://sourceforge/naturaldocs/${P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
src_unpack() {
|
||||
mkdir ${P} || die "could not create directory ${P}"
|
||||
cd ${P}
|
||||
unzip "${DISTDIR}"/${P}.zip
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "Nothing to compile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Install Perl script, modules, and other supporting stuff
|
||||
insinto /usr/share/${PN}
|
||||
doins -r Modules Styles Config Help Info JavaScript
|
||||
exeinto /usr/share/${PN}
|
||||
doexe ${PN}
|
||||
|
||||
# Symlink the Perl script into /usr/bin
|
||||
dodir /usr/bin
|
||||
dosym /usr/share/${PN}/${PN} /usr/bin/${PN}
|
||||
|
||||
# Documentation
|
||||
dodoc *.txt
|
||||
dohtml -r Help/*
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/NaturalDocs/NaturalDocs-1.40-r1.ebuild,v 1.5 2011/04/10 12:56:38 klausman Exp $
|
||||
|
||||
inherit perl-module
|
||||
|
||||
MY_P="${PN}-1.4"
|
||||
DESCRIPTION="Extensible, multi-language source code documentation generator"
|
||||
HOMEPAGE="http://www.naturaldocs.org/"
|
||||
SRC_URI="mirror://sourceforge/naturaldocs/${MY_P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha ~amd64 hppa ~ppc ~sparc ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r Styles Info JavaScript
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r Config/*
|
||||
dosym /etc/${PN} /usr/share/${PN}/Config
|
||||
|
||||
perlinfo
|
||||
insinto ${VENDOR_LIB}
|
||||
doins -r Modules/NaturalDocs
|
||||
dodir /usr/share/${PN}/Modules
|
||||
dosym ${VENDOR_LIB}/NaturalDocs /usr/share/${PN}/Modules/NaturalDocs
|
||||
|
||||
exeinto /usr/share/${PN}
|
||||
doexe ${PN}
|
||||
|
||||
# Symlink the Perl script into /usr/bin
|
||||
dodir /usr/bin
|
||||
dosym /usr/share/${PN}/${PN} /usr/bin/${PN}
|
||||
|
||||
# Documentation
|
||||
dohtml -r Help/*
|
||||
dosym /usr/share/doc/${PF}/html /usr/share/${PN}/Help
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e /usr/share/${PN}/Config && ! -L /usr/share/${PN}/Config ]] ; then
|
||||
mkdir -p /etc/${PN}
|
||||
mv /usr/share/${PN}/Config/* /etc/${PN}/
|
||||
rm -rf /usr/share/${PN}/Config
|
||||
fi
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/NaturalDocs/NaturalDocs-1.40.ebuild,v 1.6 2009/08/09 12:28:43 nixnut Exp $
|
||||
|
||||
inherit perl-module
|
||||
|
||||
MY_P="${PN}-1.4"
|
||||
DESCRIPTION="Extensible, multi-language source code documentation generator"
|
||||
HOMEPAGE="http://www.naturaldocs.org/"
|
||||
SRC_URI="mirror://sourceforge/naturaldocs/${MY_P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
!<app-doc/NaturalDocs-1.40" # for dosym
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r Styles Info JavaScript
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r Config/*
|
||||
dosym /etc/${PN} /usr/share/${PN}/Config
|
||||
|
||||
perlinfo
|
||||
insinto ${VENDOR_LIB}
|
||||
doins -r Modules/NaturalDocs
|
||||
dodir /usr/share/${PN}/Modules
|
||||
dosym ${VENDOR_LIB}/NaturalDocs /usr/share/${PN}/Modules/NaturalDocs
|
||||
|
||||
exeinto /usr/share/${PN}
|
||||
doexe ${PN}
|
||||
|
||||
# Symlink the Perl script into /usr/bin
|
||||
dodir /usr/bin
|
||||
dosym /usr/share/${PN}/${PN} /usr/bin/${PN}
|
||||
|
||||
# Documentation
|
||||
dohtml -r Help/*
|
||||
dosym /usr/share/doc/${PF}/html /usr/share/${PN}/Help
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/NaturalDocs/NaturalDocs-1.52.ebuild,v 1.8 2012/12/18 16:31:56 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Extensible, multi-language source code documentation generator"
|
||||
HOMEPAGE="http://www.naturaldocs.org/"
|
||||
SRC_URI="mirror://sourceforge/naturaldocs/${P}.zip"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r Styles Info JavaScript
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r Config/*
|
||||
dosym /etc/${PN} /usr/share/${PN}/Config
|
||||
|
||||
perlinfo
|
||||
insinto ${VENDOR_LIB}
|
||||
doins -r Modules/NaturalDocs
|
||||
dodir /usr/share/${PN}/Modules
|
||||
dosym ${VENDOR_LIB}/NaturalDocs /usr/share/${PN}/Modules/NaturalDocs
|
||||
|
||||
exeinto /usr/share/${PN}
|
||||
doexe ${PN}
|
||||
|
||||
# Symlink the Perl script into /usr/bin
|
||||
dodir /usr/bin
|
||||
dosym /usr/share/${PN}/${PN} /usr/bin/${PN}
|
||||
|
||||
# Documentation
|
||||
dohtml -r Help/*
|
||||
dosym /usr/share/doc/${PF}/html /usr/share/${PN}/Help
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e /usr/share/${PN}/Config && ! -L /usr/share/${PN}/Config ]] ; then
|
||||
mkdir -p /etc/${PN}
|
||||
mv /usr/share/${PN}/Config/* /etc/${PN}/
|
||||
rm -rf /usr/share/${PN}/Config
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST bvi-1.3.2.src.tar.gz 170444 SHA256 ff390af1c474bf870b6171332726b93bad8e716ea378827b55d8aae82dee1c84 SHA512 eb8a01602751b61c471207124c90346375ccf34ba85e661143f6da8f113f48070d132e98213484bd16d0b6b4c8d0fa27776d36f18cac21336076ca35bcfcb58c WHIRLPOOL 5dfa13a5fefe5f6df95e0d0c37961b7998c1eb37296b31771c27c5a71346891d8b2f9dff8ae9b737cfb7df585076ec1efbadac7b492bda706a1d36fbb3d3d6f8
|
||||
DIST bvi-1.4.0alpha.src.tar.gz 128821 SHA256 7bd433a9a1e46d79aeabe189899f2c8ff38b321aeeb355c628929c1c9b20779d SHA512 75cf0ff27809e2c4213da72b022e012003d6ef272d734d0c18f03d5cb49bc891b4d3d40a9e6bfff226906062fcd3e319a7503d09409fa2023f5ba1d434e66217 WHIRLPOOL 00ce8428ea4a6a3f268f774d62f1d745bfc39f7eb53171c4778f16b75130502f504f234d754a8b8c8170755c7f69bb9e8704e7a3e66e5a21a1d9a5ec70571b7b
|
||||
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/bvi/bvi-1.3.2.ebuild,v 1.11 2013/01/04 09:55:25 ryao Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="display-oriented editor for binary files, based on the vi texteditor"
|
||||
HOMEPAGE="http://bvi.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/bvi/${P}.src.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
DEPEND="sys-libs/ncurses"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \
|
||||
Makefile.in || die "sed failed in Makefile.in"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --with-ncurses="${EPREFIX}"/usr
|
||||
|
||||
sed -i -e 's:ncurses/term.h:term.h:g' bmore.h || die "sed failed in bmore.h"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstall || die "make install failed"
|
||||
rm -rf "${ED}"/usr/$(get_libdir)/bmore.help
|
||||
dodoc README CHANGES CREDITS bmore.help
|
||||
dohtml -r html/*
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST fb2edit-0.0.7.tar.bz2 222057 SHA256 90a05087d4ffc89ece08b70a416d6dae13a9ba51f9ff3be9c93d9a15d88265bd SHA512 68cfe172bca9b3ffd4d9921b8fbb8b5f38df0f756aa9a58cd3f6b334295484d45528e4e4e6d883597dc13fe2720dd1c0ca275afb5a174bd1431fffe5b990f776 WHIRLPOOL f87b9af0410c4131bd79cab1f4b9363aafe73498b154a64fd3357c9fa8ef3cd26111e14754234bebc5f5ced69c48b5993f8f48c5c3bb7ac044896fc08a01d80e
|
||||
DIST fb2edit-0.0.8.tar.bz2 222684 SHA256 f6f6fe21fb8651f8aaff12bfd923257dab17e64a47557669a2ad93ce22c8ed89 SHA512 05b79c5c7965af410fda335fc6fe2612f541c8bae6241c115affdd33b9375bba5710e689933f1745dbf2c132896a843e532bf62c079f0d646f97bedd0e81a572 WHIRLPOOL 993558bdab1a66295c5189e1c05886caa3e590a9779be876ad6d6f46b11958ff53e2e3db50c018ee63c20e9b2108308c03eb5b5a83f54badf93d99f16b94d1e0
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/fb2edit/fb2edit-0.0.7.ebuild,v 1.6 2013/06/25 12:53:29 ago Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="a WYSIWYG FictionBook (fb2) editor"
|
||||
HOMEPAGE="http://fb2edit.lintest.ru/"
|
||||
SRC_URI="http://lintest.ru/pub/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/libxml2
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtwebkit:4
|
||||
dev-qt/qtxmlpatterns:4"
|
||||
RDEPEND="${DEPEND}
|
||||
x11-themes/hicolor-icon-theme"
|
||||
|
||||
DOCS=( AUTHORS README )
|
||||
|
||||
src_prepare() {
|
||||
# drop -g from CFLAGS
|
||||
sed -i -e '/^add_definitions(-W/s/-g//' CMakeLists.txt || die 'sed failed'
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST vile-9.8g.tgz 2220840 SHA256 7644909e2a64d85c6a3a45d1ad8bb18bce937119507fcc66d705aab8d4522be7 SHA512 e39cbac874083fb49151969323e3fd9ab6b64889c3a311f850b83f5685e7049d22312040e717ae544fc4f0b06c4faba45babccbd2b4817de6f60fcbd031e8ac5 WHIRLPOOL 71fb9dfb11dd6540fc7b2a5ebfff9d62e698ffe1db8c4a827c985c38c04ba288ffd507a566250cb72fc37bde2b1c5e53899db8267a96c6465757ed17d54899b6
|
||||
DIST vile-9.8h.tgz 2257443 SHA256 3408753e7ee73b3cfb1d34c5e7f67ac17ca4239fc273c819200ee9a7df2a2fdd SHA512 15465b75166e4e7f7d0224b1f66a0f0aa15fb5303e97f0881a9da2f662c3551d9c561c6085a102f5d285441dfe4da7d589e072a3497be432a2630427630e17f0 WHIRLPOOL 2507c65e54b37188fcc9112d95cbbe42ee73cf86a9b770b2bc6ed2c0276182bcf4cae5ad92798405f6aa2336e301751146f4947b380a6faa6604398098af617c
|
||||
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vile/vile-9.8k.ebuild,v 1.1 2013/08/27 07:29:33 radhermit Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="VI Like Emacs -- yet another full-featured vi clone"
|
||||
HOMEPAGE="http://invisible-island.net/vile/"
|
||||
SRC_URI="ftp://invisible-island.net/vile/current/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="perl"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2
|
||||
perl? ( dev-lang/perl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
app-admin/eselect-vi"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-9.8h-flex.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-ncurses \
|
||||
$(use_with perl )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc CHANGES* README doc/*.doc
|
||||
dohtml doc/*.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Updating ${EPREFIX}/usr/bin/vi symlink"
|
||||
eselect vi update --if-unset
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
einfo "Updating ${EPREFIX}/usr/bin/vi symlink"
|
||||
eselect vi update --if-unset
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST vile-9.8g.tgz 2220840 SHA256 7644909e2a64d85c6a3a45d1ad8bb18bce937119507fcc66d705aab8d4522be7 SHA512 e39cbac874083fb49151969323e3fd9ab6b64889c3a311f850b83f5685e7049d22312040e717ae544fc4f0b06c4faba45babccbd2b4817de6f60fcbd031e8ac5 WHIRLPOOL 71fb9dfb11dd6540fc7b2a5ebfff9d62e698ffe1db8c4a827c985c38c04ba288ffd507a566250cb72fc37bde2b1c5e53899db8267a96c6465757ed17d54899b6
|
||||
DIST vile-9.8h.tgz 2257443 SHA256 3408753e7ee73b3cfb1d34c5e7f67ac17ca4239fc273c819200ee9a7df2a2fdd SHA512 15465b75166e4e7f7d0224b1f66a0f0aa15fb5303e97f0881a9da2f662c3551d9c561c6085a102f5d285441dfe4da7d589e072a3497be432a2630427630e17f0 WHIRLPOOL 2507c65e54b37188fcc9112d95cbbe42ee73cf86a9b770b2bc6ed2c0276182bcf4cae5ad92798405f6aa2336e301751146f4947b380a6faa6604398098af617c
|
||||
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/xvile/xvile-9.8k.ebuild,v 1.1 2013/08/27 07:32:49 radhermit Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_P="${PN/x/}-${PV}"
|
||||
DESCRIPTION="VI Like Emacs -- yet another full-featured vi clone"
|
||||
HOMEPAGE="http://invisible-island.net/vile/"
|
||||
SRC_URI="ftp://invisible-island.net/vile/current/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="perl"
|
||||
|
||||
RDEPEND="perl? ( dev-lang/perl )
|
||||
=app-editors/vile-${PV}
|
||||
>=x11-libs/libX11-1.0.0
|
||||
>=x11-libs/libXt-1.0.0
|
||||
>=x11-libs/libICE-1.0.0
|
||||
>=x11-libs/libSM-1.0.0
|
||||
>=x11-libs/libXaw-1.0.1
|
||||
>=x11-libs/libXpm-3.5.4.2
|
||||
>=x11-proto/xproto-7.0.4"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/vile-9.8h-flex.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-ncurses \
|
||||
--with-x \
|
||||
$(use_with perl)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin xvile
|
||||
dodoc CHANGES* README doc/*.doc
|
||||
dohtml doc/*.html
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
From 7d3255a18ad845953cc8083371e8623e771ad4f5 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Tue, 27 Aug 2013 12:25:49 -0400
|
||||
Subject: [PATCH] sha: fix strict aliasing warnings
|
||||
|
||||
sha256.c:492:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
|
||||
sha256.c:784:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
|
||||
sha256.c:785:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
crypto/sha256.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/crypto/sha256.c b/crypto/sha256.c
|
||||
index 1a6a243..b1e90b4 100644
|
||||
--- a/crypto/sha256.c
|
||||
+++ b/crypto/sha256.c
|
||||
@@ -489,7 +489,7 @@ SHA256_Final(u_int8_t digest[], SHA256_CTX *context)
|
||||
*context->buffer = 0x80;
|
||||
}
|
||||
/* Set the bit count: */
|
||||
- *(u_int64_t *)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount;
|
||||
+ memcpy (&context->buffer[SHA256_SHORT_BLOCK_LENGTH], &context->bitcount, 8);
|
||||
|
||||
/* Final transform: */
|
||||
SHA256_Transform(context, context->buffer);
|
||||
@@ -781,8 +781,8 @@ SHA512_Last(SHA512_CTX *context)
|
||||
*context->buffer = 0x80;
|
||||
}
|
||||
/* Store the length of input data (in bits): */
|
||||
- *(u_int64_t *)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] = context->bitcount[1];
|
||||
- *(u_int64_t *)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = context->bitcount[0];
|
||||
+ memcpy (&context->buffer[SHA512_SHORT_BLOCK_LENGTH], &context->bitcount[1], 8);
|
||||
+ memcpy (&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8], context->bitcount[0], 8);
|
||||
|
||||
/* Final transform: */
|
||||
SHA512_Transform(context, context->buffer);
|
||||
--
|
||||
1.8.3.2
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/hercules/hercules-3.09.ebuild,v 1.1 2013/08/27 16:29:57 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
DESCRIPTION="Hercules System/370, ESA/390 and zArchitecture Mainframe Emulator"
|
||||
HOMEPAGE="http://www.hercules-390.eu/"
|
||||
SRC_URI="http://downloads.hercules-390.eu/${P}.tar.gz"
|
||||
|
||||
LICENSE="QPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x64-macos ~x86-macos"
|
||||
IUSE="bzip2 custom-cflags +suid"
|
||||
|
||||
RDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-aliasing.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use custom-cflags || strip-flags
|
||||
ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=$(usex bzip2) \
|
||||
econf \
|
||||
$(use_enable bzip2 cckd-bzip2) \
|
||||
$(use_enable bzip2 het-bzip2) \
|
||||
$(use_enable suid setuid-hercifc) \
|
||||
--enable-custom="Gentoo ${PF}.ebuild" \
|
||||
--disable-optimization
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
insinto /usr/share/hercules
|
||||
doins hercules.cnf
|
||||
dodoc README.* RELEASE.NOTES
|
||||
dohtml -r html
|
||||
}
|
@ -0,0 +1,546 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.5.3.ebuild,v 1.1 2013/08/27 23:41:32 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
||||
user udev fcaps readme.gentoo
|
||||
|
||||
BACKPORTS=25d93791
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2
|
||||
${BACKPORTS:+
|
||||
http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
IUSE="accessibility +aio alsa bluetooth +caps +curl debug fdt glusterfs \
|
||||
gtk iscsi +jpeg \
|
||||
kernel_linux kernel_FreeBSD mixemu ncurses opengl +png pulseaudio python \
|
||||
rbd sasl +seccomp sdl selinux smartcard spice static static-softmmu \
|
||||
static-user systemtap tci test +threads tls usbredir +uuid vde +vhost-net \
|
||||
virtfs +vnc xattr xen xfs"
|
||||
|
||||
COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips
|
||||
mipsel mips64 mips64el or32 ppc ppc64 sh4 sh4eb sparc sparc64 s390x unicore32"
|
||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb xtensa xtensaeb"
|
||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 sparc32plus"
|
||||
|
||||
# Setup the default SoftMMU targets, while using the loops
|
||||
# below to setup the other targets.
|
||||
REQUIRED_USE="|| ("
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS}; do
|
||||
IUSE="${IUSE} qemu_softmmu_targets_${target}"
|
||||
REQUIRED_USE="${REQUIRED_USE} qemu_softmmu_targets_${target}"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS}; do
|
||||
IUSE="${IUSE} qemu_user_targets_${target}"
|
||||
REQUIRED_USE="${REQUIRED_USE} qemu_user_targets_${target}"
|
||||
done
|
||||
REQUIRED_USE="${REQUIRED_USE} )"
|
||||
|
||||
# Block USE flag configurations known to not work
|
||||
REQUIRED_USE="${REQUIRED_USE}
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
static? ( static-softmmu static-user )
|
||||
static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk )
|
||||
virtfs? ( xattr )"
|
||||
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
|
||||
sys-apps/pciutils[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.2.0[static-libs(+)] <sys-apps/dtc-1.4.0[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
jpeg? ( virtual/jpeg[static-libs(+)] )
|
||||
ncurses? ( sys-libs/ncurses[static-libs(+)] )
|
||||
png? ( media-libs/libpng[static-libs(+)] )
|
||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
|
||||
seccomp? ( >=sys-libs/libseccomp-1.0.1[static-libs(+)] )
|
||||
spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
|
||||
tls? ( net-libs/gnutls[static-libs(+)] )
|
||||
uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )
|
||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
||||
RDEPEND="!static-softmmu? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
static-user? ( >=dev-libs/glib-2.0[static-libs(+)] )
|
||||
qemu_softmmu_targets_i386? (
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
~sys-firmware/seabios-1.7.2.2
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
qemu_softmmu_targets_x86_64? (
|
||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
||||
~sys-firmware/seabios-1.7.2.2
|
||||
~sys-firmware/sgabios-0.1_pre8
|
||||
~sys-firmware/vgabios-0.7a
|
||||
)
|
||||
accessibility? ( app-accessibility/brltty )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/vte:2.90
|
||||
)
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
opengl? ( virtual/opengl )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sdl? ( media-libs/libsdl[X] )
|
||||
selinux? ( sec-policy/selinux-qemu )
|
||||
smartcard? ( dev-libs/nss !app-emulation/libcacard )
|
||||
spice? ( >=app-emulation/spice-protocol-0.12.3 )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6 )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
=dev-lang/python-2*
|
||||
sys-apps/texinfo
|
||||
virtual/pkgconfig
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
static-softmmu? ( ${LIB_DEPEND} )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)"
|
||||
|
||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img"
|
||||
|
||||
QA_WX_LOAD="usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or32
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-ppc64abi32
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure
|
||||
you have the kernel module loaded before running kvm. The easiest way to
|
||||
ensure that the kernel module is loaded is to load it on boot.\n
|
||||
For AMD CPUs the module is called 'kvm-amd'\n
|
||||
For Intel CPUs the module is called 'kvm-intel'\n
|
||||
Please review /etc/conf.d/modules for how to load these\n\n
|
||||
Make sure your user is in the 'kvm' group\n
|
||||
Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
|
||||
|
||||
qemu_support_kvm() {
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
|
||||
use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
|
||||
use qemu_softmmu_targets_s390x; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup kvm 78
|
||||
|
||||
python_export_best
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
||||
sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
|
||||
Makefile Makefile.target || die
|
||||
|
||||
epatch "${FILESDIR}"/qemu-9999-cflags.patch
|
||||
[[ -n ${BACKPORTS} ]] && \
|
||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
||||
epatch
|
||||
|
||||
# Fix ld and objcopy being called directly
|
||||
tc-export LD OBJCOPY
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function $FUNCNAME "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir=$2
|
||||
local conf_opts audio_opts
|
||||
local static_flag="static-${buildtype}"
|
||||
|
||||
conf_opts="--prefix=/usr"
|
||||
conf_opts+=" --sysconfdir=/etc"
|
||||
conf_opts+=" --libdir=/usr/$(get_libdir)"
|
||||
conf_opts+=" --docdir=/usr/share/doc/${PF}/html"
|
||||
conf_opts+=" --disable-bsd-user"
|
||||
conf_opts+=" --disable-guest-agent"
|
||||
conf_opts+=" --disable-strip"
|
||||
conf_opts+=" --disable-werror"
|
||||
conf_opts+=" --python=${PYTHON}"
|
||||
|
||||
# audio options
|
||||
audio_opts="oss"
|
||||
use alsa && audio_opts="alsa,${audio_opts}"
|
||||
use sdl && audio_opts="sdl,${audio_opts}"
|
||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
||||
|
||||
if [[ ${buildtype} == "user" ]]; then
|
||||
conf_opts+=" --enable-linux-user"
|
||||
conf_opts+=" --disable-system"
|
||||
conf_opts+=" --target-list=${user_targets}"
|
||||
conf_opts+=" --disable-blobs"
|
||||
conf_opts+=" --disable-bluez"
|
||||
conf_opts+=" --disable-curses"
|
||||
conf_opts+=" --disable-kvm"
|
||||
conf_opts+=" --disable-libiscsi"
|
||||
conf_opts+=" --disable-glusterfs"
|
||||
conf_opts+=" $(use_enable seccomp)"
|
||||
conf_opts+=" --disable-sdl"
|
||||
conf_opts+=" --disable-smartcard-nss"
|
||||
conf_opts+=" --disable-tools"
|
||||
conf_opts+=" --disable-vde"
|
||||
fi
|
||||
|
||||
if [[ ${buildtype} == "softmmu" ]]; then
|
||||
conf_opts+=" --disable-linux-user"
|
||||
conf_opts+=" --enable-system"
|
||||
conf_opts+=" --with-system-pixman"
|
||||
conf_opts+=" --target-list=${softmmu_targets}"
|
||||
conf_opts+=" $(use_enable bluetooth bluez)"
|
||||
conf_opts+=" $(use_enable gtk)"
|
||||
use gtk && conf_opts+=" --with-gtkabi=3.0"
|
||||
conf_opts+=" $(use_enable sdl)"
|
||||
conf_opts+=" $(use_enable aio linux-aio)"
|
||||
conf_opts+=" $(use_enable accessibility brlapi)"
|
||||
conf_opts+=" $(use_enable caps cap-ng)"
|
||||
conf_opts+=" $(use_enable curl)"
|
||||
conf_opts+=" $(use_enable fdt)"
|
||||
conf_opts+=" $(use_enable glusterfs)"
|
||||
conf_opts+=" $(use_enable iscsi libiscsi)"
|
||||
conf_opts+=" $(use_enable jpeg vnc-jpeg)"
|
||||
conf_opts+=" $(use_enable kernel_linux kvm)"
|
||||
conf_opts+=" $(use_enable kernel_linux nptl)"
|
||||
conf_opts+=" $(use_enable ncurses curses)"
|
||||
conf_opts+=" $(use_enable opengl glx)"
|
||||
conf_opts+=" $(use_enable png vnc-png)"
|
||||
conf_opts+=" $(use_enable rbd)"
|
||||
conf_opts+=" $(use_enable sasl vnc-sasl)"
|
||||
conf_opts+=" $(use_enable seccomp)"
|
||||
conf_opts+=" $(use_enable smartcard smartcard-nss)"
|
||||
conf_opts+=" $(use_enable spice)"
|
||||
conf_opts+=" $(use_enable tls vnc-tls)"
|
||||
conf_opts+=" $(use_enable tls vnc-ws)"
|
||||
conf_opts+=" $(use_enable usbredir usb-redir)"
|
||||
conf_opts+=" $(use_enable uuid)"
|
||||
conf_opts+=" $(use_enable vde)"
|
||||
conf_opts+=" $(use_enable vhost-net)"
|
||||
conf_opts+=" $(use_enable virtfs)"
|
||||
conf_opts+=" $(use_enable vnc)"
|
||||
conf_opts+=" $(use_enable xattr attr)"
|
||||
conf_opts+=" $(use_enable xen)"
|
||||
conf_opts+=" $(use_enable xen xen-pci-passthrough)"
|
||||
conf_opts+=" $(use_enable xfs xfsctl)"
|
||||
use mixemu && conf_opts+=" --enable-mixemu"
|
||||
conf_opts+=" --audio-drv-list=${audio_opts}"
|
||||
conf_opts+=" --enable-migration-from-qemu-kvm"
|
||||
fi
|
||||
|
||||
conf_opts+=" $(use_enable debug debug-info)"
|
||||
conf_opts+=" $(use_enable debug debug-tcg)"
|
||||
conf_opts+=" --enable-docs"
|
||||
conf_opts+=" $(use_enable tci tcg-interpreter)"
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts="${conf_opts} --enable-trace-backend=dtrace"
|
||||
|
||||
# Add support for static builds
|
||||
use ${static_flag} && conf_opts="${conf_opts} --static --disable-pie"
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if ! use ${static_flag} && gcc-specs-pie; then
|
||||
conf_opts="${conf_opts} --enable-pie"
|
||||
fi
|
||||
|
||||
einfo "./configure ${conf_opts}"
|
||||
cd ${builddir}
|
||||
../configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
${conf_opts} \
|
||||
|| die "configure failed"
|
||||
|
||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
||||
# host USB devices yet
|
||||
use kernel_FreeBSD && \
|
||||
sed -E -e "s|^(HOST_USB=)bsd|\1stub|" -i "${S}"/config-host.mak
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
softmmu_targets=
|
||||
user_targets=
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
use "qemu_softmmu_targets_${target}" && \
|
||||
softmmu_targets="${softmmu_targets},${target}-softmmu"
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
use "qemu_user_targets_${target}" && \
|
||||
user_targets="${user_targets},${target}-linux-user"
|
||||
done
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && \
|
||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
||||
|
||||
[[ -n ${user_targets} ]] && \
|
||||
einfo "Building the following user targets: ${user_targets}"
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
mkdir "${S}/softmmu-build"
|
||||
qemu_src_configure "softmmu" "${S}/softmmu-build"
|
||||
fi
|
||||
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
mkdir "${S}/user-build"
|
||||
qemu_src_configure "user" "${S}/user-build"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/softmmu-build"
|
||||
emake -j1 check
|
||||
emake -j1 check-report.html
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/QMP/qmp.py"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/kvm_stat"
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/QMP/qmp-shell"
|
||||
python_doscript "${S}/QMP/qemu-ga-client"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets
|
||||
newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
if use test; then
|
||||
dohtml check-report.html
|
||||
fi
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_dorules "${FILESDIR}"/65-kvm.rules
|
||||
fi
|
||||
|
||||
if use qemu_softmmu_targets_x86_64 ; then
|
||||
newbin "${FILESDIR}/qemu-kvm-1.4" qemu-kvm
|
||||
ewarn "The deprecated '/usr/bin/kvm' symlink is no longer installed"
|
||||
ewarn "You should use '/usr/bin/qemu-kvm', you may need to edit"
|
||||
ewarn "your libvirt configs or other wrappers for ${PN}"
|
||||
elif use x86 || use amd64; then
|
||||
elog "You disabled QEMU_SOFTMMU_TARGETS=x86_64, this disables install"
|
||||
elog "of the /usr/bin/qemu-kvm script."
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
# Remove the docdir placed qmp-commands.txt
|
||||
mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/QMP/"
|
||||
|
||||
cd "${S}"
|
||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
dodoc QMP/qmp-commands.txt QMP/qmp-events.txt QMP/qmp-spec.txt
|
||||
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
rm "${ED}/usr/share/qemu/bios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the vgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
|
||||
qemu_support_kvm && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local virtfs_caps=
|
||||
|
||||
if qemu_support_kvm; then
|
||||
readme.gentoo_print_elog
|
||||
ewarn "Migration from qemu-kvm instances and loading qemu-kvm created"
|
||||
ewarn "save states will be removed in the next release (1.6.x)"
|
||||
ewarn
|
||||
ewarn "It is recommended that you migrate any VMs that may be running"
|
||||
ewarn "on qemu-kvm to a host with a newer qemu and regenerate"
|
||||
ewarn "any saved states with a newer qemu."
|
||||
ewarn
|
||||
ewarn "qemu-kvm was the primary qemu provider in Gentoo through 1.2.x"
|
||||
fi
|
||||
|
||||
virtfs_caps+="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,"
|
||||
virtfs_caps+="cap_setgid,cap_mknod,cap_setuid"
|
||||
|
||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
||||
use virtfs && fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
if has_version sys-firmware/seabios[binary]; then
|
||||
echo " USE=binary"
|
||||
else
|
||||
echo " USE=''"
|
||||
fi
|
||||
echo " $(best_version sys-firmware/vgabios)"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST virt-manager-0.10.0-1cd29748.tar.xz 11716 SHA256 a9293c2fcadd230cdfb13977c7c5520c0f74e38cebd199e8de2cce68e5b0efd3 SHA512 87312537a05a99c7df4c3fcf47bc4820a3e8b6c59bd39adf7aa803383bc3f69aa615dcada71b82b51bb92c83daaa7cb528279dcb9b6f36247d6e24665376a086 WHIRLPOOL e86c0dc6ae774c047bb130ecef618a4583ac76bb265b08c45d41ee1d8e10a128a6a3a1bf7e02827f70201b7ec973e7e95756cc4f11aece7d6bda87e0085bfa0d
|
||||
DIST virt-manager-0.10.0.tar.gz 2548256 SHA256 59bd8f316917228885261a1ecbeb9aadbb0b0e02cdf5fc974c78113c5814346d SHA512 13eaed3645ccee79da6a972e02bb182b5bd24981ff55b6322b8aaf2689fab520f22f1e729bb5f5287d66526252a31a531c6595ee27489a52fb4829ae18cf8204 WHIRLPOOL e3e34506171217c63e5e5337157f75006554afb156a430f2ee7f11e354d0c490adc371174b342efb4cc90ab0686d2c74f42b4d52c55c0a9221868670980fdbb3
|
||||
DIST virt-manager-0.9.4.tar.gz 1709809 SHA256 dc8c553beeb15bb30cd5517b2105bcc47cf482b03523e522733c52b0e5df0fc0 SHA512 f70f4c4f0d5b282d8126e495a2da8bcb6afe0bcbbae493d4abb46c3a1802f5ce36f477125421cb577ab2f64bae522db4d7c03558fa7997d74f5060b29b98c53a WHIRLPOOL 00a213515f23858278f47069102cf82eb053255b81a9e128fd666dbb17f6d9e7ce2365b4370fa3b733406c07599fe5c0dfa076a6555c48dd62d1178b679acedb
|
||||
DIST virt-manager-0.9.5.tar.gz 1773882 SHA256 5d2afb282fb8c4401f9e203dcb41a62746b9a909258d440d508219bc1a33803d SHA512 a1ecf6fe9f3ddacfe43006cfc388d9324c457be91767792119d8a112b190739e3274dfeb7cffd28534b86a33f86079c569d8337eeddaa9d60ed69f82d8a4627f WHIRLPOOL d15728e55c0a3e361b42b6e615bed50b8870c436a12ae0ececcd80d47d0482ea01c33f5497672e050aa6465f9b031948bf92925710c4340837d789d4634506c8
|
||||
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-manager/virt-manager-0.10.0-r1.ebuild,v 1.1 2013/08/27 13:16:36 cardoe Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
BACKPORTS=1cd29748
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit eutils gnome2 distutils-r1
|
||||
|
||||
DESCRIPTION="A graphical tool for administering virtual machines"
|
||||
HOMEPAGE="http://virt-manager.org"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz
|
||||
${BACKPORTS+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="gnome-keyring policykit sasl"
|
||||
|
||||
RDEPEND="!app-emulation/virtinst
|
||||
x11-libs/gtk+:3[introspection]
|
||||
>=app-emulation/libvirt-0.7.0[python,${PYTHON_USEDEP}]
|
||||
>=app-emulation/libvirt-glib-0.0.9[introspection,python,${PYTHON_USEDEP}]
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||||
dev-python/ipaddr[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/urlgrabber[${PYTHON_USEDEP}]
|
||||
gnome-base/dconf
|
||||
>=net-libs/gtk-vnc-0.3.8[gtk3,introspection,python,${PYTHON_USEDEP}]
|
||||
net-misc/spice-gtk[gtk3,introspection,python,sasl?,${PYTHON_USEDEP}]
|
||||
x11-libs/vte:2.90[introspection]
|
||||
gnome-keyring? ( dev-python/gnome-keyring-python )
|
||||
policykit? ( sys-auth/polkit[introspection] )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
dev-util/intltool"
|
||||
|
||||
DOCS=( README NEWS )
|
||||
|
||||
python_prepare_all() {
|
||||
epatch_user
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
distutils-r1_python_compile() {
|
||||
local defgraphics=
|
||||
|
||||
esetup.py configure \
|
||||
--qemu-user=qemu \
|
||||
--default-graphics=spice
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
python_fix_shebang "${ED}/usr/share/virt-manager/virt-clone"
|
||||
python_fix_shebang "${ED}/usr/share/virt-manager/virt-convert"
|
||||
python_fix_shebang "${ED}/usr/share/virt-manager/virt-image"
|
||||
python_fix_shebang "${ED}/usr/share/virt-manager/virt-install"
|
||||
python_fix_shebang "${ED}/usr/share/virt-manager/virt-manager"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_pkg_preinst
|
||||
|
||||
cd "${ED}"
|
||||
export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/beancounter/beancounter-0.8.10-r1.ebuild,v 1.1 2013/08/27 16:33:08 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Finance performance calculation engine with full data acquisition and SQL support"
|
||||
HOMEPAGE="http://dirk.eddelbuettel.com/code/beancounter.html"
|
||||
SRC_URI="http://eddelbuettel.com/dirk/code/${PN}/${PN}_${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="mysql postgres sqlite"
|
||||
|
||||
DEPEND="dev-perl/DateManip
|
||||
dev-perl/Statistics-Descriptive
|
||||
dev-perl/Finance-YahooQuote
|
||||
dev-perl/libwww-perl
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
postgres? ( dev-perl/DBD-Pg )"
|
||||
|
||||
RDEPEND="${DEPEND} dev-perl/DBI"
|
||||
mydoc="README example.beancounterrc beancounter_*.txt "
|
||||
|
||||
src_install() {
|
||||
perl-module_src_install
|
||||
# rm unwanted READMEs
|
||||
rm "${D}"usr/share/doc/${PF}/{README.Debian,README.non-gnu} || die
|
||||
}
|
@ -0,0 +1,658 @@
|
||||
diff -rupN base/configure.ac mod/configure.ac
|
||||
--- base/configure.ac 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/configure.ac 2013-03-21 16:25:07.218419985 +0100
|
||||
@@ -383,7 +383,7 @@ AC_CHECK_HEADERS(linux/input.h,[
|
||||
dnl check if hiddev is available
|
||||
AC_CHECK_HEADERS([linux/types.h])
|
||||
AC_CHECK_HEADERS([linux/hiddev.h],[
|
||||
- possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini)"
|
||||
+ possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini) (zotac)"
|
||||
AC_MSG_CHECKING(for HIDDEV_FLAG_UREF support)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <linux/types.h>
|
||||
@@ -393,7 +393,7 @@ AC_CHECK_HEADERS([linux/hiddev.h],[
|
||||
]])],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_LINUX_HIDDEV_FLAG_UREF)
|
||||
- possible_drivers="${possible_drivers} (samsung) (sb0540)"
|
||||
+ possible_drivers="${possible_drivers} (samsung) (sb0540) (zotac)"
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
@@ -446,7 +446,7 @@ AC_ARG_WITH(driver,
|
||||
srm7500libusb, tekram,
|
||||
tekram_bt829, tira, tira_raw, ttusbir,
|
||||
tuxbox, tvbox, udp, uirt2, uirt2_raw,
|
||||
- usb_uirt_raw, usbx, wpc8769l],
|
||||
+ usb_uirt_raw, usbx, wpc8769l, zotac],
|
||||
driver=${withval},
|
||||
driver="unset"
|
||||
)
|
||||
@@ -464,6 +464,7 @@ portaudio_lib=""
|
||||
alsa_lib=""
|
||||
atilibusb_lib=""
|
||||
atwf83_lib=""
|
||||
+zotac_lib=""
|
||||
awlibusb_lib=""
|
||||
dfclibusb_lib=""
|
||||
srm7500libusb_lib=""
|
||||
@@ -683,6 +684,10 @@ if test "$driver" = "userspace" -o "$dri
|
||||
usbx)
|
||||
hw_module="${hw_module} hw_usbx.o serial.o"
|
||||
;;
|
||||
+ zotac)
|
||||
+ hw_module="${hw_module} hw_zotac.o"
|
||||
+ zotac_lib=-lpthread
|
||||
+ ;;
|
||||
esac
|
||||
done
|
||||
#remove duplicates
|
||||
@@ -733,6 +738,14 @@ if test "$driver" = "alsa_usb"; then
|
||||
lircd_conf="creative/lircd.conf.alsa_usb"
|
||||
fi
|
||||
|
||||
+if test "$driver" = "zotac"; then
|
||||
+ lirc_driver="$driver"
|
||||
+ hw_module="hw_zotac.o"
|
||||
+ HW_DEFAULT="hw_zotac"
|
||||
+ lircd_conf="zotac/lircd.conf.zotac"
|
||||
+ zotac_lib=-lpthread
|
||||
+fi
|
||||
+
|
||||
if test "$driver" = "animax"; then
|
||||
lirc_driver="lirc_dev lirc_serial"
|
||||
lircd_conf="animax/lircd.conf.animax"
|
||||
@@ -1499,6 +1512,7 @@ if test "$lirc_driver" = "none" || \
|
||||
test "$lirc_driver" = "macmini" || \
|
||||
test "$lirc_driver" = "samsung" || \
|
||||
test "$lirc_driver" = "sb0540" || \
|
||||
+ test "$lirc_driver" = "zotac" || \
|
||||
test "$lirc_driver" = "srm7500libusb" || \
|
||||
test "$lirc_driver" = "userspace"; then
|
||||
lirc_driver=
|
||||
@@ -1669,7 +1683,7 @@ if ! echo ${hw_module}|grep " receive.o"
|
||||
receive="receive.o"
|
||||
fi
|
||||
|
||||
-hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib}"
|
||||
+hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib} ${zotac_lib}"
|
||||
|
||||
dnl tell the Makefiles what we decided
|
||||
AC_SUBST(daemon)
|
||||
diff -rupN base/daemons/Makefile.am mod/daemons/Makefile.am
|
||||
--- base/daemons/Makefile.am 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/daemons/Makefile.am 2013-03-21 16:25:40.488790784 +0100
|
||||
@@ -58,7 +58,8 @@ EXTRA_libhw_module_a_SOURCES = \
|
||||
hw_usbx.c hw_usbx.h \
|
||||
receive.c receive.h \
|
||||
transmit.c transmit.h \
|
||||
- serial.c serial.h
|
||||
+ serial.c serial.h \
|
||||
+ hw_zotac.c
|
||||
|
||||
libhw_module_a_LIBADD = @hw_module@
|
||||
libhw_module_a_DEPENDENCIES = @hw_module@
|
||||
diff -rupN base/daemons/hw-types.c mod/daemons/hw-types.c
|
||||
--- base/daemons/hw-types.c 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/daemons/hw-types.c 2013-03-21 16:26:38.913200218 +0100
|
||||
@@ -59,6 +59,7 @@ extern struct hardware hw_uirt2;
|
||||
extern struct hardware hw_uirt2_raw;
|
||||
extern struct hardware hw_usb_uirt_raw;
|
||||
extern struct hardware hw_usbx;
|
||||
+extern struct hardware hw_zotac;
|
||||
|
||||
#ifndef HW_DEFAULT
|
||||
# define HW_DEFAULT hw_default
|
||||
@@ -160,6 +161,7 @@ struct hardware *hw_list[] = {
|
||||
#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
|
||||
&hw_samsung,
|
||||
&hw_sb0540,
|
||||
+ &hw_zotac,
|
||||
#endif
|
||||
&hw_silitek,
|
||||
#ifdef HAVE_LIBUSB
|
||||
diff -rupN base/daemons/hw_zotac.c mod/daemons/hw_zotac.c
|
||||
--- base/daemons/hw_zotac.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ mod/daemons/hw_zotac.c 2013-03-21 16:31:06.989272556 +0100
|
||||
@@ -0,0 +1,429 @@
|
||||
+/****************************************************************************
|
||||
+ ** hw_zotac.c *************************************************************
|
||||
+ ****************************************************************************
|
||||
+ *
|
||||
+ * Lirc driver for Zotac remote
|
||||
+ *
|
||||
+ * Copyright (C) 2010 Rainer Hochecker
|
||||
+ *
|
||||
+ * Distribute under GPL version 2 or later.
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+# include <config.h>
|
||||
+#endif
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+#include <pthread.h>
|
||||
+#include <sys/fcntl.h>
|
||||
+#include <signal.h>
|
||||
+#include <linux/hiddev.h>
|
||||
+#include <sys/ioctl.h>
|
||||
+#include "hardware.h"
|
||||
+#include "ir_remote.h"
|
||||
+#include "lircd.h"
|
||||
+
|
||||
+enum {
|
||||
+ RPT_NO = 0,
|
||||
+ RPT_YES = 1,
|
||||
+};
|
||||
+
|
||||
+static int zotac_init();
|
||||
+static int zotac_deinit();
|
||||
+static char *zotac_rec(struct ir_remote *remotes);
|
||||
+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
|
||||
+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp);
|
||||
+static void *zotac_repeat();
|
||||
+static int zotac_getcode();
|
||||
+
|
||||
+/** Max number of repetitions */
|
||||
+const unsigned max_repeat_count = 500;
|
||||
+/** Code that triggers key release */
|
||||
+const unsigned release_code = 0x00000000;
|
||||
+/** Code that triggers device remove */
|
||||
+const unsigned remove_code =0x00FFFFFF;
|
||||
+/** Time to wait before first repetition */
|
||||
+const unsigned repeat_time1_us = 500000;
|
||||
+/** Time to wait between two repetitions */
|
||||
+const unsigned repeat_time2_us = 100000;
|
||||
+/** Pipe between main thread and repetition thread */
|
||||
+static int fd_pipe[2] = { -1, -1 };
|
||||
+
|
||||
+/** Thread that simulates repetitions */
|
||||
+static pthread_t repeat_thread;
|
||||
+/** File descriptor for the real device */
|
||||
+static int fd_hidraw;
|
||||
+
|
||||
+const int main_code_length = 32;
|
||||
+static signed int main_code = 0;
|
||||
+static struct timeval start, end, last;
|
||||
+static int repeat_state = RPT_NO;
|
||||
+static int error_state = 0;
|
||||
+static int probe_code = 0;
|
||||
+
|
||||
+#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
|
||||
+/* Zotac USB iR Receiver */
|
||||
+struct hardware hw_zotac = {
|
||||
+ "/dev/usb/hiddev0", /* "device" */
|
||||
+ -1, /* fd (device) */
|
||||
+ LIRC_CAN_REC_LIRCCODE, /* features */
|
||||
+ 0, /* send_mode */
|
||||
+ LIRC_MODE_LIRCCODE, /* rec_mode */
|
||||
+ 32, /* code_length */
|
||||
+ zotac_init, /* init_func */
|
||||
+ zotac_deinit, /* deinit_func */
|
||||
+ NULL, /* send_func */
|
||||
+ zotac_rec, /* rec_func */
|
||||
+ zotac_decode, /* decode_func */
|
||||
+ NULL, /* ioctl_func */
|
||||
+ NULL, /* readdata */
|
||||
+ "zotac" /* name */
|
||||
+};
|
||||
+#endif
|
||||
+
|
||||
+static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
|
||||
+ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp)
|
||||
+{
|
||||
+ LOGPRINTF(1, "zotac_decode");
|
||||
+
|
||||
+ if (!map_code(remote, prep, codep, postp, 0, 0, main_code_length, main_code, 0, 0)) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ map_gap(remote, &start, &last, 0, repeat_flagp, min_remaining_gapp, max_remaining_gapp);
|
||||
+ /* override repeat */
|
||||
+ *repeat_flagp = repeat_state;
|
||||
+
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+static int zotac_getcode() {
|
||||
+
|
||||
+ ssize_t rd;
|
||||
+ struct hiddev_usage_ref uref;
|
||||
+ struct hiddev_report_info rinfo;
|
||||
+ struct hiddev_field_info finfo;
|
||||
+ int shift = 0;
|
||||
+
|
||||
+ rd = read(fd_hidraw, &uref, sizeof(uref));
|
||||
+ if (rd < 0) {
|
||||
+ logprintf(LOG_ERR, "error reading '%s'", hw.device);
|
||||
+ logperror(LOG_ERR, NULL);
|
||||
+ zotac_deinit();
|
||||
+ error_state = 1;
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ if (uref.field_index == HID_FIELD_INDEX_NONE) {
|
||||
+ /*
|
||||
+ * we get this when the new report has been send from
|
||||
+ * device at this point we have the uref structure
|
||||
+ * prefilled with correct report type and id
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+ switch (uref.report_id) {
|
||||
+ case 1: /* USB standard keyboard usage page */
|
||||
+ {
|
||||
+ /* This page reports cursor keys */
|
||||
+ LOGPRINTF(3, "Keyboard (standard)\n");
|
||||
+
|
||||
+ /* check for special codes */
|
||||
+ uref.field_index = 0;
|
||||
+ uref.usage_index = 1;
|
||||
+ /* fetch the usage code for given indexes */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
|
||||
+ /* fetch the value from report */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
|
||||
+
|
||||
+ if (uref.value)
|
||||
+ shift = 1;
|
||||
+
|
||||
+ /* populate required field number */
|
||||
+ uref.field_index = 1;
|
||||
+ uref.usage_index = 0;
|
||||
+ /* fetch the usage code for given indexes */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
|
||||
+ /* fetch the value from report */
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
|
||||
+ /* now we have the key */
|
||||
+
|
||||
+ LOGPRINTF(3, "usage: %x value: %x shift: %d\n",uref.usage_code, uref.value, shift);
|
||||
+
|
||||
+ /* now we have the key */
|
||||
+ if (uref.value) {
|
||||
+ probe_code = (uref.usage_code | uref.value);
|
||||
+ if (shift)
|
||||
+ probe_code |= 0x10000000;
|
||||
+ LOGPRINTF(3, "Main code 1: %x\n", probe_code);
|
||||
+ return 1;
|
||||
+ }
|
||||
+ else {
|
||||
+ LOGPRINTF(3, "rel button\n");
|
||||
+ probe_code = release_code;
|
||||
+ return 2;
|
||||
+ }
|
||||
+ }
|
||||
+ break;
|
||||
+
|
||||
+ case 2:
|
||||
+ case 3: /* USB generic desktop usage page */
|
||||
+ case 4:
|
||||
+ {
|
||||
+ /* This page reports power key
|
||||
+ * (via SystemControl SLEEP)
|
||||
+ */
|
||||
+ LOGPRINTF(3, "Generic desktop (standard)\n");
|
||||
+
|
||||
+
|
||||
+ /* traverse report descriptor */
|
||||
+ rinfo.report_type = HID_REPORT_TYPE_INPUT;
|
||||
+ rinfo.report_id = HID_REPORT_ID_FIRST;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+
|
||||
+ unsigned int i,j;
|
||||
+ while (rd >= 0) {
|
||||
+ for (i = 0; i < rinfo.num_fields; i++) {
|
||||
+ finfo.report_type = rinfo.report_type;
|
||||
+ finfo.report_id = rinfo.report_id;
|
||||
+ finfo.field_index = i;
|
||||
+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
|
||||
+ for (j = 0; j < finfo.maxusage; j++) {
|
||||
+ uref.field_index = i;
|
||||
+ uref.usage_index = j;
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
|
||||
+
|
||||
+ if (uref.value != 0) {
|
||||
+ LOGPRINTF(3, "field: %d, idx: %d, usage: %x value: %x\n",i, j, uref.usage_code, uref.value);
|
||||
+ probe_code = uref.usage_code;
|
||||
+ return 1;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ rinfo.report_id |= HID_REPORT_ID_NEXT;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+ }
|
||||
+ return 2;
|
||||
+ }
|
||||
+ break;
|
||||
+ default:
|
||||
+ /* Unknown/unsupported report id.
|
||||
+ * Should not happen because remaining reports
|
||||
+ * from report descriptor seem to be unused by remote.
|
||||
+ */
|
||||
+ logprintf(LOG_ERR, "Unexpected report id %d", uref.report_id);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ else {
|
||||
+ /* This page reports power key
|
||||
+ * (via SystemControl SLEEP)
|
||||
+ */
|
||||
+ LOGPRINTF(3, "Same Event ...\n");
|
||||
+
|
||||
+ /* traverse report descriptor */
|
||||
+ rinfo.report_type = HID_REPORT_TYPE_INPUT;
|
||||
+ rinfo.report_id = HID_REPORT_ID_FIRST;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+
|
||||
+ unsigned int i,j;
|
||||
+ while (rd >= 0) {
|
||||
+ for (i = 0; i < rinfo.num_fields; i++) {
|
||||
+ finfo.report_type = rinfo.report_type;
|
||||
+ finfo.report_id = rinfo.report_id;
|
||||
+ finfo.field_index = i;
|
||||
+ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
|
||||
+ for (j = 0; j < finfo.maxusage; j++) {
|
||||
+ uref.field_index = i;
|
||||
+ uref.usage_index = j;
|
||||
+ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
|
||||
+ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
|
||||
+
|
||||
+ if (uref.value != 0) {
|
||||
+ LOGPRINTF(3, "usage: %x value: %x\n",uref.usage_code, uref.value);
|
||||
+ //probe_code = uref.usage_code;
|
||||
+ return 0;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ rinfo.report_id |= HID_REPORT_ID_NEXT;
|
||||
+ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
|
||||
+ }
|
||||
+ return 2;
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static int zotac_init()
|
||||
+{
|
||||
+ logprintf(LOG_INFO, "zotac initializing '%s'", hw.device);
|
||||
+ if ((fd_hidraw = open(hw.device, O_RDONLY)) < 0) {
|
||||
+ logprintf(LOG_ERR, "unable to open '%s'", hw.device);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ int flags = HIDDEV_FLAG_UREF | HIDDEV_FLAG_REPORT;
|
||||
+ if (ioctl(fd_hidraw, HIDIOCSFLAG, &flags)) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ hw.fd = fd_hidraw;
|
||||
+
|
||||
+ /* Create pipe so that events sent by the repeat thread will
|
||||
+ trigger main thread */
|
||||
+ if (pipe(fd_pipe) != 0) {
|
||||
+ logperror(LOG_ERR, "couldn't open pipe");
|
||||
+ close(fd_hidraw);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ hw.fd = fd_pipe[0];
|
||||
+ /* Create thread to simulate repetitions */
|
||||
+ if (pthread_create(&repeat_thread, NULL, zotac_repeat, NULL)) {
|
||||
+ logprintf(LOG_ERR, "Could not create \"repeat thread\"");
|
||||
+ return 0;
|
||||
+ }
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+static int zotac_deinit()
|
||||
+{
|
||||
+ pthread_cancel(repeat_thread);
|
||||
+ if (fd_hidraw != -1) {
|
||||
+ // Close device if it is open
|
||||
+ logprintf(LOG_INFO, "closing '%s'", hw.device);
|
||||
+ close(fd_hidraw);
|
||||
+ fd_hidraw = -1;
|
||||
+ }
|
||||
+ // Close pipe input
|
||||
+ if (fd_pipe[1] >= 0) {
|
||||
+ close(fd_pipe[1]);
|
||||
+ fd_pipe[1] = -1;
|
||||
+ }
|
||||
+ // Close pipe output
|
||||
+ if (fd_pipe[0] >= 0) {
|
||||
+ close(fd_pipe[0]);
|
||||
+ fd_pipe[0] = -1;
|
||||
+ }
|
||||
+ hw.fd = -1;
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+/**
|
||||
+ * Runtime that reads device, forwards codes to main thread
|
||||
+ * and simulates repetitions.
|
||||
+ */
|
||||
+static void *zotac_repeat()
|
||||
+{
|
||||
+ int repeat_count = 0;
|
||||
+ unsigned current_code;
|
||||
+ int ret;
|
||||
+ int sel;
|
||||
+ fd_set files;
|
||||
+ struct timeval delay;
|
||||
+ int pressed = 0;
|
||||
+ int fd = fd_pipe[1];
|
||||
+
|
||||
+ while (1) {
|
||||
+ // Initialize set to monitor device's events
|
||||
+ FD_ZERO(&files);
|
||||
+ FD_SET(fd_hidraw, &files);
|
||||
+ if (pressed) {
|
||||
+ sel = select(FD_SETSIZE, &files, NULL, NULL, &delay);
|
||||
+ } else {
|
||||
+ sel = select(FD_SETSIZE, &files, NULL, NULL, NULL);
|
||||
+ }
|
||||
+
|
||||
+ switch (sel) {
|
||||
+ case 1:
|
||||
+ // Data ready in device's file
|
||||
+ ret = zotac_getcode();
|
||||
+
|
||||
+ if (ret < 0) {
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) Could not read %s", __FUNCTION__, hw.device);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ if (ret == 1) {
|
||||
+ // Key code : forward it to main thread
|
||||
+ pressed = 1;
|
||||
+ repeat_count = 0;
|
||||
+ delay.tv_sec = 0;
|
||||
+ delay.tv_usec = repeat_time1_us;
|
||||
+ current_code = probe_code;
|
||||
+ } else if (ret == 2) {
|
||||
+ // Release code : stop repetitions
|
||||
+ pressed = 0;
|
||||
+ current_code = release_code;
|
||||
+ } else if (ret == 0) {
|
||||
+ continue;
|
||||
+ }
|
||||
+ break;
|
||||
+ case 0:
|
||||
+ repeat_count++;
|
||||
+ if (repeat_count >= max_repeat_count) {
|
||||
+ // Too many repetitions, something must have gone wrong
|
||||
+ logprintf(LOG_ERR,"(%s) too many repetitions", __FUNCTION__);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ // Timeout : send current_code again to main
|
||||
+ // thread to simulate repetition
|
||||
+ delay.tv_sec = 0;
|
||||
+ delay.tv_usec = repeat_time2_us;
|
||||
+ break;
|
||||
+ default:
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) select() failed", __FUNCTION__);
|
||||
+ goto exit_loop;
|
||||
+ }
|
||||
+ // Send code to main thread through pipe
|
||||
+ write(fd, ¤t_code, sizeof(current_code));
|
||||
+ }
|
||||
+exit_loop:
|
||||
+
|
||||
+ // Wake up main thread with special key code
|
||||
+ current_code = remove_code;
|
||||
+ write(fd, ¤t_code, sizeof(current_code));
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
+/*
|
||||
+* Aureal Technology ATWF@83 cheap remote
|
||||
+* specific code.
|
||||
+*/
|
||||
+
|
||||
+static char *zotac_rec(struct ir_remote *remotes)
|
||||
+{
|
||||
+ unsigned ev;
|
||||
+ int rd;
|
||||
+ last = end;
|
||||
+ gettimeofday(&start, NULL);
|
||||
+ rd = read(hw.fd, &ev, sizeof(ev));
|
||||
+
|
||||
+ if (rd == -1) {
|
||||
+ // Error
|
||||
+ logprintf(LOG_ERR, "(%s) could not read pipe", __FUNCTION__);
|
||||
+ zotac_deinit();
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ if (ev == release_code) {
|
||||
+ // Release code
|
||||
+ main_code = 0;
|
||||
+ return 0;
|
||||
+ } else if (ev == remove_code) {
|
||||
+ // Device has been removed
|
||||
+ zotac_deinit();
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ LOGPRINTF(1, "zotac : %x", ev);
|
||||
+ // Record the code and check for repetition
|
||||
+ if (main_code == ev) {
|
||||
+ repeat_state = RPT_YES;
|
||||
+ } else {
|
||||
+ main_code = ev;
|
||||
+ repeat_state = RPT_NO;
|
||||
+ }
|
||||
+ gettimeofday(&end, NULL);
|
||||
+ return decode_all(remotes);
|
||||
+}
|
||||
diff -rupN base/remotes/zotac/lircd.conf.zotac mod/remotes/zotac/lircd.conf.zotac
|
||||
--- base/remotes/zotac/lircd.conf.zotac 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ mod/remotes/zotac/lircd.conf.zotac 2013-03-21 16:31:31.343367869 +0100
|
||||
@@ -0,0 +1,77 @@
|
||||
+
|
||||
+# Please make this file available to others
|
||||
+# by sending it to <lirc@bartelmus.de>
|
||||
+#
|
||||
+# this config file was automatically generated
|
||||
+# using lirc-0.9.1-git(zotac) on Mon Apr 2 14:10:29 2012
|
||||
+#
|
||||
+# contributed by
|
||||
+#
|
||||
+# brand: zotac.conf
|
||||
+# model no. of remote control:
|
||||
+# devices being controlled by this remote:
|
||||
+#
|
||||
+
|
||||
+begin remote
|
||||
+
|
||||
+ name zotac.conf
|
||||
+ bits 32
|
||||
+ eps 30
|
||||
+ aeps 100
|
||||
+
|
||||
+ one 0 0
|
||||
+ zero 0 0
|
||||
+ gap 100123
|
||||
+ min_repeat 9
|
||||
+# suppress_repeat 9
|
||||
+# uncomment to suppress unwanted repeats
|
||||
+# toggle_bit_mask 0x7004F
|
||||
+
|
||||
+ begin codes
|
||||
+ KEY_SLEEP 0x00010082
|
||||
+ KEY_WAKEUP 0x00010083
|
||||
+ KEY_RECORD 0x000C00B2
|
||||
+ KEY_PAUSE 0x000C00B1
|
||||
+ KEY_STOP 0x000C00B7
|
||||
+ KEY_REWIND 0x000C00B4
|
||||
+ KEY_PLAY 0x000C00B0
|
||||
+ KEY_FORWARD 0x000C00B3
|
||||
+ KEY_LEFTSHIFT 0x000C00B6
|
||||
+ KEY_RIGHTSHIFT 0x000C00B5
|
||||
+ KEY_BACK 0x000C0224
|
||||
+ KEY_INFO 0x000C0209
|
||||
+ KEY_MENU 0xFFBC000D
|
||||
+ KEY_UP 0x00070052
|
||||
+ KEY_LEFT 0x00070050
|
||||
+ KEY_RIGHT 0x0007004F
|
||||
+ KEY_DOWN 0x00070051
|
||||
+ KEY_OK 0x00070028
|
||||
+ KEY_VOLUMEUP 0x000C00E9
|
||||
+ KEY_VOLUMEDOWN 0x000C00EA
|
||||
+ KEY_MUTE 0x000C00E2
|
||||
+ KEY_CHANNELUP 0x000C009C
|
||||
+ KEY_CHANNELDOWN 0x000C009D
|
||||
+ KEY_1 0x0007001E
|
||||
+ KEY_2 0x0007001F
|
||||
+ KEY_3 0x00070020
|
||||
+ KEY_4 0x00070021
|
||||
+ KEY_5 0x00070022
|
||||
+ KEY_6 0x00070023
|
||||
+ KEY_7 0x00070024
|
||||
+ KEY_8 0x00070025
|
||||
+ KEY_9 0x00070026
|
||||
+ KEY_0 0x00070027
|
||||
+ KEY_NUMERIC_STAR 0x10070025
|
||||
+ KEY_NUMERIC_POUND 0x10070020
|
||||
+ KEY_CLEAR 0x00070029
|
||||
+ KEY_TEXT 0xFFBC005A
|
||||
+ KEY_TITLE 0x000C008D
|
||||
+ KEY_ENTER 0x00070028
|
||||
+ KEY_RED 0xFFBC005B
|
||||
+ KEY_GREEN 0xFFBC005C
|
||||
+ KEY_YELLOW 0xFFBC005D
|
||||
+ KEY_BLUE 0xFFBC005E
|
||||
+ end codes
|
||||
+
|
||||
+end remote
|
||||
+
|
||||
diff -rupN base/setup.data mod/setup.data
|
||||
--- base/setup.data 2011-03-25 23:28:18.000000000 +0100
|
||||
+++ mod/setup.data 2013-03-21 16:28:11.433935463 +0100
|
||||
@@ -146,6 +146,7 @@ hw_menu_entry: @hw-usb
|
||||
usb_uirt_raw: "USB-UIRT"
|
||||
mplay: "VLSystem MPlay Blast"
|
||||
mplay: "VLSystem MPlay Mini"
|
||||
+ zotac: "Zotac USB IR Receiver"
|
||||
|
||||
param_type: \
|
||||
act200l \
|
||||
@@ -260,7 +261,8 @@ param_type: \
|
||||
ttusbir \
|
||||
tvbox \
|
||||
udp \
|
||||
- wpc8769l
|
||||
+ wpc8769l \
|
||||
+ zotac
|
||||
none:
|
||||
|
||||
default_param: \
|
||||
@@ -331,7 +333,8 @@ default_param: \
|
||||
ttusbir \
|
||||
tvbox \
|
||||
udp \
|
||||
- wpc8769l
|
||||
+ wpc8769l \
|
||||
+ zotac
|
||||
none:
|
||||
|
||||
default_param: \
|
@ -0,0 +1,429 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.9.0-r3.ebuild,v 1.1 2013/08/27 18:24:40 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils linux-mod linux-info toolchain-funcs flag-o-matic autotools
|
||||
|
||||
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
|
||||
HOMEPAGE="http://www.lirc.org/"
|
||||
|
||||
MY_P=${PN}-${PV/_/}
|
||||
|
||||
if [[ "${PV/_pre/}" = "${PV}" ]]; then
|
||||
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
|
||||
else
|
||||
SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="debug doc hardware-carrier transmitter static-libs X"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
)
|
||||
lirc_devices_alsa_usb? ( media-libs/alsa-lib )
|
||||
lirc_devices_audio? ( >media-libs/portaudio-18 )
|
||||
lirc_devices_irman? ( media-libs/libirman )"
|
||||
|
||||
# 2012-07-17, Ian Stakenvicius
|
||||
# A helper script that scrapes out values for nearly all of the variables below
|
||||
# from lirc's configure.ac is available at
|
||||
# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
|
||||
|
||||
# This are drivers with names matching the
|
||||
# parameter --with-driver=NAME
|
||||
IUSE_LIRC_DEVICES_DIRECT="
|
||||
all userspace accent act200l act220l
|
||||
adaptec alsa_usb animax asusdh atilibusb
|
||||
atiusb audio audio_alsa avermedia avermedia_vdomate
|
||||
avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
|
||||
bte bw6130 caraca chronos commandir
|
||||
cph06x creative creative_infracd
|
||||
devinput digimatrix dsp dvico ea65 ene0100
|
||||
exaudio flyvideo ftdi gvbctv5pci hauppauge
|
||||
hauppauge_dvb hercules_smarttv_stereo i2cuser
|
||||
igorplugusb iguanaIR imon imon_24g imon_knob
|
||||
imon_lcd imon_pad imon_rsc irdeo irdeo_remote
|
||||
irlink irman irreal it87 ite8709
|
||||
knc_one kworld leadtek_0007 leadtek_0010
|
||||
leadtek_pvr2000 livedrive_midi
|
||||
livedrive_seq logitech macmini
|
||||
mediafocusI mouseremote
|
||||
mouseremote_ps2 mp3anywhere mplay nslu2
|
||||
packard_bell parallel pcmak pcmak_usb
|
||||
pctv pixelview_bt878 pixelview_pak
|
||||
pixelview_pro provideo realmagic
|
||||
remotemaster sa1100 samsung sasem sb0540 serial
|
||||
silitek sir slinke streamzap tekram
|
||||
tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
|
||||
uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
|
||||
|
||||
# drivers that need special handling and
|
||||
# must have another name specified for
|
||||
# parameter --with-driver=NAME
|
||||
IUSE_LIRC_DEVICES_SPECIAL="
|
||||
serial_igor_cesko
|
||||
remote_wonder_plus xboxusb usbirboy inputlirc"
|
||||
|
||||
IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
|
||||
|
||||
# The following are lists which are used to provide ewarns on incompatibilities
|
||||
# with the kernel:
|
||||
|
||||
#drivers that do not build kernel modules
|
||||
NO_KMOD_BUILT_FOR_DEV="
|
||||
accent bte creative creative_infracd devinput dsp ea65 exaudio
|
||||
ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
|
||||
mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
|
||||
pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
|
||||
tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
|
||||
|
||||
#drivers that build lirc_dev and so will conflict with kernel lirc_dev
|
||||
LIRCDEV_BUILT_FOR_DEV="all
|
||||
act200l act220l adaptec animax atiusb breakoutbox hauppauge
|
||||
hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
|
||||
imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
|
||||
leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
|
||||
provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
|
||||
tvbox wpc8769l zotac"
|
||||
|
||||
#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
|
||||
LIRC_GPIO_DEV="
|
||||
avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
|
||||
cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
|
||||
pixelview_pak pixelview_pro"
|
||||
|
||||
#device-driver which use libusb
|
||||
LIBUSB_USED_BY_DEV="
|
||||
all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
|
||||
imon_rsc streamzap xboxusb irlink commandir"
|
||||
|
||||
for dev in ${LIBUSB_USED_BY_DEV}; do
|
||||
DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
|
||||
done
|
||||
|
||||
# adding only compile-time depends
|
||||
DEPEND="${RDEPEND} ${DEPEND}
|
||||
virtual/linux-sources
|
||||
lirc_devices_ftdi? ( dev-embedded/libftdi )
|
||||
lirc_devices_all? ( dev-embedded/libftdi )"
|
||||
|
||||
# adding only run-time depends
|
||||
RDEPEND="${RDEPEND}
|
||||
lirc_devices_usbirboy? ( app-misc/usbirboy )
|
||||
lirc_devices_inputlirc? ( app-misc/inputlircd )
|
||||
lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
|
||||
|
||||
# add all devices to IUSE
|
||||
# and ensure lirc_devices_all is not set alongside lirc_devices_*
|
||||
REQUIRED_USE="lirc_devices_all? ("
|
||||
for dev in ${IUSE_LIRC_DEVICES}; do
|
||||
IUSE="${IUSE} lirc_devices_${dev}"
|
||||
if [[ "${dev}" != "all" ]]; then
|
||||
REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
|
||||
fi
|
||||
done
|
||||
REQUIRED_USE="${REQUIRED_USE} )"
|
||||
|
||||
add_device() {
|
||||
local dev="${1}"
|
||||
local desc="device ${dev}"
|
||||
if [[ -n "${2}" ]]; then
|
||||
desc="${2}"
|
||||
fi
|
||||
|
||||
# Bug #187418
|
||||
if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
|
||||
eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
|
||||
eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
|
||||
return 0
|
||||
fi
|
||||
: ${lirc_device_count:=0}
|
||||
((lirc_device_count++))
|
||||
|
||||
elog "Compiling support for ${desc}"
|
||||
|
||||
if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
|
||||
if linux_chkconfig_present LIRC ; then
|
||||
ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
|
||||
fi
|
||||
if ! linux_chkconfig_present MODULE_UNLOAD ; then
|
||||
ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
|
||||
ewarn "You will need MODULE_UNLOAD support in your kernel."
|
||||
fi
|
||||
fi
|
||||
if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
|
||||
ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
|
||||
fi
|
||||
|
||||
if [[ ${lirc_device_count} -eq 2 ]] ; then
|
||||
ewarn
|
||||
ewarn "LIRC_DEVICES has more than one entry."
|
||||
ewarn "When selecting multiple devices for lirc to be supported,"
|
||||
ewarn "it can not be guaranteed that the drivers play nice together."
|
||||
ewarn "If this is not intended, then please adjust LIRC_DEVICES"
|
||||
ewarn "and re-emerge."
|
||||
ewarn
|
||||
fi
|
||||
|
||||
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n "${LIRC_OPTS}" ]] ; then
|
||||
ewarn
|
||||
ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
|
||||
ewarn
|
||||
ewarn "Please use LIRC_DEVICES from now on."
|
||||
ewarn "e.g. LIRC_DEVICES=\"serial sir\""
|
||||
ewarn
|
||||
ewarn "Flags are now set per use-flags."
|
||||
ewarn "e.g. transmitter, hardware-carrier"
|
||||
|
||||
local opt
|
||||
local unsupported_opts=""
|
||||
|
||||
# test for allowed options for LIRC_OPTS
|
||||
for opt in ${LIRC_OPTS}; do
|
||||
case ${opt} in
|
||||
--with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
|
||||
MY_OPTS="${MY_OPTS} ${opt}"
|
||||
;;
|
||||
*)
|
||||
unsupported_opts="${unsupported_opts} ${opt}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [[ -n ${unsupported_opts} ]]; then
|
||||
eerror "These options are no longer allowed to be set"
|
||||
eerror "with LIRC_OPTS: ${unsupported_opts}"
|
||||
die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
|
||||
# set default configure options
|
||||
MY_OPTS=""
|
||||
LIRC_DRIVER_DEVICE="/dev/lirc0"
|
||||
|
||||
if use lirc_devices_all; then
|
||||
# compile in drivers for a lot of devices
|
||||
add_device all "a lot of devices"
|
||||
else
|
||||
# compile in only requested drivers
|
||||
local dev
|
||||
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
|
||||
if use lirc_devices_${dev}; then
|
||||
add_device ${dev}
|
||||
fi
|
||||
done
|
||||
|
||||
if use lirc_devices_remote_wonder_plus; then
|
||||
add_device atiusb "device Remote Wonder Plus (atiusb-based)"
|
||||
fi
|
||||
|
||||
if use lirc_devices_serial_igor_cesko; then
|
||||
add_device serial "serial with Igor Cesko design"
|
||||
MY_OPTS="${MY_OPTS} --with-igor"
|
||||
fi
|
||||
|
||||
if use lirc_devices_imon_pad; then
|
||||
ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
|
||||
ewarn "and removed the pad2keys_active option for the lirc_imon module"
|
||||
ewarn "because it is always active."
|
||||
ewarn "If you have an older imon VFD device, you may need to add the module"
|
||||
ewarn "option display_type=1 to override autodetection and force VFD mode."
|
||||
fi
|
||||
|
||||
if use lirc_devices_xboxusb; then
|
||||
add_device atiusb "device xboxusb"
|
||||
fi
|
||||
|
||||
if use lirc_devices_usbirboy; then
|
||||
add_device userspace "device usbirboy"
|
||||
LIRC_DRIVER_DEVICE="/dev/usbirboy"
|
||||
fi
|
||||
|
||||
if [[ "${MY_OPTS}" == "" ]]; then
|
||||
if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
|
||||
# on xbox: use special driver
|
||||
add_device atiusb "device xboxusb"
|
||||
else
|
||||
# no driver requested
|
||||
elog
|
||||
elog "Compiling only the lirc-applications, but no drivers."
|
||||
elog "Enable drivers with LIRC_DEVICES if you need them."
|
||||
MY_OPTS="--with-driver=none"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
|
||||
use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
|
||||
|
||||
einfo
|
||||
einfo "lirc-configure-opts: ${MY_OPTS}"
|
||||
elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
|
||||
|
||||
filter-flags -Wl,-O1
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Rip out dos CRLF
|
||||
edos2unix contrib/lirc.rules
|
||||
|
||||
# Apply patches needed for some special device-types
|
||||
use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
|
||||
use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
|
||||
|
||||
# Apply fixes for kernel-2.6.39 and above
|
||||
epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
|
||||
# Slightly massaged upstream patch to fix kfifo issues >=2.6.38
|
||||
# for bug 377033
|
||||
epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
|
||||
# Apply fixes for kernel-3.3 and above (bug 439538)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
|
||||
# Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
|
||||
# Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
|
||||
epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
|
||||
# Add support for zotac remote, bug 342848
|
||||
epatch "${FILESDIR}"/${P}-add-zotac-support.patch
|
||||
|
||||
# Do not build drivers from the top-level Makefile
|
||||
sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
|
||||
|
||||
# remove parallel driver on SMP systems
|
||||
if linux_chkconfig_present SMP ; then
|
||||
sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
|
||||
fi
|
||||
|
||||
# Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
|
||||
if use lirc_devices_all && kernel_is ge 2 6 22 ; then
|
||||
ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
|
||||
sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
|
||||
fi
|
||||
|
||||
# respect CFLAGS
|
||||
sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
|
||||
|
||||
# setting default device-node
|
||||
local f
|
||||
for f in configure.ac acconfig.h; do
|
||||
[[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
|
||||
done
|
||||
echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
|
||||
|
||||
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--localstatedir=/var \
|
||||
--with-syslog=LOG_DAEMON \
|
||||
--enable-sandboxed \
|
||||
--with-kerneldir="${KV_DIR}" \
|
||||
--with-moduledir="/lib/modules/${KV_FULL}/misc" \
|
||||
$(use_enable debug) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with X x) \
|
||||
${MY_OPTS} \
|
||||
ABI="${KERNEL_ABI}" \
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
|
||||
emake -j1
|
||||
|
||||
MODULE_NAMES="lirc(misc:${S}/drivers)"
|
||||
BUILD_TARGETS="all"
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C drivers DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
|
||||
newinitd "${FILESDIR}"/lircmd lircmd
|
||||
newconfd "${FILESDIR}"/lircd.conf.4 lircd
|
||||
|
||||
insinto /etc/modprobe.d/
|
||||
newins "${FILESDIR}"/modprobed.lirc lirc.conf
|
||||
|
||||
newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
|
||||
newconfd "${FILESDIR}"/irexec-confd irexec
|
||||
|
||||
if use doc ; then
|
||||
dohtml doc/html/*.html
|
||||
insinto /usr/share/doc/${PF}/images
|
||||
doins doc/images/*
|
||||
fi
|
||||
|
||||
insinto /usr/share/lirc/remotes
|
||||
doins -r remotes/*
|
||||
|
||||
keepdir /etc/lirc
|
||||
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
|
||||
fi
|
||||
|
||||
use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
linux-mod_pkg_preinst
|
||||
|
||||
local dir="${EROOT}/etc/modprobe.d"
|
||||
if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
|
||||
elog "Renaming ${dir}/lirc to lirc.conf"
|
||||
mv -f "${dir}/lirc" "${dir}/lirc.conf"
|
||||
fi
|
||||
|
||||
# copy the first file that can be found
|
||||
if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||
elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
|
||||
cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
|
||||
MOVE_OLD_LIRCD_CONF=1
|
||||
elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
|
||||
fi
|
||||
|
||||
# stop portage from touching the config file
|
||||
if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
|
||||
rm -f "${D}"/etc/lirc/lircd.conf
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
|
||||
# copy config file to new location
|
||||
# without portage knowing about it
|
||||
# so it will not delete it on unmerge or ever touch it again
|
||||
if [[ -e "${T}"/lircd.conf ]]; then
|
||||
cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
|
||||
if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
|
||||
elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
|
||||
rm -f "${EROOT}"/etc/lircd.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "The new default location for lircd.conf is inside of"
|
||||
einfo "/etc/lirc/ directory"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST solaar-0.8.7.tar.gz 781084 SHA256 e0e167134c6a689574f0f248cba99bc212f930916b2dfffcdeda0c9294e0d167 SHA512 312abfa6e5d5d12c8f4c470ed555f06622d9238e53a587a2da04f6abfe08ef0aca1293dc3770ebd31dec26c27253b1f2366390abe3717396003f8cdbbcb1bef0 WHIRLPOOL dc981c2b9af44afb58ff19acb657ef231c7456033dda333a3f2c40136a70e8ff9485d77b39c1668162b93a9ac6076576cbfb55463fc0c12231b153d52adc504d
|
||||
DIST solaar-0.9.2.tar.gz 864509 SHA256 b2802812e5aafae4801692ac8cf8a11e9f46f2adc43522d977ef35257e7ea424 SHA512 13f469df753cc8fab55f5259ccc3e62b6e44471d277d240cd56ce0580144d2b1f95d731268176648663dd15e5607bfb512f477362f4f100aa0a653b001dfe04b WHIRLPOOL 3ae66957355c1b40ce43d6033f81912c5cc984e4bebbfc423c42312173ada6b69af7c6e1ceacd0893617b7770878b36ee7e90103db8c5fb6e35efe20c2f8f2e1
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/solaar/solaar-0.9.2.ebuild,v 1.1 2013/08/27 20:55:41 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1 udev user linux-info gnome2-utils
|
||||
|
||||
DESCRIPTION="A Linux device manager for Logitech's Unifying Receiver peripherals"
|
||||
HOMEPAGE="http://pwr.github.com/Solaar/"
|
||||
SRC_URI="https://github.com/pwr/Solaar/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-python/pyudev-0.13[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]"
|
||||
|
||||
S=${WORKDIR}/Solaar-${PV}
|
||||
|
||||
CONFIG_CHECK="~HID_LOGITECH_DJ"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
udev_dorules rules.d/*.rules
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/*
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
enewgroup plugdev
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog "Users must be in the plugdev group to use this application."
|
||||
fi
|
||||
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_preinst() { gnome2_icon_savelist; }
|
||||
pkg_postrm() { gnome2_icon_cache_update; }
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/dvisvgm/dvisvgm-1.4.ebuild,v 1.1 2013/08/27 16:35:54 aballier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Converts DVI files to SVG"
|
||||
HOMEPAGE="http://dvisvgm.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
# Tests don't work from $WORKDIR: kpathsea tries to search in relative
|
||||
# directories from where the binary is executed.
|
||||
# We cannot really use absolute paths in the kpathsea configuration since that
|
||||
# would make it harder for prefix installs.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="virtual/tex-base
|
||||
app-text/ghostscript-gpl
|
||||
>=media-gfx/potrace-1.10-r1
|
||||
media-libs/freetype:2
|
||||
sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? ( dev-cpp/gtest )"
|
@ -1,2 +1,3 @@
|
||||
DIST lcdf-typetools-2.97.tar.gz 616431 SHA256 761746041c669fa3673a3e90ec7a247abd0e2782bdddf0fc5d7ab70b33b6f975 SHA512 8812436843721b7134ec796549092854050d1e9017fef048a62e7aa0e866d20e9757b246dbad738cdf8d8583afada3a2db9c6c7dc2546154cafd4dcd0f27f7f2 WHIRLPOOL 767a2a74a9f9b7a0c29407178b96a1455da39239b835f59def2ae77db068655a8953362c6f8d48a8a31fb6fc40dea405c0e6eb276fe60750e9dfbb11954bd972
|
||||
DIST lcdf-typetools-2.98.tar.gz 621485 SHA256 26b9be336b3d575555436d139e5a9c40fea58f5b9468516f974ca7bd1eeae17f SHA512 9ab6b9a7f1cdbbe977c9de2021931e5db94d2d03c185868b96789d58e0c0a0cd76f7c5bb18b469ed7d90bfca31b8c68c67dfd8d8cf863300c130fc61d75e75e6 WHIRLPOOL 0135de9fbe79d3a5e63690b17122690f120ae07365a0aa75b0f3ac642e443d88992a877dc346e4bb3e736a59b13ed69040e0d7a1430476e81241efa1d08e088c
|
||||
DIST lcdf-typetools-2.99.tar.gz 627203 SHA256 cbb0ed8c42d078fb216b8f4b8ca7a29e0ad3c1969f580a6f2558c829a472adff SHA512 5b0c7a95dfeacd9aaa8eca18616a6df0446ef17b6651651c20c83af6fbf6d50ff5f4d81c94c53aedfec2c7423047c62a3a848cce6907e8900d08cd0ee2b7a4c5 WHIRLPOOL ab00a53d78d5f3e175f573adc7d25da46beeaf2b56df06b1d7db563ad75e02c50706cc396955cf479a2e3f240d9bf5bb2b8c0fa303f1caa8a282db22179e2d58
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/lcdf-typetools/lcdf-typetools-2.99.ebuild,v 1.1 2013/08/27 16:38:25 aballier Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="Font utilities for eg manipulating OTF"
|
||||
SRC_URI="http://www.lcdf.org/type/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.lcdf.org/type/#typetools"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE="+kpathsea"
|
||||
|
||||
DEPEND="kpathsea? ( virtual/tex-base )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with kpathsea)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc NEWS README ONEWS
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST poppler-0.22.2.tar.gz 2215737 SHA256 108736ef84069317f6c5beacb5268f3b799ecf401e353e239611772eae8a662d SHA512 ce962f12a87f873a46cf8d02c0620694893a6e1857ac680174c4d9388d2255b5011e62e28b34a6e0abec9c8779530bf91ac123206a619a6eba59be92adb02d42 WHIRLPOOL 80b744f1cf4687a936a1eb9ce40567602935535e8fc1faca010171e433ea4948284b8eba3fca866b6b27034319efa46d54d1e2f71ba14c8e5554ee3b137d935d
|
||||
DIST poppler-0.22.5.tar.gz 2239107 SHA256 f742a390f1bf4a682452f59678e61add3a8f2b981024a2f6cabba7916976e818 SHA512 3da8433449ed2c74acaac385a877e214f08265c12172ec02b5f83904ebb11b7fdad4819a525f3ce140a0ed38b783112dedfc31f5e00d093d91471d1b9a0626ed WHIRLPOOL 421e1b4244d827e8122c3a7b91246708a0b0099045859a5aae2fe6ace0fee1b25ebe391f52697a38972f69167593109771c4ad1e23050465cfb9db0d1a6d62dc
|
||||
DIST poppler-0.24.0.tar.xz 1503420 SHA256 bdc517ea648a3f8ecbe0745a79fb6cbf9a7e2ef647d6156154449cf50c6d0c21 SHA512 c7c193733a172a7cbd33fef8cd58addb182a6b90f2c291b76d5145a886feb71bb7756a7fa01d7a9871722117ecf24ffe93825618b240d3cb9a7d1ecd046d1abb WHIRLPOOL 20f65fd8c2a46b322af5fc0b2c0ca76e4dfabd79b20fd75e874c57ab37071bc9b8d397f1f260b19f5645dcc19941de74b6aecd3c2120122651abcebfe4934bc9
|
||||
DIST poppler-0.24.1.tar.xz 1504620 SHA256 5cefc01aa0184bd92b0b3999922b62cf09599ebb3d95f553c2f3de02738effc6 SHA512 2b1a9c4898eb7a5efdebfc20be84fcc900795132465aca0d57b1fe6cb5d252c0451bee91ba1cd74f03938d17e606f0edee5cda890ca49d75eddcc1c4b1cf0ef2 WHIRLPOOL 507cf63a30c491df19d81ec0c36808dc106cc4553a507cbd5982fb14123abd36aa980b42b089978629022012f8950e0269a10676f97761d019e0bf0dc1245335
|
||||
|
@ -0,0 +1,95 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.24.1.ebuild,v 1.1 2013/08/27 21:24:37 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils toolchain-funcs
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="http://poppler.freedesktop.org/"
|
||||
SRC_URI="http://poppler.freedesktop.org/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0/43"
|
||||
IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 tiff +utils"
|
||||
|
||||
# No test data provided
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.6.0
|
||||
>=media-libs/freetype-2.3.9
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
dev-libs/glib:2
|
||||
>=x11-libs/cairo-1.10.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( >=app-text/poppler-data-0.4.4 )
|
||||
"
|
||||
|
||||
DOCS=(AUTHORS NEWS README README-XPDF TODO)
|
||||
|
||||
src_configure() {
|
||||
# this is needed for multilib, see bug 459394
|
||||
local ft_libdir ft_includedir
|
||||
ft_libdir="$($(tc-getPKG_CONFIG) freetype2 --variable=libdir)"
|
||||
ft_includedir="$($(tc-getPKG_CONFIG) freetype2 --variable=includedir)"
|
||||
export FREETYPE_DIR="${ft_libdir}:${ft_includedir%/include}"
|
||||
einfo "Detected FreeType at ${FREETYPE_DIR}"
|
||||
|
||||
mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT4_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=OFF
|
||||
-DBUILD_CPP_TESTS=OFF
|
||||
-DENABLE_SPLASH=ON
|
||||
-DENABLE_ZLIB=ON
|
||||
-DENABLE_XPDF_HEADERS=ON
|
||||
$(cmake-utils_use_enable curl LIBCURL)
|
||||
$(cmake-utils_use_enable cxx CPP)
|
||||
$(cmake-utils_use_enable jpeg2k LIBOPENJPEG)
|
||||
$(cmake-utils_use_enable utils)
|
||||
$(cmake-utils_use_with cairo)
|
||||
$(cmake-utils_use_with introspection GObjectIntrospection)
|
||||
$(cmake-utils_use_with jpeg)
|
||||
$(cmake-utils_use_with png)
|
||||
$(cmake-utils_use_with qt4)
|
||||
-DWITH_QT5=OFF # this probably does not work yet
|
||||
$(cmake-utils_use_with tiff)
|
||||
)
|
||||
if use lcms; then
|
||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_CMS=)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use cairo && use doc; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST syntastic-3.0.0.tar.gz 148700 SHA256 d4b7b9165ff92f0125c7892a2b62b08de8af2a9cc273bf1deb4761a42e4fc659 SHA512 d9b52af57f2306f4142badeeab41c21ea8adbe0e6c8a656c05162a6807d28ad64467b8b7b4bd8c2231a8c39abc04990786cf70fb88c135d21decdd80847e0b2b WHIRLPOOL f6cc92a389728e0ffbbcdb8ca7d2abe65e3545f7df217bf74303ee17f483c0295b2a2f8a0dc4485c1ba234804f08ce163da95c53c1b53c838ff194c783e0f0b0
|
||||
DIST syntastic-3.1.0.tar.gz 161157 SHA256 02517c569d2687b30beef5059219c05480e270569b287b730fad3ef0cb72bf94 SHA512 dfb15227530f3563d2dd4b0037ce164a340f53b43c1ac38fc0d56fa720c81d26c3dc280149af732e19a14192bd17006d2c299b1e4d2036f4c1162e2032787859 WHIRLPOOL 2f9202029247e3e9064d28ea88129d25f103d7376be0dfb29f56662fe52ca4ae216c1d017911db0256109fab5f513d721329d3fbd6de86a40ada739ac8c149f2
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/syntastic/syntastic-3.1.0.ebuild,v 1.1 2013/08/27 07:19:15 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: syntax checking using external tools"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=2736 https://github.com/scrooloose/syntastic/"
|
||||
SRC_URI="https://github.com/scrooloose/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="WTFPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="${PN}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r _assets LICENCE README.markdown || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog "Syntastic has many optional dependencies depending on the type"
|
||||
elog "of syntax checking being performed. Look in the related files in"
|
||||
elog "the syntax_checkers directory to help figure out what programs"
|
||||
elog "different languages need."
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST boost_1_49_0.tar.bz2 48499961 SHA256 dd748a7f5507a7e7af74f452e1c52a64e651ed1f7263fce438a06641d2180d3c SHA512 9f6198270659df112a57731afe31cbf1012d103ba36ed82f6c3f1bdc0185ddb89dcc42c5dfb9ee3f95973d52999aad6c7509dc61125420d45146e39ebf20219d WHIRLPOOL c049b4212307b0208d0b37ac870a7cfb8562d2b685ce505e1971af7bc68ae9746b06ea80ddc52599ed4cbd6dc3305b5f8051cd771387412aaa1d2f8e939a48ba
|
||||
DIST boost_1_52_0.tar.bz2 54421709 SHA256 222b6afd7723f396f5682c20130314a10196d3999feab5ba920d2a6bf53bac92 SHA512 fc512d3bfa6a39a60fee548775c97239271cf757587b8df7ed739c800844a819a359dca172be0e69ad7752753753139bf11f0813d650066d58386662fe32842d WHIRLPOOL 73bbab4a1d2a652200f4b5e669440a2afcebcea96a1139ecc75213067ca32d5cadb0f060bb0ec2e29e9e31272fb7ec9d2cb960801032ee6c5dcb86564766411d
|
||||
DIST boost_1_53_0.tar.bz2 55765258 SHA256 f88a041b01882b0c9c5c05b39603ec8383fb881f772f6f9e6e6fd0e0cddb9196 SHA512 8cd7806653cb6ea4a1c6862796ef698de5ae0bdbda96954fedbe090c59e3e6cb8f8d385df35183e9063ac4e2c2fccf10744516c47a994cde5f1d1cba1b07e522 WHIRLPOOL e8c5ed6b34dd5f68dc7e102a9e22b302616a65077d3f4af370ece6352b02a866e04294a4fc76bbd5555b6a4131f590e6455e6a74b5f12c4ffc2dd15af0bc8746
|
||||
DIST boost_1_54_0.tar.bz2 57873778 SHA256 047e927de336af106a24bceba30069980c191529fd76b8dff8eb9a328b48ae1d SHA512 3467a2bb9b4797cadfc52150cb036939ef35263f421870897dbe9492d1504a714805668a193b0811fdaf39a3527ee693ff70da5b942d7ab11b307e2e693e1760 WHIRLPOOL dbe3cbecaccf86ca184cf73cff75c17d6307b680bab098e38a9efd24d17776481e597017fc9f8fc8f488495f315c6d2b14b9212c51cf98529c302482bf67e92a
|
||||
|
@ -0,0 +1,341 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.54.0.ebuild,v 1.2 2013/08/27 11:41:29 pinkbyte Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
||||
|
||||
inherit eutils flag-o-matic multilib multiprocessing python-r1 toolchain-funcs versionator
|
||||
|
||||
MY_P=${PN}_$(replace_all_version_separators _)
|
||||
|
||||
DESCRIPTION="Boost Libraries for C++"
|
||||
HOMEPAGE="http://www.boost.org/"
|
||||
SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
MAJOR_V="$(get_version_component_range 1-2)"
|
||||
SLOT="0/${MAJOR_V}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-fbsd ~x86-linux"
|
||||
IUSE="debug doc icu +nls mpi python static-libs +threads tools"
|
||||
|
||||
RDEPEND="icu? ( >=dev-libs/icu-3.6:= )
|
||||
!icu? ( virtual/libiconv )
|
||||
mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
!app-admin/eselect-boost"
|
||||
DEPEND="${RDEPEND}
|
||||
=dev-util/boost-build-${MAJOR_V}*"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
create_user-config.jam() {
|
||||
local compiler compiler_version compiler_executable
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
compiler="darwin"
|
||||
compiler_version="$(gcc-fullversion)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
else
|
||||
compiler="gcc"
|
||||
compiler_version="$(gcc-version)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
fi
|
||||
local mpi_configuration python_configuration
|
||||
|
||||
if use mpi; then
|
||||
mpi_configuration="using mpi ;"
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_configuration="using python : : ${PYTHON} ;"
|
||||
fi
|
||||
|
||||
cat > user-config.jam << __EOF__
|
||||
using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
|
||||
${mpi_configuration}
|
||||
${python_configuration}
|
||||
__EOF__
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.48.0-mpi_python3.patch" \
|
||||
"${FILESDIR}/${PN}-1.51.0-respect_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.51.0-support_dots_in_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-python_linking.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch" \
|
||||
"${FILESDIR}/${PN}-1.53.0-library_status.patch" # bug 459112
|
||||
|
||||
# Avoid a patch for now
|
||||
for file in libs/context/src/asm/*.S; do
|
||||
cat - >> $file <<EOF
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
EOF
|
||||
done
|
||||
}
|
||||
|
||||
ejam() {
|
||||
echo b2 "$@"
|
||||
b2 "$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
OPTIONS="$(usex debug gentoodebug gentoorelease) -j$(makeopts_jobs) -q -d+2 --user-config=${S}/user-config.jam"
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
# We need to add the prefix, and in two cases this exceeds, so prepare
|
||||
# for the largest possible space allocation.
|
||||
append-ldflags -Wl,-headerpad_max_install_names
|
||||
elif [[ ${CHOST} == *-winnt* ]]; then
|
||||
compiler=parity
|
||||
if [[ $($(tc-getCXX) -v) == *trunk* ]]; then
|
||||
compilerVersion=trunk
|
||||
else
|
||||
compilerVersion=$($(tc-getCXX) -v | sed '1q' \
|
||||
| sed -e 's,\([a-z]*\) \([0-9]\.[0-9]\.[0-9][^ \t]*\) .*,\2,')
|
||||
fi
|
||||
compilerExecutable=$(tc-getCXX)
|
||||
fi
|
||||
|
||||
# bug 298489
|
||||
if use ppc || use ppc64; then
|
||||
[[ $(gcc-version) > 4.3 ]] && append-flags -mno-altivec
|
||||
fi
|
||||
|
||||
# Do _not_ use C++11 yet, make sure to force GNU C++ 98 standard.
|
||||
append-cxxflags -std=gnu++98
|
||||
|
||||
use icu && OPTIONS+=" -sICU_PATH=${EPREFIX}/usr"
|
||||
use icu || OPTIONS+=" --disable-icu boost.locale.icu=off"
|
||||
use mpi || OPTIONS+=" --without-mpi"
|
||||
use python || OPTIONS+=" --without-python"
|
||||
use nls || OPTIONS+=" --without-locale"
|
||||
|
||||
OPTIONS+=" pch=off --boost-build=${EPREFIX}/usr/share/boost-build --prefix=\"${ED}usr\" --layout=system threading=$(usex threads multi single) link=$(usex static-libs shared,static shared) --without-context"
|
||||
|
||||
[[ ${CHOST} == *-winnt* ]] && OPTIONS+=" -sNO_BZIP2=1"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export BOOST_ROOT="${S}"
|
||||
PYTHON_DIRS=""
|
||||
MPI_PYTHON_MODULE=""
|
||||
|
||||
building() {
|
||||
create_user-config.jam
|
||||
|
||||
ejam ${OPTIONS} \
|
||||
$(use python && echo --python-buildid=${EPYTHON#python}) \
|
||||
|| die "Building of Boost libraries failed"
|
||||
|
||||
if use python; then
|
||||
if [[ -z "${PYTHON_DIRS}" ]]; then
|
||||
PYTHON_DIRS="$(find bin.v2/libs -name python | sort)"
|
||||
else
|
||||
if [[ "${PYTHON_DIRS}" != "$(find bin.v2/libs -name python | sort)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
mv ${dir} ${dir}-${EPYTHON} \
|
||||
|| die "Renaming of '${dir}' to '${dir}-${EPYTHON}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
if [[ -z "${MPI_PYTHON_MODULE}" ]]; then
|
||||
MPI_PYTHON_MODULE="$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)"
|
||||
if [[ "$(echo "${MPI_PYTHON_MODULE}" | wc -l)" -ne 1 ]]; then
|
||||
die "Multiple mpi.so files found"
|
||||
fi
|
||||
else
|
||||
if [[ "${MPI_PYTHON_MODULE}" != "$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
mv stage/lib/mpi.so stage/lib/mpi.so-${EPYTHON} \
|
||||
|| die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${EPYTHON}' failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
if use python; then
|
||||
python_foreach_impl building
|
||||
else
|
||||
building
|
||||
fi
|
||||
|
||||
if use tools; then
|
||||
pushd tools > /dev/null || die
|
||||
|
||||
ejam ${OPTIONS} \
|
||||
|| die "Building of Boost tools failed"
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
installation() {
|
||||
create_user-config.jam
|
||||
|
||||
if use python; then
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
cp -pr ${dir}-${EPYTHON} ${dir} \
|
||||
|| die "Copying of '${dir}-${EPYTHON}' to '${dir}' failed"
|
||||
done
|
||||
|
||||
if use mpi; then
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} "${MPI_PYTHON_MODULE}" \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to '${MPI_PYTHON_MODULE}' failed"
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} stage/lib/mpi.so \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to 'stage/lib/mpi.so' failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
ejam ${OPTIONS} \
|
||||
--includedir="${ED}usr/include" \
|
||||
--libdir="${ED}usr/$(get_libdir)" \
|
||||
$(use python && echo --python-buildid=${EPYTHON#python}) \
|
||||
install || die "Installation of Boost libraries failed"
|
||||
|
||||
if use python; then
|
||||
rm -r ${PYTHON_DIRS} || die
|
||||
|
||||
# Move mpi.so Python module to Python site-packages directory.
|
||||
# https://svn.boost.org/trac/boost/ticket/2838
|
||||
if use mpi; then
|
||||
local moddir=$(python_get_sitedir)/boost
|
||||
# moddir already includes eprefix
|
||||
mkdir -p "${D}${moddir}" || die
|
||||
mv "${ED}usr/$(get_libdir)/mpi.so" "${D}${moddir}" || die
|
||||
cat << EOF > "${D}${moddir}/__init__.py" || die
|
||||
import sys
|
||||
if sys.platform.startswith('linux'):
|
||||
import DLFCN
|
||||
flags = sys.getdlopenflags()
|
||||
sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL)
|
||||
from . import mpi
|
||||
sys.setdlopenflags(flags)
|
||||
del DLFCN, flags
|
||||
else:
|
||||
from . import mpi
|
||||
del sys
|
||||
EOF
|
||||
fi
|
||||
|
||||
python_optimize
|
||||
fi
|
||||
}
|
||||
if use python; then
|
||||
python_foreach_impl installation
|
||||
else
|
||||
installation
|
||||
fi
|
||||
|
||||
if ! use python; then
|
||||
rm -r "${ED}"/usr/include/boost/python* || die
|
||||
fi
|
||||
|
||||
if ! use nls; then
|
||||
rm -r "${ED}"/usr/include/boost/locale || die
|
||||
fi
|
||||
|
||||
rm -r "${ED}"/usr/include/boost/context || die
|
||||
|
||||
if use doc; then
|
||||
find libs/*/* -iname "test" -or -iname "src" | xargs rm -rf
|
||||
dohtml \
|
||||
-A pdf,txt,cpp,hpp \
|
||||
*.{htm,html,png,css} \
|
||||
-r doc
|
||||
dohtml -A pdf,txt -r tools
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r libs
|
||||
doins -r more
|
||||
|
||||
# To avoid broken links
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins LICENSE_1_0.txt
|
||||
|
||||
dosym /usr/include/boost /usr/share/doc/${PF}/html/boost
|
||||
fi
|
||||
|
||||
pushd "${ED}usr/$(get_libdir)" > /dev/null || die
|
||||
|
||||
local ext=$(get_libname)
|
||||
if use threads; then
|
||||
local f
|
||||
for f in *${ext}; do
|
||||
dosym ${f} /usr/$(get_libdir)/${f/${ext}/-mt${ext}}
|
||||
done
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
|
||||
if use tools; then
|
||||
dobin dist/bin/*
|
||||
|
||||
insinto /usr/share
|
||||
doins -r dist/share/boostbook
|
||||
fi
|
||||
|
||||
# boost's build system truely sucks for not having a destdir. Because for
|
||||
# this reason we are forced to build with a prefix that includes the
|
||||
# DESTROOT, dynamic libraries on Darwin end messed up, referencing the
|
||||
# DESTROOT instread of the actual EPREFIX. There is no way out of here
|
||||
# but to do it the dirty way of manually setting the right install_names.
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
einfo "Working around completely broken build-system(tm)"
|
||||
local d
|
||||
for d in "${ED}"usr/lib/*.dylib; do
|
||||
if [[ -f ${d} ]]; then
|
||||
# fix the "soname"
|
||||
ebegin " correcting install_name of ${d#${ED}}"
|
||||
install_name_tool -id "/${d#${D}}" "${d}"
|
||||
eend $?
|
||||
# fix references to other libs
|
||||
refs=$(otool -XL "${d}" | \
|
||||
sed -e '1d' -e 's/^\t//' | \
|
||||
grep "^libboost_" | \
|
||||
cut -f1 -d' ')
|
||||
local r
|
||||
for r in ${refs}; do
|
||||
ebegin " correcting reference to ${r}"
|
||||
install_name_tool -change \
|
||||
"${r}" \
|
||||
"${EPREFIX}/usr/lib/${r}" \
|
||||
"${d}"
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Yai for having symlinks that are nigh-impossible to remove without
|
||||
# resorting to dirty hacks like these. Removes lingering symlinks
|
||||
# from the slotted versions.
|
||||
local symlink
|
||||
for symlink in "${EROOT}usr/include/boost" "${EROOT}usr/share/boostbook"; do
|
||||
[[ -L ${symlink} ]] && rm -f "${symlink}"
|
||||
done
|
||||
}
|
||||
|
||||
# the tests will never fail because these are not intended as sanity
|
||||
# tests at all. They are more a way for upstream to check their own code
|
||||
# on new compilers. Since they would either be completely unreliable
|
||||
# (failing for no good reason) or completely useless (never failing)
|
||||
# there is no point in having them in the ebuild to begin with.
|
||||
src_test() { :; }
|
@ -0,0 +1,57 @@
|
||||
--- tools_orig/regression/src/library_status.cpp 2012-12-11 15:42:26.000000000 +0100
|
||||
+++ tools/regression/src/library_status.cpp 2013-07-11 16:15:54.000000000 +0200
|
||||
@@ -171,16 +171,17 @@
|
||||
// find_element ------------------------------------------------------------//
|
||||
|
||||
+ struct element_equal {
|
||||
+ const string & m_name;
|
||||
+ element_equal(const string & name) :
|
||||
+ m_name(name)
|
||||
+ {}
|
||||
+ bool operator()(const xml::element_ptr & xep) const {
|
||||
+ return xep.get()->name == m_name;
|
||||
+ }
|
||||
+ };
|
||||
+
|
||||
xml::element_list::const_iterator find_element(
|
||||
const xml::element & root, const string & name
|
||||
){
|
||||
- struct element_equal {
|
||||
- const string & m_name;
|
||||
- element_equal(const string & name) :
|
||||
- m_name(name)
|
||||
- {}
|
||||
- bool operator()(const xml::element_ptr & xep) const {
|
||||
- return xep.get()->name == m_name;
|
||||
- }
|
||||
- };
|
||||
return std::find_if(
|
||||
root.elements.begin(),
|
||||
@@ -203,17 +204,18 @@
|
||||
// attribute_value ----------------------------------------------------------//
|
||||
|
||||
+ struct attribute_equal {
|
||||
+ const string & m_name;
|
||||
+ attribute_equal(const string & name) :
|
||||
+ m_name(name)
|
||||
+ {}
|
||||
+ bool operator()(const xml::attribute & a) const {
|
||||
+ return a.name == m_name;
|
||||
+ }
|
||||
+ };
|
||||
+
|
||||
const string & attribute_value(
|
||||
const xml::element & element,
|
||||
const string & attribute_name
|
||||
){
|
||||
- struct attribute_equal {
|
||||
- const string & m_name;
|
||||
- attribute_equal(const string & name) :
|
||||
- m_name(name)
|
||||
- {}
|
||||
- bool operator()(const xml::attribute & a) const {
|
||||
- return a.name == m_name;
|
||||
- }
|
||||
- };
|
||||
xml::attribute_list::const_iterator itr;
|
||||
itr = std::find_if(
|
@ -1,2 +1,3 @@
|
||||
DIST e_dbus-1.7.5.tar.bz2 433475 SHA256 d88886c13b470f9aee84f1a95a68eca5501506417362ee8066a117feffcd9399 SHA512 b1581051b08bcd85520fad661f8c7e59bae4caede2b4244867f5f8d358238aa03803f50bbd40db6a58b8650a934c8705c540a344dc24830aac17c25a46025f12 WHIRLPOOL 355ed52bb90b6bff5df3a4524ffeb767fe19037d3c0576f2db8f85d85fdb4756b71377f0783637af97f51f227e52393afba3161d9768f2dde03fdcfaef2b05b0
|
||||
DIST e_dbus-1.7.6.tar.bz2 436814 SHA256 fd70f608c70aaed2cfc2ff5b086108224df72edecfa56ac850bd141947caaad6 SHA512 f4affbd8efa38232c834878044bc56aa0d5bde52ff4df188c36a1171e35ff84d39ef05a563fb16ce3413d131de4948deb68422a82d41c58d49e843a7e8795a8c WHIRLPOOL 21be3a353bfefeef57f29cc58d7c77b5e0672abb2946d5fd312e61668697a65d60bb39c029196718d5da350b7edabed5d527ba8cf737dbb5d322597a2031c58a
|
||||
DIST e_dbus-1.7.8.tar.bz2 439067 SHA256 69de464ed89c701df2ee90baa3ca2d9d0d51f731c8fd495cb8c2dcaeb1d4fa16 SHA512 e03cc5c14a2d9b541ee2892e488698b0e3d932b6f3a6139ebb5090f5ee403c2b697cae1729535a5c3a8c4dc6258f6becc327ec808696a3b95fda600f38a103e2 WHIRLPOOL 7b72080fd652d4b9a05370d59a128d4dc6ec434a2d24ebca4f398f08bdce2e581b008e319b859e9a1d7197e571001327f582f201146fff5e0a41456d9e53ab9a
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/e_dbus/e_dbus-1.7.8.ebuild,v 1.1 2013/08/28 03:03:03 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment's (Ecore) integration to DBus"
|
||||
SRC_URI="http://download.enlightenment.org/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="bluetooth +connman +libnotify ofono static-libs test-binaries +udev"
|
||||
|
||||
RDEPEND=">=dev-libs/eina-1.7.8
|
||||
>=dev-libs/ecore-1.7.8
|
||||
sys-apps/dbus
|
||||
connman? ( >=net-misc/connman-0.75 )
|
||||
libnotify? ( >=media-libs/evas-1.7.8 )
|
||||
udev? ( sys-power/upower sys-fs/udisks:0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
E_ECONF+=(
|
||||
$(use_enable bluetooth ebluez)
|
||||
$(use_enable connman econnman0_7x)
|
||||
$(use_enable doc)
|
||||
--disable-ehal
|
||||
$(use_enable libnotify enotify)
|
||||
$(use_enable ofono eofono)
|
||||
$(use_enable test-binaries edbus-test)
|
||||
$(use_enable test-binaries edbus-test-client)
|
||||
$(use_enable udev eukit)
|
||||
)
|
||||
if use test-binaries ; then
|
||||
E_ECONF+=(
|
||||
$(use_enable bluetooth edbus-bluez-test)
|
||||
$(use_enable connman edbus-connman0_7x-test)
|
||||
$(use_enable libnotify edbus-notification-daemon-test)
|
||||
$(use_enable libnotify edbus-notify-test)
|
||||
$(use_enable ofono edbus-ofono-test)
|
||||
$(use_enable udev edbus-ukit-test)
|
||||
)
|
||||
else
|
||||
E_ECONF+=(
|
||||
--disable-edbus-bluez-test
|
||||
--disable-edbus-connman0_7x-test
|
||||
--disable-edbus-notification-daemon-test
|
||||
--disable-edbus-notify-test
|
||||
--disable-edbus-ofono-test
|
||||
--disable-edbus-ukit-test
|
||||
--disable-edbus-async-test
|
||||
--disable-edbus-performance-test
|
||||
)
|
||||
fi
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST eeze-1.7.4.tar.bz2 550280 SHA256 0598688498fcbd59a7747cb29f583418dc2717b821fb3ad2b1739af26e468e4f SHA512 5f736a6a5809b4b870f6403d80e06cd8785deaa59164c5222b420099036d9ff6fc68ddcfc4b76a568d3dc8e1b02e3be42acb0753caebe2a3c84bf3537ce9f8f0 WHIRLPOOL e544ec9329e7b6e111addc78702c206da40fa40e3390d08f9157e5a0b5f4dbff8276ad2ec14c404fb13f6395d2db27123543320a532c0f8d575d2150c4582c2e
|
||||
DIST eeze-1.7.8.tar.bz2 549545 SHA256 2b1d2f55e0d3c42c9114995850249a8dfe8849560569268dc05a7d383617fff6 SHA512 97be58257c9f7b69f0e3c555e6a02e00a09247802ddc6ad27a9914e71831dc704d5ab6ea4cff4082733c21b82d516678457d7cfbab5f2acf1b3d7a37d07adc11 WHIRLPOOL a1e9fbf62d26e98d6b5ba6c664a613a3a0f05e640a736fb95bcfec30b98670f4002e84ec35251c63ea5771d68092e0ba63b02e2d0c77e4b7ab1cdcb2b6682718
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eeze/eeze-1.7.8.ebuild,v 1.1 2013/08/28 03:13:08 vapier Exp $
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="library to simplify the use of devices"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/Eeze"
|
||||
SRC_URI="http://download.enlightenment.org/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="static-libs utilities"
|
||||
|
||||
DEPEND=">=dev-libs/ecore-1.7.8
|
||||
>=dev-libs/eina-1.7.8
|
||||
>=dev-libs/eet-1.7.8
|
||||
virtual/udev"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
E_ECONF+=(
|
||||
$(use_enable doc)
|
||||
$(use_enable utilities eeze-disk-ls)
|
||||
$(use_enable utilities eeze-mount)
|
||||
$(use_enable utilities eeze-umount)
|
||||
$(use_enable utilities eeze-udev-test)
|
||||
)
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST eio-1.7.5.tar.bz2 358657 SHA256 46eb390405c749953a96fc0b32a15f403e838ca1f89eed78276c123370a94aaf SHA512 dd7ca2804f0143b711982cf3afd3b3a1962dba4c18a4b05cfe9229ef3ac70be5eb056146aa610239617d3582dc30da2462909cf70dc1ad6fe818b00814f12fc5 WHIRLPOOL cf81bc379682a1c690fb0229e858327dc5729d98d25daf1b6f8b6a15b4bcdb1b9ad3ab8b7384ed2e4b2226a18b2b47b95f66a25da3e5c68efc31d7c14bcafadf
|
||||
DIST eio-1.7.6.tar.bz2 359311 SHA256 958c2d81eda2e626b2ecde34942956643ca85ed0de56432f812ba1cb208157f9 SHA512 466806b0599717cb476ba85e0ef49aea256998643edd042128313dc5a125275f85b251d7033e1fc889bffbb60f1c4658d08965286a089fff9ede5a5de932373d WHIRLPOOL 0920abeb8f150e0e99337ffb14b2a248aca27156a5fa6c09e1e7b5498e2e9c440e223306366042cda4dbb18936e15dc192e7d21fc214c1b4b9e28e2fa3a6b7ff
|
||||
DIST eio-1.7.8.tar.bz2 362049 SHA256 8e26055e052b01f74b175ec98941ce9947a485db84a10c35855da54297a3363b SHA512 7aae70da2737230d76dfedc164f96fb8c51fa031d857c70f0b59f2593682264792e8d4fd764e4696e8bf9d485e7bd0efcf75a6be6a9e6ec7de1d904942d7515b WHIRLPOOL cfa447f2bab3cf62854149aab594e59afc28779a5dcd796a41e7c0ffccce987891cb52b9561a872cc036466378e2382597e71a7c292b19e093b94c446c1d2509
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eio/eio-1.7.8.ebuild,v 1.1 2013/08/28 03:10:27 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit enlightenment
|
||||
|
||||
DESCRIPTION="Enlightenment's integration to IO"
|
||||
HOMEPAGE="http://trac.enlightenment.org/e/wiki/EIO"
|
||||
SRC_URI="http://download.enlightenment.org/releases/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="examples static-libs"
|
||||
|
||||
RDEPEND=">=dev-libs/ecore-1.7.8
|
||||
>=dev-libs/eet-1.7.8"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
E_ECONF+=(
|
||||
--enable-posix-threads
|
||||
$(use_enable doc)
|
||||
$(use_enable examples build-examples)
|
||||
$(use_enable examples install-examples)
|
||||
)
|
||||
enlightenment_src_configure
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST embryo-1.7.4.tar.bz2 459454 SHA256 c8886dd5df2948cdb1463f627c2ce92faf642f29e38f0692f80f51ad3495ee67 SHA512 31d13593e46d947f41d0973b6866ba2e0c8838f0391317aeccf9ffffd97b83978c4caa8f5f5c147cba70231ce742e691b985995e13bff2e9ba5bfb5daa8f1222 WHIRLPOOL d6d2951fd2dc901bb1fa3b5b117a0b712a354f8ecddf8ce3035f9c766cad156acdfdc4529aebb2d4e955896b78dfc29adf90004ca0ac1a9953a62c3d61f4cd42
|
||||
DIST embryo-1.7.8.tar.bz2 456623 SHA256 40cadc61eb1aded84a60da39879bc768516241de81b0fba0b37118beddbe3ea7 SHA512 a0625bfa7385673a129958d594689e9e397705eb61610aaf981c1dd27f076f2ca8fdc21a66e9ae798d25fe74392808325721bda0b00370bad889f7429b81c00e WHIRLPOOL 520466202654a693653c05c1344758fb07782e4ac9681fc01aba0a4b477982f17d375af520fe69565b5cf4808ddb56f98c4957964c9d97e1af592ce2be3d9269
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue