parent
15ac771957
commit
a3268397a3
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 28823 BLAKE2B be78364addc9a76ea109521ecbfb51dd399f5342caf8b138631a3eb0b476248e82b90ada0590396885b86bd707a93b7938d4c4f8aaa6848bbf202333c5214c6b SHA512 d97d6bb6bead351b90f9c51e334492ae218b03875409e4516803864703969cd99f2af36485cb90721d54e103f00c3ede2401bcce2665215136610d9c1aa42a5e
|
||||
TIMESTAMP 2018-01-29T06:38:18Z
|
||||
MANIFEST Manifest.files.gz 28842 BLAKE2B 18377b93374132373f4e94e3c9f0a0f41e556c0e0151972b7932b610f5cc71178fdd848c7db6901e9038dbf988f9e3617165d25fe1e74f5d0316a90fa1f1ed7b SHA512 290ac92c24ddf4b3611f318db240ec2e00f7212e41672acf6e1c935cd23166b3833191150da63dc5cd632e963549317ad0b761153070bbc7541bdcd8102ffafb
|
||||
TIMESTAMP 2018-01-29T09:38:18Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlpuwVpfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlpu64pfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klAkAw//fVW9tu0ASeutha+jlnIVAZKvodl9jYJWalq1F8vwlkmxSQA93sY9EgV/
|
||||
6Kt8a0mYmmfxEn1+rBRf8oMNPDevc3ygxicuaMoWrcLL43l3SrB0kg1kp+Ab1WT+
|
||||
B9Uni9LbrFAB5knCvfPhbLx2GEf/J7WQABxLdTehFgUGAxeEAQmKHXI0gO2C9u+a
|
||||
5kCXbYNSp1HhYIXNn6pfLtFIHlPdWqm2UA93tBMNxc7eI3McC4HFTRr0zpLJLDUn
|
||||
RwmJ0hIXffqWUF9zdZjZ6rkV/ZorFFTVoKlnpUtg+Embd7TPQ+TOQtsEnGwgtB81
|
||||
S69oa0XpdfOBiP6JcS8BK0vKLXhr5pnjdr2PvmoWzMFgj5GyGO0NfgUB+KLtbbeY
|
||||
NXcVdVyZFXskdu+FOBN4guuA7g0vVaG+GM8apvPOTTeUewmYFH2oMmVK688j7Fqs
|
||||
TGLJN1sQTAvmFNR9Ul/oT9WkYSWAwjPxq3embkDhCchhquYo/IUadIvtSA+PletH
|
||||
UwlLQUOiec0MllOTFBBTq0gB1rUtN9qZ3LrtRtr9sUaAxetWBUdrOYeomCYm2ddL
|
||||
PKc3zlNuMqeHf5UhzYFandChcbO8HQeHMqt+YaB9JKgGc3UuuMt2ZDW74UQ+3Aqx
|
||||
7OjBNd9d1bGTBHI7OyYmimJuQSTOmFGNlf+MTA7Jd+JL+VpR5hU=
|
||||
=T4eO
|
||||
klD6tQ/9EuK3mEPT3wQVLLbKE+CU1yDh47hYicYYnmjCiIXwPRnQgJT9TpbpMwTq
|
||||
AlgZuXjHWP6jVrW8Ke3trhhwvIBAkZUf/MnnWxgTc4fBi6+z0bzWaFa8oYG8hUgh
|
||||
tZ9jwP4swhYAzD4TZh4yZTh0nS5LGJyaB9MF21FMus+rwc4CsMYE6FmaR+VYAM5i
|
||||
HSpkoglvrKb/25TCLBSUj7Ct8Ieo5OgAW1hh3TAsGSQ0cuHqcHaKrD3zM7estgzM
|
||||
aMN/vCcuxU1U1wNJ45mkiGmTxMxFb55wJEjFkhhSCfCkF1YbSOn+jHOBMQheEYiK
|
||||
ZW8agULNhQaNYiHsD2dhz548haaUt2JaeYzMBygCR8gUAOvLLn1Oxf8Pzy+LgIbK
|
||||
PMO7TlJeirNexvM7op9d9s3f/rOlQEIeIdNCA/iNQC+e0eMBEEG/k+W7ddcUOB1W
|
||||
sS/OW8rIG9xGcogg0Nbzt6YVTJB3j+pKzYLpgm0PrIkJwaFs8WwF68oJLYCkab7B
|
||||
fclPLXBFgb62H85DTHjxhnguE6uXmG62Pzxs8+3r8by1x01L2yfMwRQAQXL+Dr9G
|
||||
GSoUA7WdSDdz54PE85/t5sfoVe4RDQQer2Qy6/SmBJrO8jqOqMMf1YID6jL+7vOF
|
||||
+0i1cGXg8EcwJ1LS5TQjXY8PYgySNkIycYsaCrzEkh3lEUtLJKk=
|
||||
=ekFX
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,147 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
USE_RUBY="ruby22 ruby23 ruby24"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="doc:all"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="locales"
|
||||
|
||||
inherit eutils user ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A system automation and configuration management software."
|
||||
HOMEPAGE="http://puppetlabs.com/"
|
||||
SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="augeas diff doc emacs ldap rrdtool selinux shadow sqlite vim-syntax"
|
||||
RESTRICT="test"
|
||||
|
||||
ruby_add_rdepend "
|
||||
dev-ruby/hiera
|
||||
dev-ruby/json:=
|
||||
>=dev-ruby/facter-3.0.0
|
||||
augeas? ( dev-ruby/ruby-augeas )
|
||||
diff? ( dev-ruby/diff-lcs )
|
||||
doc? ( dev-ruby/rdoc )
|
||||
ldap? ( dev-ruby/ruby-ldap )
|
||||
shadow? ( dev-ruby/ruby-shadow )
|
||||
sqlite? ( dev-ruby/sqlite3 )
|
||||
virtual/ruby-ssl
|
||||
dev-ruby/hocon"
|
||||
|
||||
ruby_add_bdepend "
|
||||
doc? ( dev-ruby/yard )
|
||||
test? (
|
||||
dev-ruby/mocha
|
||||
dev-ruby/rack
|
||||
dev-ruby/rspec-its
|
||||
)"
|
||||
# this should go in the above lists, but isn't because of test deps not being keyworded
|
||||
# dev-ruby/rspec-collection_matchers
|
||||
|
||||
RDEPEND+=" ${RDEPEND}
|
||||
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"
|
||||
PDEPEND="emacs? ( >=app-emacs/puppet-mode-0.3-r1 )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/lib/puppet puppet
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid spec that require unpackaged json-schema.
|
||||
rm spec/lib/matchers/json.rb $( grep -Rl matchers/json spec) || die
|
||||
|
||||
# can't be run within portage.
|
||||
epatch "${FILESDIR}/puppet-fix-tests-4.7.0.patch"
|
||||
|
||||
# fix systemd path
|
||||
epatch "${FILESDIR}/puppet-systemd.patch"
|
||||
|
||||
# backport upstream fix for ruby 2.3.6 compatibility
|
||||
epatch "${FILESDIR}/puppet-4-webrick-ruby.patch"
|
||||
|
||||
# Avoid specs that can only run in the puppet.git repository. This
|
||||
# should be narrowed down to the specific specs.
|
||||
rm spec/integration/parser/compiler_spec.rb || die
|
||||
|
||||
# Avoid failing spec that need further investigation.
|
||||
rm spec/unit/module_tool/metadata_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
# dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
# systemd stuffs
|
||||
insinto /usr/lib/systemd/system
|
||||
doins "${WORKDIR}/all/${P}/ext/systemd/puppet.service"
|
||||
|
||||
# tmpfiles stuff
|
||||
insinto /usr/lib/tmpfiles.d
|
||||
newins "${FILESDIR}/tmpfiles.d" "puppet.conf"
|
||||
|
||||
# openrc init stuff
|
||||
newinitd "${FILESDIR}"/puppet.init-4.x puppet
|
||||
newinitd "${FILESDIR}"/puppetmaster.init-4.x puppetmaster
|
||||
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
|
||||
|
||||
keepdir /etc/puppetlabs/puppet/ssl
|
||||
|
||||
keepdir /var/lib/puppet/facts
|
||||
keepdir /var/lib/puppet/files
|
||||
fowners -R puppet:puppet /var/lib/puppet
|
||||
|
||||
fperms 0750 /var/lib/puppet
|
||||
|
||||
fperms 0750 /etc/puppetlabs
|
||||
fperms 0750 /etc/puppetlabs/puppet
|
||||
fperms 0750 /etc/puppetlabs/puppet/ssl
|
||||
fowners -R :puppet /etc/puppetlabs
|
||||
fowners -R :puppet /var/lib/puppet
|
||||
|
||||
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
|
||||
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if [ "$(get_major_version $v)" = "4" ]; then
|
||||
elog
|
||||
elog "Please see the following url for the release notes for puppet-5"
|
||||
elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"
|
||||
elog
|
||||
fi
|
||||
done
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,245 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.2.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl tk xemacs ncurses +readline"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db:= )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
tk? (
|
||||
dev-lang/tcl:0=[threads]
|
||||
dev-lang/tk:0=[threads]
|
||||
)
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20141227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BUNDLED_GEMS="
|
||||
>=dev-ruby/minitest-5.4.3[ruby_targets_ruby22]
|
||||
>=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22]
|
||||
>=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22]
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
${BUNDLED_GEMS}
|
||||
virtual/rubygems[ruby_targets_ruby22]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby22]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby22]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -rf \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
# Remove bundled gems that we will install via PDEPEND, bug
|
||||
# 539700. Use explicit version numbers to ensure rm fails when they
|
||||
# change so we can update dependencies accordingly.
|
||||
rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local modules= myconf=
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
if ! use tk ; then
|
||||
modules="${modules},tk"
|
||||
fi
|
||||
|
||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
||||
# #564272
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_with jemalloc jemalloc) \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${S}:${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -rf "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(21|22|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
--- scala-2.12.4-orig/project/VersionUtil.scala 2017-10-11 09:05:11.000000000 +1100
|
||||
+++ scala-2.12.4/project/VersionUtil.scala 2018-01-29 15:58:57.205758665 +1100
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import sbt.{stringToProcess => _, _}
|
||||
import Keys._
|
||||
-import java.util.{Date, Locale, Properties, TimeZone}
|
||||
+import java.util.{Calendar, Date, Locale, Properties, TimeZone}
|
||||
import java.io.{File, FileInputStream}
|
||||
import java.text.SimpleDateFormat
|
||||
|
||||
@@ -65,18 +65,13 @@
|
||||
val log = sLog.value
|
||||
val (dateObj, sha) = {
|
||||
try {
|
||||
- // Use JGit to get the commit date and SHA
|
||||
- import org.eclipse.jgit.storage.file.FileRepositoryBuilder
|
||||
- import org.eclipse.jgit.revwalk.RevWalk
|
||||
- val db = new FileRepositoryBuilder().findGitDir.build
|
||||
- val head = db.resolve("HEAD")
|
||||
- if (head eq null) {
|
||||
- log.info("No git HEAD commit found -- Using current date and 'unknown' SHA")
|
||||
- (new Date, "unknown")
|
||||
- } else {
|
||||
- val commit = new RevWalk(db).parseCommit(head)
|
||||
- (new Date(commit.getCommitTime.toLong * 1000L), commit.getName.substring(0, 7))
|
||||
- }
|
||||
+ val commit = "c2a5883891a68180b143eb462c8b0cebc8d3b02"
|
||||
+ val cal = Calendar.getInstance();
|
||||
+ cal.set(Calendar.YEAR, 2017);
|
||||
+ cal.set(Calendar.MONTH, Calendar.OCTOBER);
|
||||
+ cal.set(Calendar.DAY_OF_MONTH, 11);
|
||||
+ val date = cal.getTime();
|
||||
+ (date, commit.substring(0, 7))
|
||||
} catch {
|
||||
case ex: Exception =>
|
||||
log.error("Could not determine commit date + SHA: " + ex)
|
@ -0,0 +1,214 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit eutils check-reqs java-pkg-2 versionator
|
||||
|
||||
SV="$(get_version_component_range 1-2)"
|
||||
|
||||
# Note: to bump scala, some things to try are:
|
||||
# 1. update all the sha1s in JURI
|
||||
# 2. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.gz
|
||||
# and https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.gz from
|
||||
# SRC_URI
|
||||
# 3. try emerge scala. Check if it downloads more stuff in src_compile to
|
||||
# ${WORKDIR}/.ivy2 or ${WORKDIR}/.sbt or /root/.ivy2 or /root/.sbt
|
||||
# 4. tar up all the .ivy2 and .sbt junk into ${P}-ivy2-deps.tar.xz and
|
||||
# ${P}-sbt-deps.tar.xz and add them to SRC_URI:
|
||||
# XZ_OPT=-9 tar --owner=portage --group=portage \
|
||||
# -cJf /usr/portage/distfiles/${P}-ivy2-deps.tar.xz .ivy2/cache
|
||||
# XZ_OPT=-9 tar --owner=portage --group=portage \
|
||||
# -cJf /usr/portage/distfiles/${P}-sbt-deps.tar.xz .sbt
|
||||
|
||||
# creating the binary:
|
||||
# FEATURES="noclean -test" USE="doc source" emerge dev-lang/scala
|
||||
# cd $WORDKIR
|
||||
# XZ_OPT=-9 tar --owner=portage --group=portage \
|
||||
# -cJf /usr/portage/distfiles/${P}-gentoo-binary.tar.xz .ivy2/local \
|
||||
# ${P}/build/pack/bin ${P}/build/quick/classes/scala-dist/man/man1 \
|
||||
# ${P}/src/library ${P}/src/library-aux ${P}/src/reflect ${P}/doc/README \
|
||||
# ${P}/build/scaladoc
|
||||
|
||||
# In the pullJarFiles function in tools/binary-repo-lib.sh it executes find commands
|
||||
# to search for .desired.sha1 files, which contain sha1 hashes that are appended
|
||||
# to ${BURI} along with the subdirectory and filename to form the list of jar files
|
||||
# listed in SRC_URI. The output of this find command can be hacked into the desired format:
|
||||
# find . -name \*.desired.sha1 -exec sed -e 's@\([0-9a-f]*\).*@\1@' {} \; -print
|
||||
# After editing it into the desired format: sort -t / -k 3 file
|
||||
|
||||
BURI="http://repo.typesafe.com/typesafe/scala-sha-bootstrap/org/scala-lang/bootstrap"
|
||||
|
||||
declare -a JURI=(
|
||||
"${BURI}/943cd5c8802b2a3a64a010efb86ec19bac142e40/lib/ant/ant-contrib.jar -> ${P}-ant-contrib.jar"
|
||||
"${BURI}/3fc1e35ca8c991fc3488548f7a276bd9053c179d/lib/ant/ant-dotnet-1.0.jar -> ${P}-ant-dotnet-1.0.jar"
|
||||
"${BURI}/7b456ca6b93900f96e58cc8371f03d90a9c1c8d1/lib/ant/ant.jar -> ${P}-ant.jar"
|
||||
"${BURI}/7e50e3e227d834695f1e0bf018a7326e06ee4c86/lib/ant/maven-ant-tasks-2.1.1.jar -> ${P}-maven-ant-tasks-2.1.1.jar"
|
||||
"${BURI}/2c61d6e9a912b3253194d5d6d3e1db7e2545ac4b/lib/ant/vizant.jar -> ${P}-vizant.jar"
|
||||
"${BURI}/e737b123d31eede5594ceda07caafed1673ec472/test/files/codelib/code.jar -> ${P}-code.jar"
|
||||
"${BURI}/02fe2ed93766323a13f22c7a7e2ecdcd84259b6c/test/files/lib/annotations.jar -> ${P}-annotations.jar"
|
||||
"${BURI}/981392dbd1f727b152cd1c908c5fce60ad9d07f7/test/files/lib/enums.jar -> ${P}-enums.jar"
|
||||
"${BURI}/b1ec8a095cec4902b3609d74d274c04365c59c04/test/files/lib/genericNest.jar -> ${P}-genericNest.jar"
|
||||
"${BURI}/346d3dff4088839d6b4d163efa2892124039d216/test/files/lib/jsoup-1.3.1.jar -> ${P}-jsoup-1.3.1.jar"
|
||||
"${BURI}/3794ec22d9b27f2b179bd34e9b46db771b934ec3/test/files/lib/macro210.jar -> ${P}-macro210.jar"
|
||||
"${BURI}/be8454d5e7751b063ade201c225dcedefd252775/test/files/lib/methvsfield.jar -> ${P}-methvsfield.jar"
|
||||
"${BURI}/cd33e0a0ea249eb42363a2f8ba531186345ff68c/test/files/lib/nest.jar -> ${P}-nest.jar"
|
||||
"${BURI}/1b11ac773055c1e942c6b5eb4aabdf02292a7194/test/files/speclib/instrumented.jar -> ${P}-instrumented.jar"
|
||||
)
|
||||
|
||||
DESCRIPTION="The Scala Programming Language"
|
||||
HOMEPAGE="http://www.scala-lang.org/"
|
||||
SRC_URI="
|
||||
!binary? (
|
||||
https://github.com/scala/scala/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.xz
|
||||
https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.xz
|
||||
${JURI[@]} )
|
||||
binary? (
|
||||
https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz )"
|
||||
LICENSE="BSD"
|
||||
SLOT="${SV}/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
|
||||
IUSE="binary emacs"
|
||||
|
||||
COMMON_DEP="dev-java/ant-core:0
|
||||
dev-java/jline:2"
|
||||
|
||||
DEPEND="${COMMON_DEP}
|
||||
!binary? (
|
||||
=virtual/jdk-1.8*
|
||||
>=dev-java/sbt-0.13.13
|
||||
media-gfx/graphviz
|
||||
)
|
||||
binary? (
|
||||
>=virtual/jdk-1.8
|
||||
)
|
||||
app-arch/xz-utils:0"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.8
|
||||
app-eselect/eselect-scala
|
||||
!dev-lang/scala-bin:0"
|
||||
|
||||
PDEPEND="emacs? ( app-emacs/scala-mode:0 )"
|
||||
|
||||
CHECKREQS_MEMORY="1536M"
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
if ! use binary; then
|
||||
debug-print "Checking for sufficient physical RAM"
|
||||
|
||||
ewarn "This package can fail to build with memory allocation errors in some cases."
|
||||
ewarn "If you are unable to build from sources, please try USE=binary"
|
||||
ewarn "for this package. See bug #181390 for more information."
|
||||
|
||||
check-reqs_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# Unpack tar files only.
|
||||
for f in ${A} ; do
|
||||
[[ ${f} == *".tar."* ]] && unpack ${f}
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
java-pkg_getjars ant-core,jline-2
|
||||
|
||||
if ! use binary; then
|
||||
local a
|
||||
for a in "${JURI[@]}"
|
||||
do
|
||||
echo "${a}"
|
||||
local g="${a/* -> /}"
|
||||
echo "${g}"
|
||||
local j="${a/ -> */}"
|
||||
echo "${j}"
|
||||
cp -p "${DISTDIR}/${g}" "${S}/${j#${BURI}/*/}" || die
|
||||
done
|
||||
|
||||
# gentoo patch (by gienah) to stop it calling git log in the build
|
||||
eapply "${FILESDIR}/${P}-no-git.patch"
|
||||
|
||||
local SBT_PVR="$(java-config --query=PVR --package=sbt)"
|
||||
sed -e "s@sbt.version=0.13.11@sbt.version=${SBT_PVR}@" \
|
||||
-i "${S}/project/build.properties" \
|
||||
|| die "Could not set sbt.version=${SBT_PVR} in project/build.properties"
|
||||
|
||||
cat <<- EOF > "${S}/sbt"
|
||||
#!/bin/bash
|
||||
gjl_package=sbt
|
||||
gjl_jar="sbt-launch.jar"
|
||||
gjl_java_args="-Dsbt.version=0.13.13 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -Duser.home="${WORKDIR}""
|
||||
source /usr/share/java-config-2/launcher/launcher.bash
|
||||
EOF
|
||||
chmod u+x "${S}/sbt" || die
|
||||
|
||||
sed -e 's@-Xmx1024M@-Xmx1536M@' \
|
||||
-i "${S}/build.sbt" \
|
||||
|| die "Could not change increase memory size in ${S}/build.sbt"
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if ! use binary; then
|
||||
export PATH="${EROOT}usr/share/scala-${SV}/bin:${WORKDIR}/${L_P}:${PATH}"
|
||||
export LANG="en_US.UTF-8"
|
||||
einfo "=== scala compile ..."
|
||||
"${S}"/sbt -Dsbt.log.noformat=true compile || die "sbt compile failed"
|
||||
einfo "=== sbt publishLocal with jdk $(java-pkg_get-vm-version) ..."
|
||||
"${S}"/sbt -Dsbt.log.noformat=true publishLocal \
|
||||
|| die "sbt publishLocal failed"
|
||||
else
|
||||
einfo "Skipping compilation, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if ! use binary; then
|
||||
"${S}"/sbt -Dsbt.log.noformat=true test || die "sbt test failed"
|
||||
else
|
||||
einfo "Skipping tests, USE=binary is set."
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build/pack || die
|
||||
local SCALADIR="/usr/share/${PN}-${SV}"
|
||||
exeinto "${SCALADIR}/bin"
|
||||
doexe $(find bin/ -type f ! -iname '*.bat')
|
||||
dodir /usr/bin
|
||||
for b in $(find bin/ -type f ! -iname '*.bat'); do
|
||||
local _name=$(basename "${b}")
|
||||
dosym "${SCALADIR}/bin/${_name}" "/usr/bin/${_name}-${SV}"
|
||||
done
|
||||
popd || die
|
||||
java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print)
|
||||
|
||||
pushd build/quick/classes/scala-dist/man/man1 || die
|
||||
for i in *.1; do
|
||||
newman "${i}" "${i/./-${SV}.}"
|
||||
done
|
||||
popd || die
|
||||
|
||||
#sources are .scala so no use for java-pkg_dosrc
|
||||
pushd src || die
|
||||
if use source; then
|
||||
dodir "${SCALADIR}/src"
|
||||
insinto "${SCALADIR}/src"
|
||||
doins -r library library-aux reflect
|
||||
fi
|
||||
popd || die
|
||||
|
||||
local DOCS=( "doc/README" )
|
||||
local HTML_DOCS=( "build/scaladoc" )
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST libebml-1.3.4.tar.bz2 606205 BLAKE2B d13c33777e9afbc4d370e0b8e68fdcb42597fbd62f61197a4aa72e2b229ef06819efc0864f9783c87c90f8fcfa572b02d9b1767b57c31c6bc22a020b9eace94e SHA512 ebf5b71afe725e40ee6415463e51ca14810eecc2fef186caacd0269077f5febeb62623fd48674b21ea732f43a620d0c91603fa48d3f8d163284d1cf204642194
|
||||
DIST libebml-1.3.5.tar.xz 274184 BLAKE2B 954411bba6fc9ff3893a17a5147babff18352ac2c436523eecafac8e2921dd968e83f5672428f4f22e61cee97f7ce1a4f905781b4468cfd9f3ea7d8cd15d961f SHA512 cdf05015724919b19281bf99c562bb7e0bdf16990da274010f664ff316b6ce95ecbeaa1e479f03505281a7f45d5796aee6e7750a9e1c0596b630911d220dca24
|
||||
EBUILD libebml-1.3.4.ebuild 834 BLAKE2B 11fe2d8ebf1fa93a7fd9c866a9bd556d00ce6da0553be6e39b85c61e711a8277eb3f27e212c00609cb092f16e7fb403285ad29623f7e8941a7bc7c96443becd7 SHA512 edc8bf5f0137d8fb44335b0ceb64a66c98d2eb88bde15b93f7350fdc2b80077006c5e31c8ea567b0ef6050f08789a1566ccdeafb8f6ef98e3559d344f85047b4
|
||||
EBUILD libebml-1.3.5.ebuild 840 BLAKE2B 7c0d37726be2013defd2f674b9e8339865b38779e1ea5cc76da2b1eb1065fe8bf960d5943d08a0daad38cde4b25f0f40228d3d1b502fe0620ed0abd45be6f247 SHA512 74fd97cebee6dfcd0e35d91bb9ed8e868128e98f732403651408675cd7fae7354ba72f436cfc7ca27a6636b3931235d1da19fcf89a742aad4a8a746a6e5976d3
|
||||
EBUILD libebml-1.3.5.ebuild 839 BLAKE2B e67e06ffacf1ce95a400056ee84d357a859003edd8824458d6df2f1795271e3a8a3690c6540f85a8b00c6d86535a6badfc5c60f0e2c3923b3ca8ad01f38da591 SHA512 f338f18d05e03f80b0dac9e19aaefe4f30f9f617b4e8568a8f3550bd7acfa9ba8470dc638c87e895151d6a377fd6c9e5b69551dfc3befdb72c6de8a14f30c76b
|
||||
MISC metadata.xml 316 BLAKE2B d9c2545fc8f21819157e2c492aaf9d0af904896735cfc7899efceb4f14d56aa205a946a28cad171dd2d5e19c9e6dd7fb380d29a788d7c231e3b7120de4f8ec65 SHA512 e134cb7e80fb4da27ef695d9ac26d13850df19cd37116fd069ab33cb91a380c322c8087d50c8040ea2a776903e9bc59fd825eb65593b0c3215c316a819f0fb22
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST josepy-1.0.1.tar.gz 50251 BLAKE2B eb75e05dec890c92043357740829edf96f49f0c77b85211b9a9077ef39bfe59df2ee5952c1569559a07b6505870d796b3aa9e2b0fdba6943860b035f09a004b2 SHA512 51f0e1286a05ebc42f388d13e47e7bd2d1eb11ba1cf06f4d52d627d4a3c2d01f73f1ce9c9ff23ed7dd78ba18142af23e3de4277a63dc69b433bbc3e7aedfd6eb
|
||||
EBUILD josepy-1.0.1.ebuild 680 BLAKE2B 7762326b20ff3307cf1ecf66236e30e98c0d361fe9eedd9f37d6708bbaecef5deff77a86305565c7fe9dc4615dfac3ad681f1805c737d6b4b9f0367928f1cbc3 SHA512 2dd2979cda95190d23cdf94a80f3837da846862384136e1a6aa853d427949fe977e79c220d7098aa4b55627a5f958f056e6678b23e1def498aa8ae0201c08c04
|
||||
EBUILD josepy-1.0.1.ebuild 662 BLAKE2B 4077ed203e78560a2e9a95d70e87f9032e772bc9c6cf8c293ac1bca91d6c5915dcdf70dc5c8eb90861bf878a6ad6f0ca4166bdf845a176556bd517b12fb88b51 SHA512 2ca3e0629f7bca835fcad76fda576f1978bfbaa540a33274a7cd2f09bac1945e859b5ab311461bcaddc73ebb1db84839f68fabc8677fcfd224a690539a60d795
|
||||
MISC metadata.xml 510 BLAKE2B dd45e914009523f3f80abf257ab42238c0e033978f344e9d4dc7cf28293f39dc0e5b195129ef065fbdcc979a48166fdacf3c81b1fcc808017625595a5674170d SHA512 0742fcd82de64649d12f10a2c7b20baf1a928943f4ecadd4995f23e13471d584f17ec188b0b98aa1f675f9b44d7d8446dd4525b2b7617ec6b547c0074d6c9139
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST python-mimeparse-0.1.4.tar.gz 5228 BLAKE2B f98cdea21ad015e65f638cf5828dffb006ab2f142c266b54f851faa3b38885fcd29ef8717d62235e675a8ca3fcc91fdc8d8e594be2c6404a45c3dc09b5401f1c SHA512 c8eeb298773a0eb36512b1d9a46dfc85423c0dab10b85ed94284bf1bf8dba8c34aeccefd8b6a187434789d5a160ab5d4af81659dd1808ea02078cc2b168e10b3
|
||||
DIST python-mimeparse-1.6.0.tar.gz 6541 BLAKE2B 15de86feddf892ee4599e0fe7c113a93f343d5b8afc09725263e2fcb3869f8f152612b9f30dbf68279aa95e2ce8f6ba9d4dc6e8e2b75366a972dcdb705220742 SHA512 cc2ec8059034fc224c59bffeb77e7fd0ba86b753373c8daf3a182fd56d647f0b96d7bacb6708be285dd7e246ebc19b813e2bfb8ac79a86f6d4e702c223f5187e
|
||||
EBUILD mimeparse-0.1.4-r1.ebuild 1158 BLAKE2B 8222072ef7a7e7b24cd2f849bf1ab472d7024fc0258ff47dfe61c81935b3e291eb625eb14879b6586adee63e4b11c17813a44a7516d46d8417ad77df2b3a777c SHA512 77250c17a627c22853db5d2caa05dae861ade7d7fb0859997035e1163730523799d6cb0d2facbd6932390be40fbf38dbda61df086e7cc5519b733982147560e2
|
||||
EBUILD mimeparse-1.6.0.ebuild 1194 BLAKE2B e78da00488122ab6283af6ce25aca72f9008a500dc7b6c747d9fb6bb488f4e1557eff6fc1119f4a6e71ac9191432da9a5b09590124212f9f4e9ba17d806a7ec9 SHA512 2af2c2ce0537e5747db45c2f271196a7b4d86c0a24ccf15ff9f96b6de001611fdf1c5089a917aece22ad88307791941d29a9f15134c4aa3267504b11c046d744
|
||||
EBUILD mimeparse-1.6.0.ebuild 1193 BLAKE2B c10feb39ba3b86171ae9bd56e497fa12ff3553ff76b3a46d2d6b56e0a8d9d20c65942f235bd5867705971e1f8a19ff2c466b4f2dd55594e05b38b026676458fb SHA512 ab7e7a6ace870252726e84c2d3cb666cafd8026b47180fb2e6e0741d353cbecc73471b66c895ea318d1d3247c6d1529a22c7e871d24d17a9cf4ea959164f442c
|
||||
MISC metadata.xml 394 BLAKE2B 076eba4e701e0c6274b4e3e3510faadb92c02d2ef35ccdee6626a3e4e5b46c91c912feb325e4b3abf33a19d5e6937ff4d6b2aa4c1209c682ca4badd59f35b478 SHA512 900355ef3cc835ae4e0766614eaabcbe701570fc54e1b00cfb55eeeafb0b65df35e24ab272eef54bbaa7aa0540cf89931a9bf58f5b515fdd6c88d303fec4518f
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST pyblake2-0.9.3.tar.gz 130641 BLAKE2B 5165f104b5d6bc10bf8b72177b4ad08db55e1a92ad1f04efae2c3d73b6f3f52a0962cfb23832a5f5c1ed9d75c7c3a04be9c37643e381abfc7a2f843fefb43151 SHA512 6336a7f7e79bd3e6ff7f8ff4d279ae170e86f1464b9fa9e7ea7f0dbbac6fcc044caf225111e065f9cd9cdeea0f81fae8d373e1f65be3e418929f53fad063205e
|
||||
DIST pyblake2-1.1.0.tar.gz 125855 BLAKE2B 46af4c24882040bbdd221f90e06652918798e4555c0a7307a596ca4c9ed3147f00297269a44d174782c2b0402eac03ecf5387b1c5a16efb57d036730b58b2630 SHA512 e13c7e4f3a35155cbf531e337895349ec01f0ac36908a4e746cecec063601adfc8a73a7961a9c310d01d3231f44f08d2cc92e891e9cb87659bc7170b9fee6102
|
||||
EBUILD pyblake2-0.9.3-r1.ebuild 1485 BLAKE2B 9249f9d8c7802c08c01e726f552532bdcf6fc072f5f826f919d8c3411bf2e7e80ba780f4b7a517e9609dcc98f9e9f1105134df19f36e52660f409197887d6f4e SHA512 840f62b6ea7355b97f7898f94ef88392f0dff8e909a5383a5d601d6c5a013a1cb9119e6af92033e6d28bcc62a7745f0ea98377a18c63e6d1ee3ed75045cf5749
|
||||
EBUILD pyblake2-1.1.0.ebuild 805 BLAKE2B f1c7beacf65577897f7edf2617b9cc8e3f792c82a0c9652e62b282b93ea84a3d3af38b1c39a53dc9adaf681511dc9007e90c25f66e2cbd68d7207265a62d49c3 SHA512 f122c31a9f37dd1388f01c4adc8b6b068ae179e4b7bffc4d43985831dcba6c98d36bada89c1397d7afeec943773d6cc28375c3c615738b56d38445b53c0c65df
|
||||
EBUILD pyblake2-1.1.0.ebuild 804 BLAKE2B dc61db17e417efc23d20861b6e8b6e4276dd4cbd1c25af674487e630f2e6cc5326ca385f91621af078903bb42ae8eef6e5333374ec472b44513cd5aad7d347d3 SHA512 c633fa1a9ea1e9316fd45a3b8c649f5b2e8c624a40cac2e8f3288f50c291049449866f357a47a0066ac19b7e8fa44f95fa0280ff29603cc60124d314ae374a9b
|
||||
MISC metadata.xml 452 BLAKE2B b5539d95846469f07dc0ec47d4c34f4ae7fa950c58d728f5ba92efb3f74d849598af1eeb7c3d3ab90a41591746e94b3d4c3ea5330c423fb340cbec4a1da28e80 SHA512 28acd5472435f8832eb8cb7587e651f428309e9a37c17cad378fe8f01c47896115c4d42ace1c6125eb99ddd30de562d42503b6dac42432b55b37775cdde7c1ff
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST Pygments-2.1.1.tar.gz 2114190 BLAKE2B b0e5d5a62849c97aaac6f0edf26230d5573715fb759667ca888372666634ab68da4580b1337ec4ada013b643411c221c572651c6fca6745b976794d5c6246e5d SHA512 7eb35865074f573ef7d41a1f1ee7576a83c32855018d03570eb70fd6864ddfbbc3f93ae082c4ac7e4a274a0ef387ea4ccb0909423e01efb6bb8e4fefea8f2807
|
||||
DIST Pygments-2.2.0.tar.gz 2113944 BLAKE2B 58d5f2fa0e6d97f5b7d7a17314b82ef219f23b72f8da49b4f8ce9b892d54ffbc1b490e87e87efe8d727dab297f775d0d8abfc4a31a734c5a7f8df885e5eda82f SHA512 cc0a4f73e19fa6cbf46314de2e809460c807c631e39ba05cbe5edb5f40db1a687aafcd9715585a0ed45f791710eb6038305e273f282f8682df76f30e63710b29
|
||||
EBUILD pygments-2.1.1.ebuild 1676 BLAKE2B 50de00c98226e54875703f308ca5116486c65997ee5f84f3966ba6280ac68a9d22b566026d57f4a2e207ddf13fb3a3283313bcdf562cb36e587cdbb431f95b6a SHA512 bb269a3dcdc643453ca34323245411d396e27ad0580880312e869585511fe23571d1c6c1f71adb5ce41e5b9b7fad00bc48228d73705e4aa1011cf52cea60b7dc
|
||||
EBUILD pygments-2.2.0.ebuild 1692 BLAKE2B 9f4a52f42a82d0fd7af9e899c7bd1ac50ac35f6279020b9d9c60da4d2e22970124b33f770d65ad4ae91e83731effb23f55a9c39430a6eb963951f5a134e8f720 SHA512 886b88b97c0c882303c4c10c09a4e2bbad07e225b6ea370f00afff58a336b503da4133fe3c9712ef21adcfe18149e892c60fe56ab5ebfa613d06813438dfc357
|
||||
EBUILD pygments-2.2.0.ebuild 1691 BLAKE2B f86dcd72d3956dabeaadeff577508e74d690ebde7269e44a641e68ee8c4df9e88bdfdf528a7617b7a0a38192ecbe438b5a37cec978102ee90cb978fb0c4eab9d SHA512 73e99c245732abbb9d14a4589fc96d21e704e883b8e0a43daa759259792e9ac4515fc34f7189e3dcb278acf1a06c8b0a08e03dade9f56cd737a3eaeb25e611c6
|
||||
MISC metadata.xml 542 BLAKE2B 88e44c4b6f29e096e67521c621724d1a5415d089f73612fb8d02ee714a4af1e8080cf98542d7f0c9b1331d919bbeba31b1fa8269a28cc1be841af069a497d889 SHA512 f15732bb743ed5ad4049036c7b87118c89be09e260ae483b4c7e25155a31c0ab8844f8a1050386a0ee81d2b1e55d240f90cab3e28749b8f943baf64ec176814b
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST pyrsistent-0.13.0.tar.gz 96326 BLAKE2B 47388d7d48841c3a093c5309e20e92619b16c9f7c59a47929b8504a7e6aed803cb1fa07260ef8fbc5ebb4b243a52329a5a9976ca947c00243fc5dd3bc9e34e8a SHA512 6bfb657841382c4ad402c383cae5092b83e93a3dde0b905f6cb8ca8a50b8acbe0f3241e9cc50cb83892c0d59b13145764faa2a3db1eabecbe6606a35d07bb5ff
|
||||
EBUILD pyrsistent-0.13.0.ebuild 911 BLAKE2B fabbaa90e2e8f6914ba2d77139e38867f16b2b8028f4b854bc67c20ad3bcfc475c314b23a01cfa763afc210ee345d29cfc54269a60363e4d7cecad3f693c43b7 SHA512 36c94574a75fd0de857daf179f8daac3158186654da97059e77ed38bfc4d642ebb36e389e2e16a58c69b2b39806bb495e830c8423dd48e6a6330e2b5c916c27a
|
||||
EBUILD pyrsistent-0.13.0.ebuild 910 BLAKE2B a9a1b129d2a37c8bddb84a5ab6d96c997ce50fee9c0f48de2e3d70d35d1322ff24abc99e239790426171a32ee694319e8c08a735b51709b2ce3ac0dcc60ee9b3 SHA512 9cba850cebe013018c0ff8e63377ec94d248c9f5a11da7f6d78e187c34e9bd989d1e298b1864d12fe9e9551e3ba1c8fb566a6a39abb83a6733cdb0815f386656
|
||||
MISC metadata.xml 521 BLAKE2B 0081a54c9db451d020647e808b80c47e590530bc952c40d3dc6c11e187cb6ff4c644c9c8c448b206ef3036a3a0ae07760e23ba88d41938667b0a83ab2299cd9d SHA512 16d13966bbf6d52360d9438a56a949e6e31a9d2ace85e319db27be14f85c8446ee28e00c6bafc9232b3608e3a209396dc601cb3ce193d3cb4e8284cc8b3cfef1
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
DIST public_suffix-2.0.5.gem 89600 BLAKE2B c561b32a26c4b605821eff66ae2afef17988c45d954a15b04a7174b202851e6dd0012df32981146a0cbaadfd0358b1f67be359b5526a65de2a3b0f7061ee7beb SHA512 d261dec44c11803631e267f36d82a59278d90dceb2811233ca511e895c5f1a58005b6afea980bd1bbd78bbfc7a3a4e02f9f1fbe351fded38be340ecc235da383
|
||||
DIST public_suffix-3.0.0.gem 94720 BLAKE2B dfb5a3f0b707a2711da8d0e6d40318973785557a80d9c80832a5e45274e09cba1710f74197bcfc9d26d93b0d227eedea690b326bc4a5284ad4391e068c5d1efd SHA512 9190c85fa48f2d69af3131cacdfeb4e4ebe2ff82f833d286ff3e87298cd3189d7c5b6facdcde502bea73beae8a950c1d6ef851ca0848824a59ac53f222db4806
|
||||
DIST public_suffix-3.0.1.gem 95232 BLAKE2B 4a27cfed98c19e4e5e68849e48bcd1a28a93232dd63ee53eb0368717aa7549e106851e97c3e953b5721d98a17de195d16bf68951c6753ef39a4648af00b8f2d9 SHA512 6eac89d22cc766a12032f4abd2fb8b707e4a7c82bf35d9deed45fe11ed3932fb3c2339da7fab775c10603d9e39a484fa5a54d33758d2f5fc9a0c558a1d4b2e0e
|
||||
EBUILD public_suffix-2.0.5.ebuild 762 BLAKE2B 37fee2a8b9d7acdfd7f8fb7d06e29c89669cc78a39e631118a97c9d5441802255bf5cd6b0e20641ad4550288e821c7db9186a7f4f3f2c9e5060e04c90894ca4b SHA512 614fac9fa074f1bee18c7acf0b0dab0f5a4443d30b40ef414b996f31717b037d5f251f4ee24e9effffe2d8815d507898b32016e4f5cef9fe884a30b7f2ddc91b
|
||||
EBUILD public_suffix-2.0.5.ebuild 781 BLAKE2B 01301126078d8e67a2cd6575615b9e717912dddff6577c23b7e98bb5dc618c7b5d0a46627ff9a44204fc83c1197094e3f65630e6928aefe5e73a125211af0427 SHA512 a1fa003a56dbd2f601d3f81eadfcfcef96106b76fae5adeaf30be3087098c29f485b4fc1411442ca7042591d684ddd53305de9054b682a9289be08e0ffef8b47
|
||||
EBUILD public_suffix-3.0.0-r1.ebuild 799 BLAKE2B 01c8a8fb299e3912439da6a4ade611e2adc3de9fb734d4f24013c6bc9c6211df775d22fc832f54d4d38b690b0e916eea0162eaa9243889b3bb00c08c3ab2b0e3 SHA512 160850dbe4d6abec78823f41c710854342f69e84efb0ee8ef138f71a87c0b18cd90aea2ff42c890beb664b26da8d6eb88858f1d1a81afcfb8b31f54b18df23b6
|
||||
EBUILD public_suffix-3.0.1.ebuild 792 BLAKE2B 9d3cf908b19447526702731a0c4cf3c4c59cd4b9d0f9410b5d56fc6e3d8052d686ee5f3e8482710150ebc450a7109d0b694a9cb9a276e04836151feccccfaa86 SHA512 2f88729b32b2180a1190d9fc59faccd03b3928dcc4a8b4dcdcbd61ad1ec6fb77141f8a983cbbe1e7e486bc85f6c77eb59d44ab21466be3063d7a11531909035f
|
||||
EBUILD public_suffix-3.0.1.ebuild 818 BLAKE2B cbb673228ee5ca416bf3f9b06db64fab31858352f1c48d9b5d5de9a40de7ad857aa24d2639fe023cd67274c23e59f4bc899d4f379c0874704c543e9b88d5f101 SHA512 e0cc6ea4f11f9cede025f391134de29439107dfa860955f072554d004a68d0ab149e82d653e5e0370e720e936774d825b7889e886a9f1d0df1602928898a7c6f
|
||||
MISC metadata.xml 340 BLAKE2B e5ff0b06a3e6205a270389a1aaec9cb8902fad8e9b815e650b9be53276545b401565d8f7b1167ac415766a809fa2358289811196001e840d9d8641bbe2ff281a SHA512 e5091bcfca152fb1301ce5969cb5ce1e65db3452926c5b75db5afb284e28f44655495663fcce3ba5718b9817d1e3f6db491fe8da96732181926ccd58b36d7f20
|
||||
|
Binary file not shown.
@ -1,622 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @DEAD
|
||||
# Removal on 2018-02-01.
|
||||
#
|
||||
# DEPRECATED
|
||||
# This eclass has been superseded by xorg-2
|
||||
# Please modify your ebuilds to use that instead
|
||||
#
|
||||
# @ECLASS: x-modular.eclass
|
||||
# @MAINTAINER:
|
||||
# x11@gentoo.org
|
||||
# @BLURB: Reduces code duplication in the modularized X11 ebuilds.
|
||||
# @DESCRIPTION:
|
||||
# This eclass makes trivial X ebuilds possible for apps, fonts, drivers,
|
||||
# and more. Many things that would normally be done in various functions
|
||||
# can be accessed by setting variables instead, such as patching,
|
||||
# running eautoreconf, passing options to configure and installing docs.
|
||||
#
|
||||
# All you need to do in a basic ebuild is inherit this eclass and set
|
||||
# DESCRIPTION, KEYWORDS and RDEPEND/DEPEND. If your package is hosted
|
||||
# with the other X packages, you don't need to set SRC_URI. Pretty much
|
||||
# everything else should be automatic.
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
GIT_ECLASS="git"
|
||||
SNAPSHOT="yes"
|
||||
SRC_URI=""
|
||||
fi
|
||||
|
||||
# If we're a font package, but not the font.alias one
|
||||
FONT_ECLASS=""
|
||||
if [[ "${PN/#font-}" != "${PN}" ]] \
|
||||
&& [[ "${CATEGORY}" = "media-fonts" ]] \
|
||||
&& [[ "${PN}" != "font-alias" ]] \
|
||||
&& [[ "${PN}" != "font-util" ]]; then
|
||||
# Activate font code in the rest of the eclass
|
||||
FONT="yes"
|
||||
|
||||
# Whether to inherit the font eclass
|
||||
FONT_ECLASS="font"
|
||||
fi
|
||||
|
||||
inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools \
|
||||
${FONT_ECLASS} ${GIT_ECLASS}
|
||||
|
||||
EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm"
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
0|1)
|
||||
;;
|
||||
2)
|
||||
EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure"
|
||||
;;
|
||||
*)
|
||||
die "Unknown EAPI ${EAPI}"
|
||||
;;
|
||||
esac
|
||||
|
||||
# exports must be ALWAYS after inherit
|
||||
EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS}
|
||||
|
||||
# @ECLASS-VARIABLE: XDIR
|
||||
# @DESCRIPTION:
|
||||
# Directory prefix to use for everything. If you want to install to a
|
||||
# non-default prefix (e.g., /opt/xorg), change XDIR. This has not been
|
||||
# recently tested. You may need to uncomment the setting of datadir and
|
||||
# mandir in x-modular_src_install() or add it back in if it's no longer
|
||||
# there. You may also want to change the SLOT.
|
||||
XDIR="/usr"
|
||||
|
||||
IUSE=""
|
||||
HOMEPAGE="https://www.x.org/wiki/"
|
||||
|
||||
# @ECLASS-VARIABLE: SNAPSHOT
|
||||
# @DESCRIPTION:
|
||||
# If set to 'yes' and configure.ac exists, eautoreconf will run. Set
|
||||
# before inheriting this eclass.
|
||||
: ${SNAPSHOT:=no}
|
||||
|
||||
# Set up SRC_URI for individual modular releases
|
||||
BASE_INDIVIDUAL_URI="https://www.x.org/releases/individual"
|
||||
# @ECLASS-VARIABLE: MODULE
|
||||
# @DESCRIPTION:
|
||||
# The subdirectory to download source from. Possible settings are app,
|
||||
# doc, data, util, driver, font, lib, proto, xserver. Set above the
|
||||
# inherit to override the default autoconfigured module.
|
||||
if [[ -z ${MODULE} ]]; then
|
||||
case ${CATEGORY} in
|
||||
app-doc) MODULE="doc" ;;
|
||||
media-fonts) MODULE="font" ;;
|
||||
x11-apps|x11-wm) MODULE="app" ;;
|
||||
x11-misc|x11-themes) MODULE="util" ;;
|
||||
x11-drivers) MODULE="driver" ;;
|
||||
x11-base) MODULE="xserver" ;;
|
||||
x11-proto) MODULE="proto" ;;
|
||||
x11-libs) MODULE="lib" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ -n ${GIT_ECLASS} ]]; then
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/${MODULE}/${PN}.git"
|
||||
else
|
||||
SRC_URI="${SRC_URI} ${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2"
|
||||
fi
|
||||
|
||||
SLOT="0"
|
||||
|
||||
# Set the license for the package. This can be overridden by setting
|
||||
# LICENSE after the inherit. Nearly all FreeDesktop-hosted X packages
|
||||
# are under the MIT license. (This is what Red Hat does in their rpms)
|
||||
LICENSE="MIT"
|
||||
|
||||
# Set up shared dependencies
|
||||
if [[ -n "${SNAPSHOT}" ]]; then
|
||||
# FIXME: What's the minimal libtool version supporting arbitrary versioning?
|
||||
DEPEND="${DEPEND}
|
||||
>=sys-devel/libtool-1.5
|
||||
>=sys-devel/m4-1.4"
|
||||
WANT_AUTOCONF="latest"
|
||||
WANT_AUTOMAKE="latest"
|
||||
fi
|
||||
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
RDEPEND="${RDEPEND}
|
||||
media-fonts/encodings
|
||||
x11-apps/mkfontscale
|
||||
x11-apps/mkfontdir"
|
||||
PDEPEND="${PDEPEND}
|
||||
media-fonts/font-alias"
|
||||
|
||||
# Starting with 7.0RC3, we can specify the font directory
|
||||
# But oddly, we can't do the same for encodings or font-alias
|
||||
|
||||
# @ECLASS-VARIABLE: FONT_DIR
|
||||
# @DESCRIPTION:
|
||||
# If you're creating a font package and the suffix of PN is not equal to
|
||||
# the subdirectory of /usr/share/fonts/ it should install into, set
|
||||
# FONT_DIR to that directory or directories. Set before inheriting this
|
||||
# eclass.
|
||||
: ${FONT_DIR:=${PN##*-}}
|
||||
|
||||
# Fix case of font directories
|
||||
FONT_DIR=${FONT_DIR/ttf/TTF}
|
||||
FONT_DIR=${FONT_DIR/otf/OTF}
|
||||
FONT_DIR=${FONT_DIR/type1/Type1}
|
||||
FONT_DIR=${FONT_DIR/speedo/Speedo}
|
||||
|
||||
# Set up configure options, wrapped so ebuilds can override if need be
|
||||
if [[ -z ${FONT_OPTIONS} ]]; then
|
||||
FONT_OPTIONS="--with-fontdir=\"/usr/share/fonts/${FONT_DIR}\""
|
||||
fi
|
||||
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
if [[ ${PN##*-} = misc ]] || [[ ${PN##*-} = 75dpi ]] || [[ ${PN##*-} = 100dpi ]] || [[ ${PN##*-} = cyrillic ]]; then
|
||||
IUSE="${IUSE} nls"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# If we're a driver package
|
||||
if [[ "${PN/#xf86-video}" != "${PN}" ]] || [[ "${PN/#xf86-input}" != "${PN}" ]]; then
|
||||
# Enable driver code in the rest of the eclass
|
||||
DRIVER="yes"
|
||||
fi
|
||||
|
||||
# Debugging -- ignore packages that can't be built with debugging
|
||||
if [[ -z "${FONT}" ]] \
|
||||
&& [[ "${CATEGORY/app-doc}" = "${CATEGORY}" ]] \
|
||||
&& [[ "${CATEGORY/x11-proto}" = "${CATEGORY}" ]] \
|
||||
&& [[ "${PN/util-macros}" = "${PN}" ]] \
|
||||
&& [[ "${PN/xbitmaps}" = "${PN}" ]] \
|
||||
&& [[ "${PN/xkbdata}" = "${PN}" ]] \
|
||||
&& [[ "${PN/xorg-cf-files}" = "${PN}" ]] \
|
||||
&& [[ "${PN/xcursor}" = "${PN}" ]] \
|
||||
; then
|
||||
DEBUGGABLE="yes"
|
||||
IUSE="${IUSE} debug"
|
||||
fi
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
if [[ "${PN/util-macros}" = "${PN}" ]]; then
|
||||
DEPEND="${DEPEND}
|
||||
>=x11-misc/util-macros-1.3.0"
|
||||
fi
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
!<=x11-base/xorg-x11-6.9"
|
||||
# Provides virtual/x11 for temporary use until packages are ported
|
||||
# x11-base/x11-env"
|
||||
|
||||
# @FUNCTION: x-modular_specs_check
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Make any necessary changes related to gcc specs (generally hardened)
|
||||
x-modular_specs_check() {
|
||||
if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then
|
||||
append-ldflags -Wl,-z,lazy
|
||||
# (#116698) breaks loading
|
||||
filter-ldflags -Wl,-z,now
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_dri_check
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Ensures the server supports DRI if building a driver with DRI support
|
||||
x-modular_dri_check() {
|
||||
# (#120057) Enabling DRI in drivers requires that the server was built with
|
||||
# support for it
|
||||
# Starting with xorg-server 1.5.3, DRI support is always enabled unless
|
||||
# USE=minimal is set (see bug #252084)
|
||||
if [[ -n "${DRIVER}" ]]; then
|
||||
if has dri ${IUSE} && use dri; then
|
||||
einfo "Checking for direct rendering capabilities ..."
|
||||
if has_version '>=x11-base/xorg-server-1.5.3'; then
|
||||
if built_with_use x11-base/xorg-server minimal; then
|
||||
die "You must build x11-base/xorg-server with USE=-minimal."
|
||||
fi
|
||||
else
|
||||
if ! built_with_use x11-base/xorg-server dri; then
|
||||
die "You must build x11-base/xorg-server with USE=dri."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_server_supports_drivers_check
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Ensures the server SDK is installed if a driver is being built
|
||||
x-modular_server_supports_drivers_check() {
|
||||
# (#135873) Only certain servers will actually use or be capable of
|
||||
# building external drivers, including binary drivers.
|
||||
if [[ -n "${DRIVER}" ]]; then
|
||||
if has_version '>=x11-base/xorg-server-1.1'; then
|
||||
if ! built_with_use x11-base/xorg-server xorg; then
|
||||
eerror "x11-base/xorg-server is not built with support for external drivers."
|
||||
die "You must build x11-base/xorg-server with USE=xorg."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_unpack_source
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Simply unpack source code. Nothing else.
|
||||
x-modular_unpack_source() {
|
||||
if [[ -n ${GIT_ECLASS} ]]; then
|
||||
git_src_unpack
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
cd "${S}"
|
||||
|
||||
if [[ -n ${FONT_OPTIONS} ]]; then
|
||||
einfo "Detected font directory: ${FONT_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_patch_source
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Apply all patches
|
||||
x-modular_patch_source() {
|
||||
# Use standardized names and locations with bulk patching
|
||||
# Patch directory is ${WORKDIR}/patch
|
||||
# See epatch() in eutils.eclass for more documentation
|
||||
if [[ -z "${EPATCH_SUFFIX}" ]] ; then
|
||||
EPATCH_SUFFIX="patch"
|
||||
fi
|
||||
|
||||
# @VARIABLE: PATCHES
|
||||
# @DESCRIPTION:
|
||||
# If you have any patches to apply, set PATCHES to their locations and epatch
|
||||
# will apply them. It also handles epatch-style bulk patches, if you know how to
|
||||
# use them and set the correct variables. If you don't, read eutils.eclass.
|
||||
if [[ ${#PATCHES[@]} -gt 1 ]]; then
|
||||
for x in "${PATCHES[@]}"; do
|
||||
epatch "${x}"
|
||||
done
|
||||
elif [[ -n "${PATCHES}" ]]; then
|
||||
for x in ${PATCHES}; do
|
||||
epatch "${x}"
|
||||
done
|
||||
# For non-default directory bulk patching
|
||||
elif [[ -n "${PATCH_LOC}" ]] ; then
|
||||
epatch ${PATCH_LOC}
|
||||
# For standard bulk patching
|
||||
elif [[ -d "${EPATCH_SOURCE}" ]] ; then
|
||||
epatch
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_reconf_source
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Run eautoreconf if necessary, and run elibtoolize.
|
||||
x-modular_reconf_source() {
|
||||
if [[ "${SNAPSHOT}" = "yes" ]]
|
||||
then
|
||||
# If possible, generate configure if it doesn't exist
|
||||
if [ -f "./configure.ac" ]
|
||||
then
|
||||
eautoreconf
|
||||
fi
|
||||
fi
|
||||
|
||||
# Joshua Baergen - October 23, 2005
|
||||
# Fix shared lib issues on MIPS, FBSD, etc etc
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_prepare
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Prepare a package after unpacking, performing all X-related tasks.
|
||||
x-modular_src_prepare() {
|
||||
[[ -n ${GIT_ECLASS} ]] && has src_prepare ${EXPORTED_FUNCTIONS} \
|
||||
&& git_src_prepare
|
||||
x-modular_patch_source
|
||||
x-modular_reconf_source
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_unpack
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Unpack a package, performing all X-related tasks.
|
||||
x-modular_src_unpack() {
|
||||
x-modular_specs_check
|
||||
x-modular_server_supports_drivers_check
|
||||
x-modular_dri_check
|
||||
x-modular_unpack_source
|
||||
has src_prepare ${EXPORTED_FUNCTIONS} || x-modular_src_prepare
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_font_configure
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# If a font package, perform any necessary configuration steps
|
||||
x-modular_font_configure() {
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
# Might be worth adding an option to configure your desired font
|
||||
# and exclude all others. Also, should this USE be nls or minimal?
|
||||
if has nls ${IUSE//+} && ! use nls; then
|
||||
FONT_OPTIONS="${FONT_OPTIONS}
|
||||
--disable-iso8859-2
|
||||
--disable-iso8859-3
|
||||
--disable-iso8859-4
|
||||
--disable-iso8859-5
|
||||
--disable-iso8859-6
|
||||
--disable-iso8859-7
|
||||
--disable-iso8859-8
|
||||
--disable-iso8859-9
|
||||
--disable-iso8859-10
|
||||
--disable-iso8859-11
|
||||
--disable-iso8859-12
|
||||
--disable-iso8859-13
|
||||
--disable-iso8859-14
|
||||
--disable-iso8859-15
|
||||
--disable-iso8859-16
|
||||
--disable-jisx0201
|
||||
--disable-koi8-r"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_debug_setup
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Set up CFLAGS for a debug build
|
||||
x-modular_debug_setup() {
|
||||
if [[ -n "${DEBUGGABLE}" ]]; then
|
||||
if use debug; then
|
||||
strip-flags
|
||||
append-flags -g
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_configure
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Perform any necessary pre-configuration steps, then run configure
|
||||
x-modular_src_configure() {
|
||||
x-modular_font_configure
|
||||
x-modular_debug_setup
|
||||
|
||||
# @VARIABLE: CONFIGURE_OPTIONS
|
||||
# @DESCRIPTION:
|
||||
# Any extra options to pass to configure
|
||||
|
||||
# If prefix isn't set here, .pc files cause problems
|
||||
if [[ -x ${ECONF_SOURCE:-.}/configure ]]; then
|
||||
econf --prefix=${XDIR} \
|
||||
--datadir=${XDIR}/share \
|
||||
${FONT_OPTIONS} \
|
||||
${DRIVER_OPTIONS} \
|
||||
${CONFIGURE_OPTIONS}
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_make
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Run make.
|
||||
x-modular_src_make() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_compile
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Compile a package, performing all X-related tasks.
|
||||
x-modular_src_compile() {
|
||||
has src_configure ${EXPORTED_FUNCTIONS} || x-modular_src_configure
|
||||
x-modular_src_make
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_src_install
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Install a built package to ${D}, performing any necessary steps.
|
||||
# Creates a ChangeLog from git if using live ebuilds.
|
||||
x-modular_src_install() {
|
||||
# Install everything to ${XDIR}
|
||||
if [[ ${CATEGORY} = x11-proto ]]; then
|
||||
make \
|
||||
${PN/proto/}docdir=/usr/share/doc/${PF} \
|
||||
DESTDIR="${D}" \
|
||||
install \
|
||||
|| die
|
||||
else
|
||||
make \
|
||||
docdir=/usr/share/doc/${PF} \
|
||||
DESTDIR="${D}" \
|
||||
install \
|
||||
|| die
|
||||
fi
|
||||
# Shouldn't be necessary in XDIR=/usr
|
||||
# einstall forces datadir, so we need to re-force it
|
||||
# datadir=${XDIR}/share \
|
||||
# mandir=${XDIR}/share/man \
|
||||
|
||||
if [[ -n ${GIT_ECLASS} ]]; then
|
||||
pushd "${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}"
|
||||
git log ${GIT_TREE} > "${S}"/ChangeLog
|
||||
popd
|
||||
fi
|
||||
|
||||
if [[ -e ${S}/ChangeLog ]]; then
|
||||
dodoc "${S}"/ChangeLog
|
||||
fi
|
||||
# @VARIABLE: DOCS
|
||||
# @DESCRIPTION:
|
||||
# Any documentation to install via dodoc
|
||||
[[ -n ${DOCS} ]] && dodoc ${DOCS}
|
||||
|
||||
# Don't install libtool archives for server modules
|
||||
if [[ -e ${D}/usr/$(get_libdir)/xorg/modules ]]; then
|
||||
find "${D}"/usr/$(get_libdir)/xorg/modules -name '*.la' \
|
||||
| xargs rm -f
|
||||
fi
|
||||
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
remove_font_metadata
|
||||
fi
|
||||
|
||||
if [[ -n "${DRIVER}" ]]; then
|
||||
install_driver_hwdata
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_pkg_preinst
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# This function doesn't do anything right now, but it may in the future.
|
||||
x-modular_pkg_preinst() {
|
||||
# We no longer do anything here, but we can't remove it from the API
|
||||
:
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_pkg_postinst
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Run X-specific post-installation tasks on the live filesystem. The
|
||||
# only task right now is some setup for font packages.
|
||||
x-modular_pkg_postinst() {
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
setup_fonts
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: x-modular_pkg_postrm
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Run X-specific post-removal tasks on the live filesystem. The only
|
||||
# task right now is some cleanup for font packages.
|
||||
x-modular_pkg_postrm() {
|
||||
if [[ -n "${FONT}" ]]; then
|
||||
font_pkg_postrm
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: setup_fonts
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Generates needed files for fonts and fixes font permissions
|
||||
setup_fonts() {
|
||||
if [[ ! -n "${FONT_DIR}" ]]; then
|
||||
msg="FONT_DIR is empty. The ebuild should set it to at least one subdir of /usr/share/fonts."
|
||||
eerror "${msg}"
|
||||
die "${msg}"
|
||||
fi
|
||||
|
||||
create_fonts_scale
|
||||
create_fonts_dir
|
||||
create_font_cache
|
||||
}
|
||||
|
||||
# @FUNCTION: remove_font_metadata
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Don't let the package install generated font files that may overlap
|
||||
# with other packages. Instead, they're generated in pkg_postinst().
|
||||
remove_font_metadata() {
|
||||
local DIR
|
||||
for DIR in ${FONT_DIR}; do
|
||||
if [[ "${DIR}" != "Speedo" ]] && \
|
||||
[[ "${DIR}" != "CID" ]] ; then
|
||||
# Delete font metadata files
|
||||
# fonts.scale, fonts.dir, fonts.cache-1
|
||||
rm -f "${D}"/usr/share/fonts/${DIR}/fonts.{scale,dir,cache-1}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# @FUNCTION: install_driver_hwdata
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Installs device-to-driver mappings for system-config-display and
|
||||
# anything else that uses hwdata.
|
||||
install_driver_hwdata() {
|
||||
insinto /usr/share/hwdata/videoaliases
|
||||
for i in "${FILESDIR}"/*.xinf; do
|
||||
# We need this for the case when none exist,
|
||||
# so *.xinf doesn't expand
|
||||
if [[ -e $i ]]; then
|
||||
doins $i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# @FUNCTION: discover_font_dirs
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Deprecated. Sets up the now-unused FONT_DIRS variable.
|
||||
discover_font_dirs() {
|
||||
FONT_DIRS="${FONT_DIR}"
|
||||
}
|
||||
|
||||
# @FUNCTION: create_fonts_scale
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Create fonts.scale file, used by the old server-side fonts subsystem.
|
||||
create_fonts_scale() {
|
||||
ebegin "Creating fonts.scale files"
|
||||
local x
|
||||
for DIR in ${FONT_DIR}; do
|
||||
x=${ROOT}/usr/share/fonts/${DIR}
|
||||
[[ -z "$(ls ${x}/)" ]] && continue
|
||||
[[ "$(ls ${x}/)" = "fonts.cache-1" ]] && continue
|
||||
|
||||
# Only generate .scale files if truetype, opentype or type1
|
||||
# fonts are present ...
|
||||
|
||||
# NOTE: There is no way to regenerate Speedo/CID fonts.scale
|
||||
# <dberkholz@gentoo.org> 2 August 2004
|
||||
if [[ "${x/encodings}" = "${x}" ]] \
|
||||
&& [[ -n "$(find ${x} -iname '*.[pot][ft][abcf]' -print)" ]]; then
|
||||
mkfontscale \
|
||||
-a "${ROOT}"/usr/share/fonts/encodings/encodings.dir \
|
||||
-- ${x}
|
||||
fi
|
||||
done
|
||||
eend 0
|
||||
}
|
||||
|
||||
# @FUNCTION: create_fonts_dir
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Create fonts.dir file, used by the old server-side fonts subsystem.
|
||||
create_fonts_dir() {
|
||||
ebegin "Generating fonts.dir files"
|
||||
for DIR in ${FONT_DIR}; do
|
||||
x=${ROOT}/usr/share/fonts/${DIR}
|
||||
[[ -z "$(ls ${x}/)" ]] && continue
|
||||
[[ "$(ls ${x}/)" = "fonts.cache-1" ]] && continue
|
||||
|
||||
if [[ "${x/encodings}" = "${x}" ]]; then
|
||||
mkfontdir \
|
||||
-e "${ROOT}"/usr/share/fonts/encodings \
|
||||
-e "${ROOT}"/usr/share/fonts/encodings/large \
|
||||
-- ${x}
|
||||
fi
|
||||
done
|
||||
eend 0
|
||||
}
|
||||
|
||||
# @FUNCTION: create_font_cache
|
||||
# @USAGE:
|
||||
# @DESCRIPTION:
|
||||
# Create fonts.cache-1 files, used by the new client-side fonts
|
||||
# subsystem.
|
||||
create_font_cache() {
|
||||
font_pkg_postinst
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
Mon, 29 Jan 2018 06:38:13 +0000
|
||||
Mon, 29 Jan 2018 09:38:13 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 29 Jan 2018 06:38:13 +0000
|
||||
Mon, 29 Jan 2018 09:38:13 +0000
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue