parent
c787d2f22f
commit
1dcccd510d
@ -0,0 +1,164 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-3.4.2-r1.ebuild,v 1.1 2014/01/15 19:07:03 prometheanfire Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
#supports ruby20, but needs deps first
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
inherit elisp-common xemacs-elisp-common eutils user ruby-ng versionator
|
||||
|
||||
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"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
|
||||
IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite3 vim-syntax xemacs"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
>=dev-ruby/facter-1.6.2
|
||||
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"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( app-editors/xemacs )"
|
||||
RDEPEND="${RDEPEND}
|
||||
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
|
||||
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
|
||||
>=app-portage/eix-0.18.0"
|
||||
|
||||
SITEFILE="50${PN}-mode-gentoo.el"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_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_ruby_install() {
|
||||
${RUBY} install.rb --destdir="${D}" install || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
#systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
newinitd "${FILESDIR}"/puppet.init-r1 puppet
|
||||
|
||||
# Initial configuration files
|
||||
insinto /etc/puppet
|
||||
|
||||
# Location of log and data files
|
||||
keepdir /var/log/puppet
|
||||
fowners -R puppet:puppet /var/log/puppet
|
||||
|
||||
if use minimal ; then
|
||||
rm "${ED}/etc/puppet/auth.conf"
|
||||
else
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppetmaster.service"
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
insinto /etc/puppet
|
||||
|
||||
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/lib/puppet
|
||||
fperms 0750 /var/lib/puppet
|
||||
fi
|
||||
fperms 0750 /etc/puppet
|
||||
|
||||
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
|
||||
|
||||
# ext and examples files
|
||||
for f in $(find ext examples -type f) ; do
|
||||
docinto "$(dirname ${f})"; dodoc "${f}"
|
||||
done
|
||||
}
|
||||
|
||||
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 "Portage Puppet module with Gentoo-specific resources:"
|
||||
elog "http://forge.puppetlabs.com/gentoo/portage"
|
||||
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
|
||||
|
||||
if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then
|
||||
elog
|
||||
elog "If you're upgrading from 2.x then we strongly suggest you to read:"
|
||||
elog "http://docs.puppetlabs.com/guides/upgrading.html"
|
||||
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,24 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/PlRPC/PlRPC-0.202.0.ebuild,v 1.6 2012/09/01 11:49:30 grobian Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
MODULE_AUTHOR=MNOONING
|
||||
MODULE_SECTION=${PN}
|
||||
MODULE_VERSION=0.2020
|
||||
inherit perl-module
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
DESCRIPTION="The Perl RPC Module"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/perl-Storable-1.0.7
|
||||
>=dev-perl/Net-Daemon-0.34"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/perldoc-remove.patch" )
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-atk/ruby-atk-2.1.0.ebuild,v 1.1 2014/01/15 18:25:42 naota Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Atk bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
DEPEND="${DEPEND} dev-libs/atk"
|
||||
RDEPEND="${RDEPEND} dev-libs/atk"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-2.1.0.ebuild,v 1.1 2014/01/15 18:39:23 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
RUBY_S="ruby-gnome2-all-${PV}/cairo-gobject"
|
||||
|
||||
DESCRIPTION="Ruby cairo-gobject bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPNED="${DEPNED} x11-libs/cairo"
|
||||
RDEPEND="${RDEPEND} x11-libs/cairo"
|
||||
|
||||
ruby_add_rdepend "dev-ruby/rcairo
|
||||
>=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-clutter-gstreamer/ruby-clutter-gstreamer-2.1.0.ebuild,v 1.1 2014/01/15 19:10:02 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Clutter bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/clutter-gstreamer
|
||||
|
||||
DEPEND="${DEPEND} media-libs/clutter-gst"
|
||||
RDEPEND="${RDEPEND} media-libs/clutter-gst"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-clutter-${PV}
|
||||
>=dev-ruby/ruby-gstreamer-${PV}"
|
||||
|
||||
each_ruby_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-clutter-gtk/ruby-clutter-gtk-2.1.0.ebuild,v 1.1 2014/01/15 20:12:49 naota Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Clutter bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/clutter-gtk
|
||||
|
||||
DEPEND="${DEPEND} media-libs/clutter-gtk"
|
||||
RDEPEND="${RDEPEND} media-libs/clutter-gtk"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-clutter-${PV}
|
||||
>=dev-ruby/ruby-gtk3-${PV}"
|
||||
|
||||
each_ruby_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-clutter/ruby-clutter-2.1.0.ebuild,v 1.1 2014/01/15 18:47:22 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Clutter bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/clutter
|
||||
|
||||
DEPEND="${DEPEND} media-libs/clutter"
|
||||
RDEPEND="${RDEPEND} media-libs/clutter"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-cairo-gobject-${PV}
|
||||
>=dev-ruby/ruby-gobject-introspection-${PV}"
|
||||
|
||||
each_ruby_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gdk3/ruby-gdk3-2.1.0.ebuild,v 1.1 2014/01/15 19:36:09 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby GDK-3.x bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} x11-libs/gtk+:3"
|
||||
RDEPEND="${RDEPEND} x11-libs/gtk+:3"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gdkpixbuf2-${PV}
|
||||
>=dev-ruby/ruby-atk-${PV}
|
||||
>=dev-ruby/ruby-pango-${PV}"
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gdkpixbuf2/ruby-gdkpixbuf2-2.1.0.ebuild,v 1.1 2014/01/15 19:25:25 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
RUBY_FAKEGEM_NAME="gdk_pixbuf2"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
|
||||
|
||||
DESCRIPTION="Ruby GdkPixbuf2 bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="x11-libs/gtk+:2"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gio2/ruby-gio2-2.1.0.ebuild,v 1.1 2014/01/15 19:42:08 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby binding of GooCanvas"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-glib2/ruby-glib2-2.1.0.ebuild,v 1.1 2014/01/15 18:20:29 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Glib2 bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
RDEPEND="${RDEPEND} >=dev-libs/glib-2"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/glib-2"
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} extconf.rb || die "extconf.rb failed"
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-2.1.0.ebuild,v 1.1 2014/01/15 18:43:43 naota Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/gobject-introspection
|
||||
|
||||
DESCRIPTION="Ruby GObjectIntrosprction bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} dev-libs/gobject-introspection"
|
||||
RDEPEND="${RDEPEND} dev-libs/gobject-introspection"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-goocanvas/ruby-goocanvas-2.1.0.ebuild,v 1.1 2014/01/15 20:45:48 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby binding of GooCanvas"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
x11-libs/goocanvas:2.0"
|
||||
DEPEND="${DEPEND}
|
||||
x11-libs/goocanvas:2.0"
|
||||
|
||||
ruby_add_bdepend "dev-ruby/pkg-config
|
||||
dev-ruby/rcairo"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gtk2-${PV}"
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gstreamer/ruby-gstreamer-2.1.0.ebuild,v 1.1 2014/01/15 19:05:53 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby GStreamer bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
media-libs/gstreamer:0.10
|
||||
media-libs/gst-plugins-base:0.10"
|
||||
DEPEND="${DEPEND}
|
||||
media-libs/gstreamer:0.10
|
||||
media-libs/gst-plugins-base:0.10"
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gtk2/ruby-gtk2-2.1.0.ebuild,v 1.1 2014/01/15 20:27:42 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Gtk2 bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} x11-libs/gtk+:2
|
||||
x11-themes/hicolor-icon-theme"
|
||||
RDEPEND="${RDEPEND} x11-libs/gtk+:2"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}
|
||||
>=dev-ruby/ruby-pango-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gdkpixbuf2-${PV}
|
||||
>=dev-ruby/ruby-atk-${PV}
|
||||
>=dev-ruby/ruby-pango-${PV}"
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gtk3/ruby-gtk3-2.1.0.ebuild,v 1.1 2014/01/15 20:07:43 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Gtk3 bindings"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${DEPEND} x11-libs/gtk+:3"
|
||||
RDEPEND="${RDEPEND} x11-libs/gtk+:3"
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/ruby-glib2-${PV}
|
||||
>=dev-ruby/ruby-pango-${PV}"
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gdkpixbuf2-${PV}
|
||||
>=dev-ruby/ruby-atk-${PV}
|
||||
>=dev-ruby/ruby-gdk3-${PV}
|
||||
>=dev-ruby/ruby-gio2-${PV}"
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-gtksourceview/ruby-gtksourceview-2.1.0.ebuild,v 1.1 2014/01/15 20:54:59 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
RUBY_FAKEGEM_NAME="gtksourceview2"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
RUBY_S=ruby-gnome2-all-${PV}/gtksourceview2
|
||||
|
||||
DESCRIPTION="Ruby bindings for gtksourceview"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
x11-libs/gtksourceview:2.0"
|
||||
DEPEND="${DEPEND}
|
||||
x11-libs/gtksourceview:2.0"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-gtk2-${PV}"
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-pango/ruby-pango-2.1.0.ebuild,v 1.1 2014/01/15 19:17:50 naota Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
inherit ruby-ng-gnome2
|
||||
|
||||
DESCRIPTION="Ruby Pango bindings"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
DEPEND="${DEPEND}
|
||||
>=x11-libs/pango-1.2.1
|
||||
>=dev-ruby/rcairo-1.2.0"
|
||||
RDEPEND="${RDEPEND}
|
||||
>=x11-libs/pango-1.2.1
|
||||
>=dev-ruby/rcairo-1.2.0"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby-glib2-${PV}"
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/hub/hub-1.11.1.ebuild,v 1.1 2014/01/15 22:18:22 ottxor Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
USE_RUBY="ruby18 ruby19"
|
||||
RUBY_FAKEGEM_TASK_DOC=
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit readme.gentoo ruby-fakegem
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/webmock dev-util/cucumber )"
|
||||
|
||||
DESCRIPTION="command-line wrapper for git that makes you better at GitHub"
|
||||
HOMEPAGE="https://github.com/github/hub"
|
||||
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RDEPEND="dev-vcs/git"
|
||||
|
||||
DOC_CONTENTS="You may want to add 'alias git=hub' to your .{csh,bash}rc"
|
||||
|
||||
src_install() {
|
||||
ruby-ng_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
HSL ACADEMIC LICENCE VERSION 1.2 MAY 2011
|
||||
|
||||
|
||||
1 DEFINITIONS AND INTERPRETATION
|
||||
|
||||
In this Agreement the following expressions have the following meanings:
|
||||
|
||||
"Harmful means any virus, worm, time bomb, time lock, drop dead
|
||||
Element" device, trap and access code or anything else that
|
||||
might disrupt, disable, harm or impede the operation of
|
||||
any information system, or that might corrupt, damage,
|
||||
destroy or render inaccessible any software, data or
|
||||
file, or that may allow any unauthorised person to gain
|
||||
access to, any information system or any software, data
|
||||
or file on it;
|
||||
|
||||
"Intellectual means patents, trade marks, service marks, registered
|
||||
Property" designs, copyrights, database rights, design rights,
|
||||
know-how, confidential information, applications for
|
||||
any of the above, trade secrets and any similar right
|
||||
recognised from time to time in any jurisdiction,
|
||||
together with all rights of action in relation to the
|
||||
infringement of any of the above;
|
||||
|
||||
"Software" means the software and any accompanying documentation
|
||||
downloaded by the Licensee; and
|
||||
|
||||
"STFC" means the Science and Technology Facilities Council,
|
||||
one of whose principal offices is at Rutherford
|
||||
Appleton Laboratory, Harwell Oxford, Didcot, OX11 0QX.
|
||||
|
||||
2 LICENCE
|
||||
|
||||
2.1 In consideration of the confidentiality undertakings given by the Licensee
|
||||
pursuant to Clause 4, STFC grants the Licensee, for the duration of this
|
||||
agreement, an indefinite, non-exclusive, non-transferable licence to use
|
||||
the Software solely for personal use on the terms and conditions of this
|
||||
Agreement provided that:
|
||||
|
||||
2.1.1 the Licensee must be employed by, or a student of, a non-profit
|
||||
educational, academic or research institute;
|
||||
|
||||
2.1.2 the Licensee may not distribute any of the Software to any third
|
||||
party, or share its use with any third party (regardless of whether
|
||||
such third party is from the same institution), and the Licensee
|
||||
may not sub-license the use of any of the Software;
|
||||
|
||||
2.1.3 the Licensee may not use the Software for any commercial purposes;
|
||||
and
|
||||
|
||||
2.1.4 the Licensee may not copy any of the Software except for the
|
||||
purposes of making a reasonable number of back-up copies, nor may
|
||||
the Licensee modify the Software or incorporate or imbed it into
|
||||
any other software products, except to optimise its performance for
|
||||
the Licensee's use on a particular platform.
|
||||
|
||||
2.2 The licence granted in clause 2.1 relates only to the release of the
|
||||
Software at the date of this Agreement. The Licensee must acquire a new
|
||||
licence from STFC to use any future release of the Software.
|
||||
|
||||
2.3 The Licensee will not tamper with or remove any copyright or other
|
||||
proprietary notice or any disclaimer that appears on or in any part of
|
||||
the Software and will reproduce the same in all copies of the Software.
|
||||
|
||||
2.4 In any published work produced by the Licensee which includes results
|
||||
achieved by using the Software, the Licensee shall acknowledge that the
|
||||
Software was used in producing the results contained in such publication
|
||||
by including the following citation: "HSL, a collection of Fortran codes
|
||||
for large-scale scientific computation. See http://www.hsl.rl.ac.uk/".
|
||||
|
||||
3 WARRANTIES AND LIABILITY
|
||||
|
||||
3.1 The Software is supplied as is, including any faults.
|
||||
|
||||
3.2 To the maximum extent permitted by the law, STFC excludes all warranties
|
||||
conditions or other terms that may be implied into this Agreement whether
|
||||
by law, statute or otherwise.
|
||||
|
||||
3.3 STFC gives no condition, warranty or other term whatsoever, either
|
||||
express or implied including, without limitation, any condition, warranty
|
||||
or other term as to the condition of the Software, that the Software is
|
||||
free from any Harmful Element, or as to satisfactory quality, fitness for
|
||||
a particular purpose, non-infringement, or use of reasonable care and
|
||||
skill.
|
||||
|
||||
3.4 To the extent permitted under applicable law, STFC shall not be liable in
|
||||
contract, tort or otherwise for any loss or damage, howsoever arising in
|
||||
connection with the Software. Accordingly, the Licensee acknowledges and
|
||||
accepts that it uses the Software at its own risk.
|
||||
|
||||
3.5 STFC shall not be liable for any indirect, special, or consequential
|
||||
damages, or loss of profit, whether such damages or losses are known,
|
||||
foreseen, foreseeable or unforeseen. Nothing in this Agreement shall
|
||||
limit STFC's liability for negligently caused death or personal injury
|
||||
or fraud.
|
||||
|
||||
4 NON-DISCLOSURE AGREEMENT
|
||||
|
||||
4.1 In consideration of the disclosure by STFC to the Licensee of the
|
||||
Software, the Licensee undertakes that it will respect and preserve the
|
||||
confidentiality of the Software for a period of five years after the date
|
||||
of such disclosure (subject to clause 4.2 below).
|
||||
|
||||
4.2 The obligations contained in this clause 4 shall not apply, or shall
|
||||
cease to apply, to such part of the Software as the Licensee can show to
|
||||
the reasonable satisfaction of STFC:
|
||||
|
||||
4.2.1 has become public knowledge other than through the fault of the Licensee;
|
||||
or
|
||||
|
||||
4.2.2 was already known to the Licensee prior to disclosure to it by STFC; or
|
||||
|
||||
4.2.3 has been received from a third party who neither acquired it in
|
||||
confidence from STFC, nor owed STFC a duty of confidence in respect of it.
|
||||
|
||||
5 PROPERTY RIGHTS
|
||||
|
||||
5.1 The Software is proprietary to STFC. The Licensee acknowledges that any
|
||||
disclosure pursuant to this agreement shall not confer on the Licensee
|
||||
any Intellectual Property or other rights in relation to the Software.
|
||||
|
||||
5.2 Ownership of all complete or partial copies of the Software shall at all
|
||||
times remain with STFC. The Licensee agrees to mark any copies of the
|
||||
Software which it may make in any tangible medium with a notice that such
|
||||
copy belongs to STFC.
|
||||
|
||||
6 TERMINATION
|
||||
|
||||
6.1 The Licensee may terminate the Agreement at any time by giving at least
|
||||
30 days' prior written notice to STFC.
|
||||
|
||||
6.2 The Agreement shall terminate automatically in the event that the
|
||||
Licensee no longer fulfils the requirements of clause 2.1.1.
|
||||
|
||||
6.3 STFC may terminate the Agreement immediately on giving notice in writing
|
||||
to the Licensee if the Licensee commits any serious breach of any term of
|
||||
this Agreement and fails (in the case of a breach capable of being
|
||||
remedied), within 10 days after the receipt of a request in writing from
|
||||
the STFC to do so, to remedy the breach (such request to contain a
|
||||
warning of the STFC's intention to terminate).
|
||||
|
||||
6.4 Immediately upon the termination of the Agreement the Licensee shall
|
||||
destroy the Software and all copies of the whole or any part thereof and
|
||||
certify in writing to STFC that they have been destroyed.
|
||||
|
||||
6.5 Any termination of this Agreement (howsoever occasioned) shall not affect
|
||||
any accrued rights or liabilities of either party nor shall it affect the
|
||||
coming into force or the continuance in force of any provision in this
|
||||
Agreement which is expressly or by implication intended to come into or
|
||||
continue in force on or after such termination.
|
||||
|
||||
7 GENERAL
|
||||
|
||||
7.1 STFC may assign any of its rights and obligations under this Agreement,
|
||||
upon written notice, to any affiliated organization or to a statutory
|
||||
successor. Any assignment shall be subject to the assignee undertaking to
|
||||
observe the terms and conditions of this Agreement.
|
||||
|
||||
7.2 The Licensee may not assign, transfer, charge, sublicense or otherwise
|
||||
deal in or dispose of in whole or in part any of its rights or
|
||||
obligations under this Agreement without the prior written consent of
|
||||
STFC (such consent not to be unreasonably withheld or delayed).
|
||||
|
||||
7.3 Nothing in this Agreement will constitute or will be deemed to constitute
|
||||
between the parties a partnership, association, joint venture or other
|
||||
co-operative entity, or constitute the relationship of principal and
|
||||
agent.
|
||||
|
||||
7.4 Neither party shall have any liability under or be deemed in breach of
|
||||
this Agreement for any delays or failures in performance of this
|
||||
Agreement which result from circumstances beyond the reasonable control
|
||||
of that party including, without limitation, fire, explosion, flood,
|
||||
tempest, unusually adverse weather conditions, failure or shortage of
|
||||
power supplies, war, hostilities, riot or acts of terrorism. The party
|
||||
affected by such circumstances shall promptly notify the other party in
|
||||
writing when such circumstances cause a delay or failure in performance
|
||||
and when they cease to do so. If circumstances continue for a continuous
|
||||
period of one (1) month, either party may terminate this Agreement by
|
||||
written notice to the other party.
|
||||
|
||||
7.5 No forbearance, delay or indulgence by either party in enforcing the
|
||||
provisions of this Agreement shall prejudice or restrict the rights of
|
||||
that party nor shall any waiver of its rights operate as a waiver of any
|
||||
subsequent breach and no right, power or remedy herein conferred upon or
|
||||
reserved for either party is exclusive of any other right, power or
|
||||
remedy available to that party and each such right, power or remedy shall
|
||||
be cumulative.
|
||||
|
||||
7.6 This Agreement supersedes all prior agreements, arrangements and
|
||||
understandings between the parties and constitutes the entire agreement
|
||||
between the parties relating to the subject matter hereof (save that
|
||||
neither party seeks to exclude liability for any fraudulent
|
||||
pre-contractual misrepresentation upon which the other party can be shown
|
||||
to have relied). The Licensee hereby warrants to STFC that the Licensee
|
||||
has not been induced to enter into this Agreement by any prior
|
||||
representations or warranties, whether oral or in writing, except as
|
||||
specifically contained in this Agreement and the Licensee hereby
|
||||
irrevocably and unconditionally waives any right it may have to claim
|
||||
damages for any misrepresentation not contained in this Agreement or for
|
||||
breach of any warranty not contained herein (unless such
|
||||
misrepresentation or warranty was made fraudulently and was relied upon
|
||||
by the Licensee) and/or to rescind this Agreement. No addition to or
|
||||
modification of any provision of this Agreement shall be binding upon the
|
||||
parties unless made by a written instrument signed by a duly authorised
|
||||
representative of each of the parties.
|
||||
|
||||
7.7 Notwithstanding that the whole or any part of any provision of this
|
||||
Agreement may prove to be illegal or unenforceable the other provisions
|
||||
of this Agreement and the remainder of the provision in question shall
|
||||
remain in full force and effect.
|
||||
|
||||
7.8 The parties confirm their intent not to confer any rights on any third
|
||||
parties by virtue of this Agreement and accordingly the Contracts (Rights
|
||||
of Third parties) Act 1999 shall not apply to this Agreement.
|
||||
|
||||
7.9 This agreement shall be interpreted and construed in accordance with the
|
||||
laws of England and Wales. The English Courts will have exclusive
|
||||
jurisdiction to deal with any dispute which has arisen or may arise out
|
||||
of or in connection with this Agreement, however STFC may enforce the
|
||||
Licensee's obligation of confidence in the courts of any jurisdiction
|
||||
having competence to issue an injunction directly enforceable against
|
||||
the Licensee.
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsaequal/alsaequal-0.6-r2.ebuild,v 1.1 2014/01/15 18:06:44 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="a real-time adjustable equalizer plugin for ALSA"
|
||||
HOMEPAGE="http://www.thedigitalmachine.net/alsaequal.html"
|
||||
SRC_URI="http://www.thedigitalmachine.net/tools/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/alsa-lib[${MULTILIB_USEDEP}]
|
||||
>=media-plugins/caps-plugins-0.9.11[${MULTILIB_USEDEP}]
|
||||
abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r3
|
||||
!app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
DOCS=( README )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-asneeded.patch
|
||||
epatch "${FILESDIR}"/${P}-eq-name.patch
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS} -Wall -fPIC -DPIC" \
|
||||
LD="$(tc-getCC)" \
|
||||
LDFLAGS="${LDFLAGS} -shared" \
|
||||
Q= \
|
||||
SND_PCM_LIBS="-lasound" \
|
||||
SND_CTL_LIBS="-lasound" || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
exeinto /usr/$(get_libdir)/alsa-lib
|
||||
doexe *.so || die
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
Description: Fix CAPS Eq plugin name
|
||||
Origin: vendor
|
||||
Bug-Debian: http://bugs.debian.org/721355
|
||||
Forwarded: no
|
||||
Author: Alessandro Ghedini <ghedo@debian.org>
|
||||
Last-Update: 2013-08-30
|
||||
|
||||
--- a/ctl_equal.c
|
||||
+++ b/ctl_equal.c
|
||||
@@ -167,7 +167,7 @@
|
||||
snd_ctl_equal_t *equal;
|
||||
const char *controls = ".alsaequal.bin";
|
||||
const char *library = "/usr/lib/ladspa/caps.so";
|
||||
- const char *module = "Eq";
|
||||
+ const char *module = "Eq10";
|
||||
long channels = 2;
|
||||
const char *sufix = " Playback Volume";
|
||||
int err, i, index;
|
||||
--- a/pcm_equal.c
|
||||
+++ b/pcm_equal.c
|
||||
@@ -151,7 +151,7 @@
|
||||
snd_config_t *sconf = NULL;
|
||||
const char *controls = ".alsaequal.bin";
|
||||
const char *library = "/usr/lib/ladspa/caps.so";
|
||||
- const char *module = "Eq";
|
||||
+ const char *module = "Eq10";
|
||||
long channels = 2;
|
||||
int err;
|
||||
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -1,11 +1,11 @@
|
||||
Alsaequal is a real-time adjustable equalizer plugin for ALSA. It can
|
||||
be adjusted using any ALSA compatible mixer, e.g. alsamixergui.
|
||||
|
||||
-Alsaequal uses the Eq CAPS LADSPA Plugin for audio processing, actually
|
||||
+Alsaequal uses the Eq10 CAPS LADSPA Plugin for audio processing, actually
|
||||
alsaequal is a generic LADSPA plugin interface with real-time access to
|
||||
the LADSPA controls (the LADSPA plugin included with alsa doesn't allow
|
||||
for real-time controls) but it was developed for and only tested with
|
||||
-Eq CAPS LADSPA plugin. You are welcome to try it with other plugins, it
|
||||
+Eq10 CAPS LADSPA plugin. You are welcome to try it with other plugins, it
|
||||
may work. Let me know how it goes, you can reach me at
|
||||
<charles@thedigitalmachine.net>.
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
library -- location of the LADSPA library, the default is
|
||||
"/usr/lib/ladspa/caps.so"
|
||||
module -- module name within the LADSPA library, the deafault
|
||||
- is "Eq"
|
||||
+ is "Eq10"
|
||||
channels -- number of channels, the default is 2
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
library -- location of the LADSPA library, the default is
|
||||
"/usr/lib/ladspa/caps.so"
|
||||
module -- module name within the LADSPA library, the deafault
|
||||
- is "Eq"
|
||||
+ is "Eq10"
|
||||
channels -- number of channels, the default is 2
|
||||
}
|
||||
|
@ -0,0 +1,183 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r4.ebuild,v 1.1 2014/01/15 19:44:27 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils fdo-mime gnome2-utils pax-utils unpacker
|
||||
|
||||
DESCRIPTION="Spotify is a social music platform"
|
||||
HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
|
||||
MY_PV="${PV}.g644e24e.428-1"
|
||||
MY_P="${PN}-client_${MY_PV}"
|
||||
SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
|
||||
SRC_URI="
|
||||
x86? ( ${SRC_BASE}${MY_P}_i386.deb )
|
||||
amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
|
||||
"
|
||||
LICENSE="Spotify"
|
||||
SLOT="0"
|
||||
#amd64 and x86 keywords removed due to security concerns, see bug 474010
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gnome pax_kernel pulseaudio"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
x11-libs/libxcb
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXau
|
||||
x11-libs/libXext
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
dev-qt/qtcore:4[qt3support]
|
||||
dev-qt/qtdbus:4
|
||||
dev-qt/qtgui:4[qt3support]
|
||||
dev-qt/qtwebkit:4
|
||||
x11-misc/xdg-utils
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
dev-libs/openssl:0
|
||||
dev-libs/glib:2
|
||||
dev-libs/libgcrypt:0/11
|
||||
media-libs/libpng:1.2
|
||||
dev-db/sqlite:3
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
sys-apps/dbus
|
||||
sys-apps/util-linux
|
||||
dev-libs/expat
|
||||
>=dev-libs/nspr-4.9
|
||||
gnome-base/gconf:2
|
||||
x11-libs/gtk+:2
|
||||
dev-libs/nss
|
||||
dev-libs/glib:2
|
||||
net-print/cups
|
||||
virtual/udev
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
|
||||
gnome? ( gnome-extra/gnome-integration-spotify )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="/opt/spotify/spotify-client/spotify
|
||||
/opt/spotify/spotify-client/Data/SpotifyHelper
|
||||
/opt/spotify/spotify-client/libcef.so"
|
||||
|
||||
src_prepare() {
|
||||
# link against openssl-1.0.0 as it crashes with 0.9.8
|
||||
sed -i \
|
||||
-e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
|
||||
opt/spotify/spotify-client/spotify || die "sed failed"
|
||||
sed -i \
|
||||
-e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
|
||||
opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
|
||||
# different NSPR / NSS library names for some reason
|
||||
sed -i \
|
||||
-e 's/\(lib\(plc4\|nspr4\).so\).9\(.\)/\1.0d\3\3/g' \
|
||||
opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
|
||||
sed -i \
|
||||
-e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1\x00\x00\x00/g' \
|
||||
-e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1\x00\x00\3\3/g' \
|
||||
opt/spotify/spotify-client/Data/libcef.so || die "sed failed"
|
||||
# Fix desktop entry to launch spotify-dbus.py for GNOME integration
|
||||
if use gnome ; then
|
||||
sed -i \
|
||||
-e 's/spotify \%U/spotify-dbus.py \%U/g' \
|
||||
opt/spotify/spotify-client/spotify.desktop || die "sed failed"
|
||||
fi
|
||||
#and fix other stuff in the desktop file as well
|
||||
sed -i \
|
||||
-e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
|
||||
-e 's/AudioVideo$/AudioVideo\;/g' \
|
||||
opt/spotify/spotify-client/spotify.desktop || die "sed failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc opt/spotify/spotify-client/changelog
|
||||
dodoc usr/share/doc/spotify-client/changelog.Debian.gz
|
||||
dodoc usr/share/doc/spotify-client/copyright
|
||||
|
||||
insinto /usr/share/pixmaps
|
||||
doins opt/spotify/spotify-client/Icons/*.png
|
||||
|
||||
# install in /opt/spotify
|
||||
SPOTIFY_HOME=/opt/spotify/spotify-client
|
||||
insinto ${SPOTIFY_HOME}
|
||||
doins -r opt/spotify/spotify-client/*
|
||||
fperms +x ${SPOTIFY_HOME}/spotify
|
||||
fperms +x ${SPOTIFY_HOME}/Data/SpotifyHelper
|
||||
|
||||
dodir /usr/bin
|
||||
cat <<-EOF >"${D}"/usr/bin/spotify
|
||||
#! /bin/sh
|
||||
LD_PRELOAD="\${LD_PRELOAD} ${SPOTIFY_HOME}/libcef.so"
|
||||
export LD_PRELOAD
|
||||
exec ${SPOTIFY_HOME}/spotify "\$@"
|
||||
EOF
|
||||
fperms +x /usr/bin/spotify
|
||||
|
||||
# revdep-rebuild produces a false positive because of symbol versioning
|
||||
dodir /etc/revdep-rebuild
|
||||
cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
|
||||
SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
|
||||
EOF
|
||||
|
||||
for size in 16 22 24 32 48 64 128 256; do
|
||||
newicon -s ${size} "${S}${SPOTIFY_HOME}/Icons/spotify-linux-${size}.png" \
|
||||
"spotify-client.png"
|
||||
done
|
||||
domenu "${S}${SPOTIFY_HOME}/spotify.desktop"
|
||||
|
||||
if use pax_kernel; then
|
||||
#create the headers, reset them to default, then paxmark -m them
|
||||
pax-mark C "${ED}"/opt/${PN}/spotify-client/${PN} || die
|
||||
pax-mark C "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die
|
||||
pax-mark z "${ED}"/opt/${PN}/spotify-client/${PN} || die
|
||||
pax-mark z "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die
|
||||
pax-mark m "${ED}"/opt/${PN}/spotify-client/${PN} || die
|
||||
pax-mark m "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die
|
||||
eqawarn "You have set USE=pax_kernel meaning that you intendto run"
|
||||
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
|
||||
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
|
||||
eqawarn "you suspect that ${PN} is being broken by this modification,"
|
||||
eqawarn "please open a bug."
|
||||
fi
|
||||
|
||||
#hack to fix the nspr linking in spotify
|
||||
dosym /usr/lib/libnspr4.so /opt/spotify/spotify-client/libnspr4.so.9
|
||||
dosym /usr/lib/libplc4.so /opt/spotify/spotify-client/libplc4.so.9
|
||||
sed -i 's/libcef\.so/libcef\.so\ \/opt\/spotify\/spotify\-client\/libnspr4\.so\.9\ \/opt\/spotify\/spotify\-client\/libplc4\.so\.9/g' "${ED}/usr/bin/spotify"
|
||||
|
||||
#TODO maybe this symlink is not needed and could be fixed with previous sed
|
||||
dosym /opt/${PN}/spotify-client/Data/libcef.so /opt/${PN}/spotify-client/
|
||||
|
||||
#TODO fix for x86
|
||||
dosym /usr/lib/libudev.so /opt/${PN}/spotify-client/Data/libudev.so.0
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
|
||||
ewarn "To remove the cache:"
|
||||
ewarn "rm -rf ~/.cache/spotify"
|
||||
ewarn
|
||||
ewarn "you need to use the ld.bfd linker with openssl"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1 +1 @@
|
||||
Wed, 15 Jan 2014 17:37:01 +0000
|
||||
Thu, 16 Jan 2014 05:07:03 +0000
|
||||
|
@ -1 +1 @@
|
||||
Wed, 15 Jan 2014 17:37:01 +0000
|
||||
Thu, 16 Jan 2014 05:07:03 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue