parent
722597c490
commit
99f129d57d
Binary file not shown.
Binary file not shown.
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6} )
|
||||
|
||||
inherit distutils-r1 eutils versionator
|
||||
|
||||
DESCRIPTION="Model-driven deployment, config management, and command execution framework"
|
||||
HOMEPAGE="http://ansible.com/"
|
||||
SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x64-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
net-misc/sshpass
|
||||
virtual/ssh
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-16.6[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)"
|
||||
|
||||
# not included in release tarball
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/man/man1/*.1
|
||||
dodoc -r examples
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PV=${PV/_rc/-rc}
|
||||
MY_P=${PN}-r${MY_PV}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.org"
|
||||
SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="sasl ssl"
|
||||
|
||||
RDEPEND="!<dev-db/mongodb-3.0.0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/go:=
|
||||
net-libs/libpcap
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ssl? ( dev-libs/openssl:0= )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# do not substitute version because it uses git
|
||||
sed -i '/^sed/,+3d' build.sh || die
|
||||
sed -i '/^stty/d' build.sh || die
|
||||
sed -i '/^mv/d' build.sh || die
|
||||
|
||||
# build pie to avoid text relocations wrt #582854
|
||||
# skip on ppc64 wrt #610984
|
||||
if ! use ppc64; then
|
||||
sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
|
||||
fi
|
||||
|
||||
# ensure we use bash wrt #582906
|
||||
sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf=()
|
||||
|
||||
if use sasl; then
|
||||
myconf+=(sasl)
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
myconf+=(ssl)
|
||||
fi
|
||||
|
||||
./build.sh ${myconf[@]} || die "build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,356 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
#TL_UPSTREAM_PATCHLEVEL="1"
|
||||
PATCHLEVEL="65.1"
|
||||
TL_SOURCE_VERSION=20160523
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
|
||||
|
||||
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
|
||||
|
||||
DESCRIPTION="A complete TeX distribution"
|
||||
HOMEPAGE="http://tug.org/texlive/"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2 LPPL-1.3c TeX"
|
||||
|
||||
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz"
|
||||
|
||||
# Fetch patches
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz"
|
||||
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz"
|
||||
|
||||
TL_CORE_BINEXTRA_MODULES="
|
||||
a2ping adhocfilelist arara asymptote bundledoc checklistings ctan_chk
|
||||
ctanify ctanupload ctie cweb de-macro dtl dtxgen dvi2tty dviasm dvicopy
|
||||
dvidvi dviljk dvipos findhyph fragmaster hook-pre-commit-pkg hyphenex
|
||||
installfont lacheck latex-git-log latex-papersize latex2man latex2nemeth
|
||||
latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext make4ht
|
||||
match_parens mflua mkjobtexmf patgen pdfbook2 pdfcrop pdflatexpicscale pdftools
|
||||
pdfxup pfarrei pkfix pkfix-helper purifyeps seetexk srcredact sty2dtx
|
||||
synctex tex4ebook texcount texdef texdiff texdirflatten texdoc texfot
|
||||
texliveonfly texloganalyser texosquery texware tie tpic2pdftex typeoutfileinfo
|
||||
web collection-binextra
|
||||
"
|
||||
TL_CORE_BINEXTRA_DOC_MODULES="
|
||||
a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bundledoc.doc
|
||||
checklistings.doc ctan_chk.doc ctanify.doc ctanupload.doc ctie.doc
|
||||
cweb.doc de-macro.doc dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc
|
||||
dvidvi.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc
|
||||
hook-pre-commit-pkg.doc installfont.doc lacheck.doc latex-git-log.doc
|
||||
latex-papersize.doc latex2man.doc latex2nemeth.doc latexfileversion.doc
|
||||
latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc
|
||||
make4ht.doc match_parens.doc mkjobtexmf.doc patgen.doc pdfbook2.doc pdfcrop.doc
|
||||
pdflatexpicscale.doc pdftools.doc pdfxup.doc pfarrei.doc pkfix.doc
|
||||
pkfix-helper.doc purifyeps.doc pythontex.doc seetexk.doc srcredact.doc
|
||||
sty2dtx.doc synctex.doc tex4ebook.doc texcount.doc texdef.doc texdiff.doc
|
||||
texdirflatten.doc texdoc.doc texfot.doc texliveonfly.doc texloganalyser.doc
|
||||
texosquery.doc texware.doc tie.doc tpic2pdftex.doc typeoutfileinfo.doc web.doc
|
||||
"
|
||||
TL_CORE_BINEXTRA_SRC_MODULES="
|
||||
adhocfilelist.source arara.source checklistings.source hyphenex.source
|
||||
listings-ext.source mkjobtexmf.source pfarrei.source pythontex.source
|
||||
texdef.source texosquery.source
|
||||
"
|
||||
|
||||
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}"
|
||||
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
|
||||
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
|
||||
|
||||
for i in ${TL_CORE_EXTRA_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
|
||||
SRC_URI="${SRC_URI} doc? ( "
|
||||
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
SRC_URI="${SRC_URI} )"
|
||||
SRC_URI="${SRC_URI} source? ( "
|
||||
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
SRC_URI="${SRC_URI} )"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="cjk X doc source tk +luajittex xetex"
|
||||
|
||||
TEXMF_PATH=/usr/share/texmf-dist
|
||||
|
||||
MODULAR_X_DEPEND="X? (
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXp
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXaw
|
||||
)"
|
||||
|
||||
COMMON_DEPEND="${MODULAR_X_DEPEND}
|
||||
!app-text/ptex
|
||||
!app-text/tetex
|
||||
!<app-text/texlive-2007
|
||||
!app-text/xetex
|
||||
!<dev-texlive/texlive-basic-2014
|
||||
!<dev-texlive/texlive-metapost-2011
|
||||
!app-text/dvibook
|
||||
!dev-tex/luatex
|
||||
!app-text/dvipdfm
|
||||
!app-text/dvipdfmx
|
||||
!app-text/xdvipdfmx
|
||||
sys-libs/zlib
|
||||
>=media-libs/libpng-1.2.43-r2:0=
|
||||
>=app-text/poppler-0.12.3-r3:=
|
||||
>=x11-libs/cairo-1.12
|
||||
>=x11-libs/pixman-0.18
|
||||
dev-libs/zziplib
|
||||
app-text/libpaper
|
||||
dev-libs/gmp:0
|
||||
dev-libs/mpfr:0
|
||||
xetex? (
|
||||
>=media-libs/harfbuzz-0.9.20[icu,graphite]
|
||||
>=dev-libs/icu-50:=
|
||||
>=app-text/teckit-2.5.3
|
||||
media-libs/fontconfig
|
||||
media-gfx/graphite2
|
||||
)
|
||||
media-libs/freetype:2
|
||||
>=dev-libs/kpathsea-6.2.1
|
||||
cjk? ( >=dev-libs/ptexenc-1.3.4_p20160523 )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
sys-apps/ed
|
||||
sys-devel/flex
|
||||
app-arch/xz-utils"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-text/ps2pkm-1.8_p20160523
|
||||
>=app-text/dvipsk-5.996_p20160523
|
||||
>=dev-tex/bibtexu-3.71_p20160523
|
||||
virtual/perl-Getopt-Long
|
||||
tk? ( dev-perl/Tk )"
|
||||
|
||||
S="${WORKDIR}/${P}_build"
|
||||
B="${WORKDIR}/${MY_PV}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p "${S}" || die "failed to create build dir"
|
||||
}
|
||||
|
||||
RELOC_TARGET=texmf-dist
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}"
|
||||
# From texlive-module.eclass.
|
||||
grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
|
||||
{ for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist"
|
||||
for i in $(<"${T}/dirlist"); do
|
||||
[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
|
||||
done
|
||||
for i in $(<"${T}/reloclist"); do
|
||||
mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
|
||||
done
|
||||
|
||||
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
|
||||
|
||||
cd "${B}"
|
||||
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches"
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \
|
||||
texk/web2c/configure || die
|
||||
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# It fails on alpha without this
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
# Required for newest icu, bug #618732
|
||||
append-cxxflags '-std=c++11'
|
||||
|
||||
# Too many regexps use A-Z a-z constructs, what causes problems with locales
|
||||
# that don't have the same alphabetical order than ascii. Bug #242430
|
||||
# So we set LC_ALL to C in order to avoid problems.
|
||||
export LC_ALL=C
|
||||
tc-export CC CXX AR RANLIB
|
||||
ECONF_SOURCE="${B}" \
|
||||
econf -C \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--datadir="${S}" \
|
||||
--with-system-freetype2 \
|
||||
--with-system-zlib \
|
||||
--with-system-libpng \
|
||||
--with-system-xpdf \
|
||||
--with-system-poppler \
|
||||
--with-system-teckit \
|
||||
--with-teckit-includes="${EPREFIX}"/usr/include/teckit \
|
||||
--with-system-kpathsea \
|
||||
--with-kpathsea-includes="${EPREFIX}"/usr/include \
|
||||
--with-system-icu \
|
||||
--with-system-ptexenc \
|
||||
--with-system-harfbuzz \
|
||||
--with-system-icu \
|
||||
--with-system-graphite2 \
|
||||
--with-system-cairo \
|
||||
--with-system-pixman \
|
||||
--with-system-zziplib \
|
||||
--with-system-libpaper \
|
||||
--with-system-gmp \
|
||||
--with-system-mpfr \
|
||||
--without-texinfo \
|
||||
--disable-dialog \
|
||||
--disable-multiplatform \
|
||||
--enable-epsfwin \
|
||||
--enable-mftalkwin \
|
||||
--enable-regiswin \
|
||||
--enable-tektronixwin \
|
||||
--enable-unitermwin \
|
||||
--with-ps=gs \
|
||||
--disable-psutils \
|
||||
--disable-t1utils \
|
||||
--enable-ipc \
|
||||
--disable-biber \
|
||||
--disable-bibtex-x \
|
||||
--disable-dvipng \
|
||||
--disable-dvipsk \
|
||||
--disable-chktex \
|
||||
--disable-lcdf-typetools \
|
||||
--disable-pdfopen \
|
||||
--disable-ps2eps \
|
||||
--disable-ps2pk \
|
||||
--disable-detex \
|
||||
--disable-ttf2pk2 \
|
||||
--disable-tex4htk \
|
||||
--disable-cjkutils \
|
||||
--disable-xdvik \
|
||||
--disable-xindy \
|
||||
--enable-luatex \
|
||||
--disable-dvi2tty \
|
||||
--disable-dvisvgm \
|
||||
--disable-vlna \
|
||||
--enable-shared \
|
||||
--disable-native-texlive-build \
|
||||
--disable-largefile \
|
||||
$(use_enable luajittex) \
|
||||
$(use_enable luajittex mfluajit) \
|
||||
$(use_enable xetex) \
|
||||
$(use_enable cjk ptex) \
|
||||
$(use_enable cjk eptex) \
|
||||
$(use_enable cjk uptex) \
|
||||
$(use_enable cjk euptex) \
|
||||
$(use_enable cjk mendexk) \
|
||||
$(use_enable cjk makejvf) \
|
||||
$(use_enable cjk pmp) \
|
||||
$(use_enable cjk upmp) \
|
||||
$(use_enable tk texdoctk) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX AR RANLIB
|
||||
emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
|
||||
|
||||
cd "${B}" || die
|
||||
# Mimic updmap --syncwithtrees to enable only fonts installed
|
||||
# Code copied from updmap script
|
||||
for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
|
||||
texlive-common_is_file_present_in_texmf "$i" || echo "$i"
|
||||
done > "${T}/updmap_update"
|
||||
{
|
||||
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
} > "${T}/updmap_update2"
|
||||
sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
|
||||
&& cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
|
||||
emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
|
||||
|
||||
cd "${B}" || die
|
||||
dodir /usr/share # just in case
|
||||
cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
|
||||
cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
|
||||
|
||||
# When X is disabled mf-nowin doesn't exist but some scripts expect it to
|
||||
# exist. Instead, it is called mf, so we symlink it to please everything.
|
||||
use X || dosym mf /usr/bin/mf-nowin
|
||||
|
||||
docinto texk
|
||||
cd "${B}/texk"
|
||||
dodoc ChangeLog README
|
||||
|
||||
docinto dviljk
|
||||
cd "${B}/texk/dviljk"
|
||||
dodoc ChangeLog README NEWS
|
||||
|
||||
docinto makeindexk
|
||||
cd "${B}/texk/makeindexk"
|
||||
dodoc ChangeLog NOTES README
|
||||
|
||||
docinto web2c
|
||||
cd "${B}/texk/web2c"
|
||||
dodoc ChangeLog NEWS PROJECTS README
|
||||
|
||||
use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
|
||||
|
||||
dodir /etc/env.d
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive"
|
||||
# populate /etc/texmf
|
||||
keepdir /etc/texmf/web2c
|
||||
|
||||
# take care of updmap.cfg and language.d files
|
||||
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
|
||||
|
||||
mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
|
||||
|
||||
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
|
||||
# by texmf-update
|
||||
rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
|
||||
# Remove bundled and invalid updmap.cfg
|
||||
rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
|
||||
|
||||
texlive-common_handle_config_files
|
||||
|
||||
keepdir /usr/share/texmf-site
|
||||
|
||||
# the virtex symlink is not installed
|
||||
# The links has to be relative, since the targets
|
||||
# is not present at this stage and MacOS doesn't
|
||||
# like non-existing targets
|
||||
dosym tex /usr/bin/virtex
|
||||
dosym pdftex /usr/bin/pdfvirtex
|
||||
|
||||
# Rename mpost to leave room for mplib
|
||||
mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}"
|
||||
dosym "mpost-${P}" /usr/bin/mpost
|
||||
|
||||
# Ditto for pdftex
|
||||
mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}"
|
||||
dosym "pdftex-${P}" /usr/bin/pdftex
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
etexmf-update
|
||||
|
||||
elog
|
||||
elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
|
||||
elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
|
||||
elog
|
||||
ewarn "If you are migrating from an older TeX distribution"
|
||||
ewarn "Please make sure you have read:"
|
||||
ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
|
||||
ewarn "in order to avoid possible problems"
|
||||
elog
|
||||
elog "TeXLive has been split in various ebuilds. If you are missing a"
|
||||
elog "package to process your TeX documents, you can install"
|
||||
elog "dev-tex/texmfind to easily search for them."
|
||||
elog
|
||||
}
|
@ -0,0 +1,359 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
#TL_UPSTREAM_PATCHLEVEL="1"
|
||||
PATCHLEVEL="70"
|
||||
TL_SOURCE_VERSION=20170524
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
|
||||
|
||||
MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
|
||||
|
||||
DESCRIPTION="A complete TeX distribution"
|
||||
HOMEPAGE="http://tug.org/texlive/"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2 LPPL-1.3c TeX"
|
||||
|
||||
SRC_URI="mirror://gentoo/${MY_PV}.tar.xz"
|
||||
|
||||
# Fetch patches
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz"
|
||||
# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz"
|
||||
|
||||
TL_CORE_BINEXTRA_MODULES="
|
||||
a2ping adhocfilelist arara asymptote bundledoc checklistings ctan_chk
|
||||
ctanify ctanupload ctie cweb de-macro dtl dtxgen dvi2tty dviasm dvicopy
|
||||
dvidvi dviljk dvipos findhyph fragmaster hook-pre-commit-pkg hyphenex
|
||||
installfont lacheck latex-git-log latex-papersize latex2man latex2nemeth
|
||||
latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext make4ht
|
||||
match_parens mflua mkjobtexmf patgen pdfbook2 pdfcrop pdflatexpicscale pdftools
|
||||
pdfxup pfarrei pkfix pkfix-helper purifyeps seetexk srcredact sty2dtx
|
||||
synctex tex4ebook texcount texdef texdiff texdirflatten texdoc texfot
|
||||
texliveonfly texloganalyser texosquery texware tie tpic2pdftex typeoutfileinfo
|
||||
web collection-binextra
|
||||
"
|
||||
TL_CORE_BINEXTRA_DOC_MODULES="
|
||||
a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bundledoc.doc
|
||||
checklistings.doc ctan_chk.doc ctanify.doc ctanupload.doc ctie.doc
|
||||
cweb.doc de-macro.doc dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc
|
||||
dvidvi.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc
|
||||
hook-pre-commit-pkg.doc installfont.doc lacheck.doc latex-git-log.doc
|
||||
latex-papersize.doc latex2man.doc latex2nemeth.doc latexfileversion.doc
|
||||
latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc
|
||||
make4ht.doc match_parens.doc mkjobtexmf.doc patgen.doc pdfbook2.doc pdfcrop.doc
|
||||
pdflatexpicscale.doc pdftools.doc pdfxup.doc pfarrei.doc pkfix.doc
|
||||
pkfix-helper.doc purifyeps.doc pythontex.doc seetexk.doc srcredact.doc
|
||||
sty2dtx.doc synctex.doc tex4ebook.doc texcount.doc texdef.doc texdiff.doc
|
||||
texdirflatten.doc texdoc.doc texfot.doc texliveonfly.doc texloganalyser.doc
|
||||
texosquery.doc texware.doc tie.doc tpic2pdftex.doc typeoutfileinfo.doc web.doc
|
||||
"
|
||||
TL_CORE_BINEXTRA_SRC_MODULES="
|
||||
adhocfilelist.source arara.source checklistings.source hyphenex.source
|
||||
listings-ext.source mkjobtexmf.source pfarrei.source pythontex.source
|
||||
texdef.source texosquery.source
|
||||
"
|
||||
|
||||
TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}"
|
||||
TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
|
||||
TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
|
||||
|
||||
for i in ${TL_CORE_EXTRA_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
|
||||
SRC_URI="${SRC_URI} doc? ( "
|
||||
for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
SRC_URI="${SRC_URI} )"
|
||||
SRC_URI="${SRC_URI} source? ( "
|
||||
for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
|
||||
SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
|
||||
done
|
||||
SRC_URI="${SRC_URI} )"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="cjk X doc source tk +luajittex xetex"
|
||||
|
||||
TEXMF_PATH=/usr/share/texmf-dist
|
||||
|
||||
MODULAR_X_DEPEND="X? (
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXp
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXaw
|
||||
)"
|
||||
|
||||
COMMON_DEPEND="${MODULAR_X_DEPEND}
|
||||
!app-text/ptex
|
||||
!app-text/tetex
|
||||
!<app-text/texlive-2007
|
||||
!app-text/xetex
|
||||
!<dev-texlive/texlive-basic-2014
|
||||
!<dev-texlive/texlive-metapost-2011
|
||||
!app-text/dvibook
|
||||
!dev-tex/luatex
|
||||
!app-text/dvipdfm
|
||||
!app-text/dvipdfmx
|
||||
!app-text/xdvipdfmx
|
||||
sys-libs/zlib
|
||||
>=media-libs/libpng-1.2.43-r2:0=
|
||||
>=app-text/poppler-0.12.3-r3:=
|
||||
>=x11-libs/cairo-1.12
|
||||
>=x11-libs/pixman-0.18
|
||||
dev-libs/zziplib
|
||||
app-text/libpaper
|
||||
dev-libs/gmp:0
|
||||
dev-libs/mpfr:0=
|
||||
xetex? (
|
||||
>=media-libs/harfbuzz-1.4.5[icu,graphite]
|
||||
>=dev-libs/icu-50:=
|
||||
>=app-text/teckit-2.5.3
|
||||
media-libs/fontconfig
|
||||
media-gfx/graphite2
|
||||
)
|
||||
media-libs/freetype:2
|
||||
>=dev-libs/kpathsea-6.2.3
|
||||
cjk? ( >=dev-libs/ptexenc-1.3.5 )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
sys-apps/ed
|
||||
sys-devel/flex
|
||||
app-arch/xz-utils"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-text/ps2pkm-1.8_p20170524
|
||||
>=app-text/dvipsk-5.997
|
||||
>=dev-tex/bibtexu-3.71_p20170524
|
||||
virtual/perl-Getopt-Long
|
||||
tk? ( dev-perl/Tk )"
|
||||
|
||||
S="${WORKDIR}/${P}_build"
|
||||
B="${WORKDIR}/${MY_PV}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p "${S}" || die "failed to create build dir"
|
||||
}
|
||||
|
||||
RELOC_TARGET=texmf-dist
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}"
|
||||
# From texlive-module.eclass.
|
||||
grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
|
||||
{ for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist"
|
||||
for i in $(<"${T}/dirlist"); do
|
||||
[ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
|
||||
done
|
||||
for i in $(<"${T}/reloclist"); do
|
||||
mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
|
||||
done
|
||||
|
||||
mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
|
||||
|
||||
cd "${B}"
|
||||
#EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches"
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \
|
||||
texk/web2c/configure || die
|
||||
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# It fails on alpha without this
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
# Required for newest icu, bug #618732
|
||||
append-cxxflags '-std=c++11'
|
||||
|
||||
# Too many regexps use A-Z a-z constructs, what causes problems with locales
|
||||
# that don't have the same alphabetical order than ascii. Bug #242430
|
||||
# So we set LC_ALL to C in order to avoid problems.
|
||||
export LC_ALL=C
|
||||
tc-export CC CXX AR RANLIB
|
||||
ECONF_SOURCE="${B}" \
|
||||
econf -C \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--datadir="${S}" \
|
||||
--with-system-freetype2 \
|
||||
--with-system-zlib \
|
||||
--with-system-libpng \
|
||||
--with-system-xpdf \
|
||||
--with-system-poppler \
|
||||
--with-system-teckit \
|
||||
--with-teckit-includes="${EPREFIX}"/usr/include/teckit \
|
||||
--with-system-kpathsea \
|
||||
--with-kpathsea-includes="${EPREFIX}"/usr/include \
|
||||
--with-system-icu \
|
||||
--with-system-ptexenc \
|
||||
--with-system-harfbuzz \
|
||||
--with-system-icu \
|
||||
--with-system-graphite2 \
|
||||
--with-system-cairo \
|
||||
--with-system-pixman \
|
||||
--with-system-zziplib \
|
||||
--with-system-libpaper \
|
||||
--with-system-gmp \
|
||||
--with-system-mpfr \
|
||||
--without-texinfo \
|
||||
--disable-dialog \
|
||||
--disable-multiplatform \
|
||||
--enable-epsfwin \
|
||||
--enable-mftalkwin \
|
||||
--enable-regiswin \
|
||||
--enable-tektronixwin \
|
||||
--enable-unitermwin \
|
||||
--with-ps=gs \
|
||||
--disable-psutils \
|
||||
--disable-t1utils \
|
||||
--enable-ipc \
|
||||
--disable-biber \
|
||||
--disable-bibtex-x \
|
||||
--disable-dvipng \
|
||||
--disable-dvipsk \
|
||||
--disable-chktex \
|
||||
--disable-lcdf-typetools \
|
||||
--disable-pdfopen \
|
||||
--disable-ps2eps \
|
||||
--disable-ps2pk \
|
||||
--disable-detex \
|
||||
--disable-ttf2pk2 \
|
||||
--disable-tex4htk \
|
||||
--disable-cjkutils \
|
||||
--disable-xdvik \
|
||||
--disable-xindy \
|
||||
--enable-luatex \
|
||||
--disable-dvi2tty \
|
||||
--disable-dvisvgm \
|
||||
--disable-vlna \
|
||||
--enable-shared \
|
||||
--disable-native-texlive-build \
|
||||
--disable-largefile \
|
||||
$(use_enable luajittex) \
|
||||
$(use_enable luajittex mfluajit) \
|
||||
$(use_enable xetex) \
|
||||
$(use_enable cjk ptex) \
|
||||
$(use_enable cjk eptex) \
|
||||
$(use_enable cjk uptex) \
|
||||
$(use_enable cjk euptex) \
|
||||
$(use_enable cjk mendexk) \
|
||||
$(use_enable cjk makejvf) \
|
||||
$(use_enable cjk pmp) \
|
||||
$(use_enable cjk upmp) \
|
||||
$(use_enable tk texdoctk) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX AR RANLIB
|
||||
emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
|
||||
|
||||
cd "${B}" || die
|
||||
# Mimic updmap --syncwithtrees to enable only fonts installed
|
||||
# Code copied from updmap script
|
||||
for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
|
||||
texlive-common_is_file_present_in_texmf "$i" || echo "$i"
|
||||
done > "${T}/updmap_update"
|
||||
{
|
||||
sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
|
||||
} > "${T}/updmap_update2"
|
||||
sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
|
||||
&& cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
|
||||
emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
|
||||
|
||||
cd "${B}" || die
|
||||
dodir /usr/share # just in case
|
||||
cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
|
||||
cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
|
||||
|
||||
# When X is disabled mf-nowin doesn't exist but some scripts expect it to
|
||||
# exist. Instead, it is called mf, so we symlink it to please everything.
|
||||
use X || dosym mf /usr/bin/mf-nowin
|
||||
|
||||
docinto texk
|
||||
cd "${B}/texk"
|
||||
dodoc ChangeLog README
|
||||
|
||||
docinto dviljk
|
||||
cd "${B}/texk/dviljk"
|
||||
dodoc ChangeLog README NEWS
|
||||
|
||||
docinto makeindexk
|
||||
cd "${B}/texk/makeindexk"
|
||||
dodoc ChangeLog NOTES README
|
||||
|
||||
docinto web2c
|
||||
cd "${B}/texk/web2c"
|
||||
dodoc ChangeLog NEWS PROJECTS README
|
||||
|
||||
use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
|
||||
|
||||
dodir /etc/env.d
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive"
|
||||
# populate /etc/texmf
|
||||
keepdir /etc/texmf/web2c
|
||||
|
||||
# take care of updmap.cfg and language.d files
|
||||
keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
|
||||
|
||||
mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
|
||||
|
||||
# Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
|
||||
# by texmf-update
|
||||
rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
|
||||
# Remove bundled and invalid updmap.cfg
|
||||
rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
|
||||
|
||||
texlive-common_handle_config_files
|
||||
|
||||
keepdir /usr/share/texmf-site
|
||||
|
||||
# the virtex symlink is not installed
|
||||
# The links has to be relative, since the targets
|
||||
# is not present at this stage and MacOS doesn't
|
||||
# like non-existing targets
|
||||
dosym tex /usr/bin/virtex
|
||||
dosym pdftex /usr/bin/pdfvirtex
|
||||
|
||||
# Rename mpost to leave room for mplib
|
||||
mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}"
|
||||
dosym "mpost-${P}" /usr/bin/mpost
|
||||
|
||||
# Ditto for pdftex
|
||||
mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}"
|
||||
dosym "pdftex-${P}" /usr/bin/pdftex
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
etexmf-update
|
||||
|
||||
einfo "Regenerating TeX formats"
|
||||
fmtutil-sys --all &> /dev/null
|
||||
|
||||
elog
|
||||
elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
|
||||
elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
|
||||
elog
|
||||
ewarn "If you are migrating from an older TeX distribution"
|
||||
ewarn "Please make sure you have read:"
|
||||
ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
|
||||
ewarn "in order to avoid possible problems"
|
||||
elog
|
||||
elog "TeXLive has been split in various ebuilds. If you are missing a"
|
||||
elog "package to process your TeX documents, you can install"
|
||||
elog "dev-tex/texmfind to easily search for them."
|
||||
elog
|
||||
}
|
Binary file not shown.
@ -0,0 +1,46 @@
|
||||
diff --git a/src/mongo/SConscript b/src/mongo/SConscript
|
||||
index 9cde728..e29664e 100644
|
||||
--- a/src/mongo/SConscript
|
||||
+++ b/src/mongo/SConscript
|
||||
@@ -629,33 +629,6 @@ for full_dir, archive_dir in env["ARCHIVE_ADDITION_DIR_MAP"].items():
|
||||
for target in env["DIST_BINARIES"]:
|
||||
installBinary(env, "db/modules/" + target)
|
||||
|
||||
-# Set the download url to the right place
|
||||
-compass_type = 'compass-community'
|
||||
-if 'enterprise' in env['MONGO_MODULES']:
|
||||
- compass_type = 'compass'
|
||||
-
|
||||
-compass_script = "install_compass"
|
||||
-if env.TargetOSIs('windows'):
|
||||
- # On windows the .in needs to be explicitly added to the file.
|
||||
- compass_script = "Install-Compass.ps1.in"
|
||||
-
|
||||
-compass_python_interpreter = '/usr/bin/env python2'
|
||||
-if env.TargetOSIs('darwin'):
|
||||
- compass_python_interpreter = '/usr/bin/env python'
|
||||
-
|
||||
-compass_installer = env.Substfile('#/src/mongo/installer/compass/' + compass_script,
|
||||
- SUBST_DICT=[
|
||||
- ('@compass_type@', compass_type),
|
||||
- ('@python_interpreter@', compass_python_interpreter),
|
||||
- ])
|
||||
-distBinaries.append(compass_installer)
|
||||
-
|
||||
-compass_script_installer = env.Install("$INSTALL_DIR/bin", compass_installer)
|
||||
-
|
||||
-if env.TargetOSIs('posix'):
|
||||
- env.AddPostAction( compass_script_installer, 'chmod 755 $TARGET' )
|
||||
- env.AddPostAction( compass_installer, 'chmod 755 $TARGET' )
|
||||
-
|
||||
# "dist" target is valid only when --use-new-tools is specified
|
||||
# Attempts to build release artifacts without tools must fail
|
||||
if has_option("use-new-tools"):
|
||||
@@ -673,7 +646,6 @@ if has_option("use-new-tools"):
|
||||
'--transform $BUILD_DIR/mongo=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform $BUILD_DIR/mongo/stripped/src/mongo-tools=$SERVER_DIST_BASENAME/bin',
|
||||
'--transform src/mongo-tools=$SERVER_DIST_BASENAME/bin',
|
||||
- '--transform src/mongo/installer/compass=$SERVER_DIST_BASENAME/bin',
|
||||
'${TEMPFILE(SOURCES[1:])}'
|
||||
],
|
||||
),
|
@ -0,0 +1,170 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug kerberos libressl mms-agent ssl test +tools"
|
||||
|
||||
RDEPEND=">=app-arch/snappy-1.1.3
|
||||
>=dev-cpp/yaml-cpp-0.5.3
|
||||
>=dev-libs/boost-1.60:=[threads(+)]
|
||||
>=dev-libs/libpcre-8.41[cxx]
|
||||
dev-libs/snowball-stemmer
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.8:=
|
||||
mms-agent? ( app-admin/mms-agent )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
dev-python/cheetah[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/typing[${PYTHON_USEDEP}]
|
||||
<dev-util/scons-3
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
debug? ( dev-util/valgrind )
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
test? (
|
||||
dev-python/pymongo[${PYTHON_USEDEP}]
|
||||
)"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
|
||||
"${FILESDIR}/${PN}-3.6.1-no-compass.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then
|
||||
ewarn "To upgrade from a version earlier than the 3.4-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 3.4-series. Then upgrade to 3.6 series."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -rv src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
# https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
)
|
||||
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# wiredtiger not supported on 32bit platforms #572166
|
||||
use x86 && scons_opts+=( --wiredtiger=off )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
fperms 0750 "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s}
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# wrt bug #461466
|
||||
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="A libc optimized for small size"
|
||||
HOMEPAGE="http://www.fefe.de/dietlibc/"
|
||||
SRC_URI="https://dev.gentoo.org/~patrick/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm ~ia64 ~mips sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
DIETHOME=/usr/diet
|
||||
|
||||
S=${WORKDIR}/dietlibc
|
||||
|
||||
src_prepare() {
|
||||
# Replace sparc64 related C[XX]FLAGS (see bug #45716)
|
||||
use sparc && replace-sparc64-flags
|
||||
|
||||
# gcc-hppa suffers support for SSP, compilation will fail
|
||||
use hppa && strip-unsupported-flags
|
||||
|
||||
# Makefile does not append CFLAGS
|
||||
append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \
|
||||
-Wmissing-prototypes -Wmissing-declarations -Wno-switch \
|
||||
-Wno-unused -Wredundant-decls -fno-strict-aliasing
|
||||
|
||||
# Disable ssp for we default to it on >=gcc-4.8.3
|
||||
append-flags $(test-flags -fno-stack-protector)
|
||||
|
||||
# only use -nopie on archs that support it
|
||||
tc-enables-pie && append-flags -no-pie
|
||||
|
||||
sed -i -e 's:strip::' Makefile || die
|
||||
append-flags -Wa,--noexecstack
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 prefix="${EPREFIX}"${DIETHOME} \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
STRIP=":"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 prefix="${EPREFIX}"${DIETHOME} \
|
||||
DESTDIR="${D}" \
|
||||
install-bin \
|
||||
install-headers \
|
||||
install-profiling
|
||||
|
||||
dobin "${ED}"${DIETHOME}/bin/*
|
||||
doman "${ED}"${DIETHOME}/man/*/*
|
||||
rm -r "${ED}"${DIETHOME}/{man,bin} || die
|
||||
|
||||
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
From b1081cccb90fbe4cd859d3280a0470c30dce5cac Mon Sep 17 00:00:00 2001
|
||||
From: Allen Winter <allen.winter@kdab.com>
|
||||
Date: Thu, 24 Mar 2016 16:28:02 -0400
|
||||
Subject: [PATCH] recur.c, testvcal.c - use TEST_DATADIR to point to the test
|
||||
data thereby fixing in-source building ISSUE#228
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=532296
|
||||
|
||||
---
|
||||
src/test/recur.c | 2 +-
|
||||
src/test/testvcal.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/test/recur.c b/src/test/recur.c
|
||||
index d427137a..873ec48a 100644
|
||||
--- a/src/test/recur.c
|
||||
+++ b/src/test/recur.c
|
||||
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
if (argc <= 1) {
|
||||
- file = "../../test-data/recur.txt";
|
||||
+ file = TEST_DATADIR "/recur.txt";
|
||||
} else if (argc == 2) {
|
||||
file = argv[1];
|
||||
} else {
|
||||
diff --git a/src/test/testvcal.c b/src/test/testvcal.c
|
||||
index feee8147..024bbe99 100644
|
||||
--- a/src/test/testvcal.c
|
||||
+++ b/src/test/testvcal.c
|
||||
@@ -44,7 +44,7 @@ int main(int argc, char *argv[])
|
||||
char *file;
|
||||
|
||||
if (argc != 2) {
|
||||
- file = "../../test-data/user-cal.vcf";
|
||||
+ file = TEST_DATADIR "/user-cal.vcf";
|
||||
} else {
|
||||
file = argv[1];
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>asturm@gentoo.org</email>
|
||||
<name>Andreas Sturmlechner</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">libical/libical</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="glib">Enable <pkg>dev-libs/glib</pkg> GObject interface support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST rackspace-monitoring-0.6.5.tar.gz 31397 BLAKE2B 7e51dd95ca801feae7effbd4c59b3d1a2efeff08c17938b82341a1a4ed0635923d1bb518912a1dc11f98a4a94ff7638431f5180975896f09956b9cca0e8a5269 SHA512 513e02eb7b823ed4287462ffe6517011c389119dbf37d90df31cc08714f93806188d07e4f8d339453b59f17c067229a3f52f1ae7aaf13a7c6504c0ef63b1f4fe
|
||||
DIST rackspace-monitoring-0.8.0.tar.gz 32989 BLAKE2B 6b32fb0b90189fa6f7cb89eb39a90f9581ebca75b0b4f2eba9d4046b9a35ead66c4d4d5a1addd9143ef71c1d4bf05a5a81bb0582b69da80c5f8de7dfbe744009 SHA512 df0a2c38f1abbb71858f0b4347c5e64b481d03b332c02926b9f0def429b37f0b2bff8e026c5fdac566ed391234cf17f64ef10149186b9ac72a2938c205d2b658
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Client library for Rackspace Cloud Monitoring"
|
||||
HOMEPAGE="https://github.com/racker/rackspace-monitoring"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="test" # resrticted for bug 636106
|
||||
|
||||
TEST_DEPENDS="dev-python/pep8[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
>=dev-python/libcloud-0.17.0[${PYTHON_USEDEP}]
|
||||
<dev-python/libcloud-2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${TEST_DEPENDS}
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} setup.py test || die
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
https://bitbucket.org/sqlalchemy/sqlalchemy/pull-request/41
|
||||
--- a/test/engine/test_execute.py
|
||||
+++ b/test/engine/test_execute.py
|
||||
@@ -9,7 +9,7 @@
|
||||
import sqlalchemy as tsa
|
||||
from test.lib import testing, engines
|
||||
from test.lib.engines import testing_engine
|
||||
-import logging
|
||||
+import logging, logging.handlers
|
||||
from sqlalchemy.dialects.oracle.zxjdbc import ReturningParam
|
||||
from sqlalchemy.engine import base, default
|
||||
from sqlalchemy.engine.base import Connection, Engine
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
# py3 appears underdone,
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 eutils flag-o-matic
|
||||
|
||||
MY_PN="SQLAlchemy"
|
||||
MY_P="${MY_PN}-${PV/_}"
|
||||
|
||||
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
|
||||
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc examples mssql mysql postgres +sqlite test"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
mssql? ( dev-python/pymssql )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
postgres? ( >=dev-python/psycopg-2 )
|
||||
sqlite? (
|
||||
>=dev-db/sqlite-3.3.13 )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-db/sqlite-3.3.13
|
||||
>=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.7-logging.handlers.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests hardcoding function call counts specific to Python versions.
|
||||
rm -fr test/aaa_profiling
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" sqla_nose.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use doc; then
|
||||
pushd doc > /dev/null
|
||||
rm -fr build
|
||||
dohtml -r [a-z]* _images _static
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST latte-dock-0.7.1.tar.gz 1788443 BLAKE2B 55a597bf5a53d345c05296fa501f000d4216cc48924cdf7e41590e8c40e5167947d115a2919fb8ee54975cc9c2d4220a2abd7992eee4113b2eb8c24cad8add83 SHA512 8bf0acbb913bab7bfa0f9d75ab121dce6c6f86cc5f8f79ea0279f226a9cde4a1f67589c82a78336deeb140008687a3fce252ea5f85d69d3636b75e18180cae00
|
||||
DIST latte-dock-0.7.2.tar.xz 889256 BLAKE2B 34eed5bd375e9ecb7cc6007605e4e29b72bc755db774a997855eb2627a702834b5c08c627f7022f0d3b25946c82163f936433b4e6a02ca596097188fa1113eb8 SHA512 a332bede2438c5af6ac1ebb4fffe6954a0aa319438ce503d739f4878a28e54bf98dfcb64ef96ab9250cabe6e22b5c16e8308f61699642103e7085a0fedecdb05
|
||||
DIST latte-dock-0.7.3.tar.xz 896272 BLAKE2B 1ee8e4a6406c6fa9cfc3db41f5362fd749a2d743974e878a5baa00a837f731235e4e6b2a0ee39e814c091412fbbcaa6213331a74b8884f63998d7e26543a5eb2 SHA512 a955a304d83dc90723ff4c501816a799866a300bed17adc0f44354d30039c270bfbb3d2d70e316c88dd86527aff9fb5b07dab00e16c222e601f88c2937935589
|
||||
|
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