parent
0ea617facf
commit
f0058a7a3b
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-group
|
||||
|
||||
ACCT_GROUP_ID=187
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Mikle Kolyada</name>
|
||||
<email>zlogene@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<name>Sergey Popov</name>
|
||||
<email>pinkbyte@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
ACCT_USER_ID=187
|
||||
ACCT_USER_GROUPS=( iroffer )
|
||||
|
||||
acct-user_add_deps
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Mikle Kolyada</name>
|
||||
<email>zlogene@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<name>Sergey Popov</name>
|
||||
<email>pinkbyte@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,2 @@
|
||||
DIST perl-cleaner-2.27.tar.bz2 7493 BLAKE2B 03d8bc336fd0a42bce16c4bf8b2272a7ff24d605b483af777ef7ab3d59accd0082709200705638ab116934f675b17c5cf109c40a3ab739654ff64abebd8c0558 SHA512 097d68dff30da198636f73fc44600f1863c7f69f87110315bb83297c96d826f2f101f56ab546fde94ff60ca00da0aaa569fefea3c2599155f3bd69c66fb42ed6
|
||||
DIST perl-cleaner-2.28.tar.bz2 7222 BLAKE2B 8b90b6d7be8b21de3de2d946baba2ea96e145072c1d6cb4fc9a45bd2181941155791e022f59139fbd440fd1dbc16a76e635e5d4bb420e9051efd87aa08a3aa0d SHA512 c53f2a48002ab45ec0e43cbdc6153792a540efb9ce9a272388707987a76a292a1f90ece85e2f5dfa94f75a1afae13a5768d3712f183ca9d10fa0c559bba132d5
|
||||
DIST perl-cleaner-2.29.tar.bz2 6945 BLAKE2B 2a01d3e59d949ad8ca730e78dde74c5af62c8d9d72186922048bc3e0a85947783d4a468d829236633028e2ea7932e83ccd306691b003186934477de3af385fe9 SHA512 1e2b5b575de7bda3f6bfc1073e15c358e93d3c1b839484f68e0c5183f5401d2537aeba403d973e8c143cd3f545484387b7e08d575f932dda102749aa5707d9c2
|
||||
DIST perl-cleaner-2.30.tar.bz2 6963 BLAKE2B 8983060c7a904266ac82a67eba7b5d2184803b59c077f947a35d07e9af3046953705d31840b9508116578b8f3e8a8b97d77cf21eeac3b70f1c3fb5c1d71ae64e SHA512 436d26727bbb598bcd3c4f31e6b81e415a797cdba82dccfd55e54ee179bd2d6c1dc443e865f6f0a05b59f47ffd231dd10e55d5ea97a9a6875235ea1b49b68898
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit prefix
|
||||
|
||||
DESCRIPTION="User land tool for cleaning up old perl installs"
|
||||
HOMEPAGE="https://www.gentoo.org/proj/en/perl/"
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gentoo-perl/perl-cleaner.git"
|
||||
else
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2 https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man"
|
||||
|
||||
RDEPEND="app-shells/bash
|
||||
dev-lang/perl
|
||||
|| (
|
||||
( sys-apps/portage app-portage/portage-utils )
|
||||
sys-apps/pkgcore
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eprefixify ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin perl-cleaner
|
||||
doman perl-cleaner.1
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit prefix
|
||||
|
||||
DESCRIPTION="User land tool for cleaning up old perl installs"
|
||||
HOMEPAGE="https://www.gentoo.org/proj/en/perl/"
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gentoo-perl/perl-cleaner.git"
|
||||
else
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2 https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
[[ "${PV}" == "9999" ]] && DEPEND="sys-apps/help2man"
|
||||
|
||||
RDEPEND="app-shells/bash
|
||||
dev-lang/perl
|
||||
|| (
|
||||
( sys-apps/portage app-portage/portage-utils )
|
||||
sys-apps/pkgcore
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eprefixify ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin perl-cleaner
|
||||
doman perl-cleaner.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,25 @@
|
||||
Require version 1 of parskip.sty
|
||||
|
||||
Newer versions change the spacing after headings which causes
|
||||
different page breaks.
|
||||
|
||||
Backported from master, commit 4ebd8cb.
|
||||
|
||||
--- a/pms.cls
|
||||
+++ b/pms.cls
|
||||
@@ -17,6 +17,7 @@
|
||||
% Enable UTF-8 input encoding
|
||||
\PassOptionsToPackage{utf8}{inputenc}
|
||||
% algorithmic and algorithm to be loaded last to avoid failures
|
||||
+\RequirePackage{parskip}[=v1] % Space between paragraphs instead of indentation
|
||||
\RequirePackage{%
|
||||
fontenc, % Load extended font sets
|
||||
isodate, % Date formatting and conversions
|
||||
@@ -30,7 +31,6 @@
|
||||
lscape, % Rotating pages
|
||||
marginnote, % Typeset a paragraph in the page margin
|
||||
paralist, % Additional list environments
|
||||
- parskip, % Space between paragraphs instead of indentation
|
||||
verbatim % Extend the print-as-is functionality
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
Require version 1 of parskip.sty
|
||||
|
||||
Newer versions change the spacing after headings which causes
|
||||
different page breaks.
|
||||
|
||||
Backported from master, commit 4ebd8cb.
|
||||
|
||||
--- a/pms.cls
|
||||
+++ b/pms.cls
|
||||
@@ -27,6 +27,7 @@
|
||||
\PassOptionsToPackage{hyphens}{url} % url.sty implicitly loaded by hyperref
|
||||
\PassOptionsToPackage{chapter}{algorithm}
|
||||
% algorithmic and algorithm to be loaded last to avoid failures
|
||||
+\RequirePackage{parskip}[=v1] % Space between paragraphs instead of indentation
|
||||
\RequirePackage{%
|
||||
fontenc, % Load extended font sets
|
||||
isodate, % Date formatting and conversions
|
||||
@@ -39,7 +40,6 @@
|
||||
lscape, % Rotating pages
|
||||
marginnote, % Typeset a paragraph in the page margin
|
||||
paralist, % Additional list environments
|
||||
- parskip, % Space between paragraphs instead of indentation
|
||||
underscore, % Allow simple _ instead of \_
|
||||
verbatim, % Extend the print-as-is functionality
|
||||
chngcntr, % Redefinition of counters
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1,60 @@
|
||||
From: "Dr. Tobias Quathamer" <toddy@debian.org>
|
||||
Date: Wed, 31 Jan 2018 23:27:37 +0100
|
||||
Subject: Prefer xdg-open
|
||||
|
||||
Add xdg-open as the first choice whenever this seems to be useful.
|
||||
---
|
||||
lib/configure.py | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/lib/configure.py b/lib/configure.py
|
||||
index 7fee68d..abc4d53 100644
|
||||
--- a/lib/configure.py
|
||||
+++ b/lib/configure.py
|
||||
@@ -657,7 +657,7 @@ def checkFormatEntries(dtl_tools):
|
||||
checkViewerEditor('a Dia viewer and editor', ['dia'],
|
||||
rc_entry = [r'\Format dia dia DIA "" "%%" "%%" "vector,zipped=native", "application/x-dia-diagram"'])
|
||||
#
|
||||
- checkViewerEditor('an OpenDocument drawing viewer and editor', ['libreoffice', 'lodraw', 'ooffice', 'oodraw', 'soffice'],
|
||||
+ checkViewerEditor('an OpenDocument drawing viewer and editor', ['xdg-open', 'libreoffice', 'lodraw', 'ooffice', 'oodraw', 'soffice'],
|
||||
rc_entry = [r'\Format odg "odg, sxd" "OpenDocument drawing" "" "%%" "%%" "vector,zipped=native" "application/vnd.oasis.opendocument.graphics"'])
|
||||
#
|
||||
checkViewerEditor('a Grace viewer and editor', ['xmgrace'],
|
||||
@@ -682,16 +682,16 @@ def checkFormatEntries(dtl_tools):
|
||||
\Format xbm xbm XBM "" "%s" "%s" "" "image/x-xbitmap"
|
||||
\Format xpm xpm XPM "" "%s" "%s" "" "image/x-xpixmap"'''
|
||||
path, iv = checkViewerNoRC('a raster image viewer',
|
||||
- ['xv', 'gwenview', 'kview',
|
||||
+ ['xdg-open', 'xv', 'gwenview', 'kview',
|
||||
'eog', 'xviewer', 'ristretto', 'gpicview', 'lximage-qt',
|
||||
- 'xdg-open', 'gimp-remote', 'gimp'],
|
||||
+ 'gimp-remote', 'gimp'],
|
||||
rc_entry = [imageformats])
|
||||
path, ie = checkEditorNoRC('a raster image editor',
|
||||
['gimp-remote', 'gimp'], rc_entry = [imageformats])
|
||||
addToRC(imageformats % ((iv, ie)*10))
|
||||
#
|
||||
checkViewerEditor('a text editor',
|
||||
- ['xemacs', 'gvim', 'kedit', 'kwrite', 'kate',
|
||||
+ ['xdg-open', 'xemacs', 'gvim', 'kedit', 'kwrite', 'kate',
|
||||
'nedit', 'gedit', 'geany', 'leafpad', 'mousepad', 'xed', 'notepad'],
|
||||
rc_entry = [r'''\Format asciichess asc "Plain text (chess output)" "" "" "%%" "" ""
|
||||
\Format docbook sgml DocBook B "" "%%" "document,menu=export" ""
|
||||
@@ -745,7 +745,7 @@ def checkFormatEntries(dtl_tools):
|
||||
#checkProg('a Postscript interpreter', ['gs'],
|
||||
# rc_entry = [ r'\ps_command "%%"' ])
|
||||
checkViewer('a Postscript previewer',
|
||||
- ['kghostview', 'okular', 'qpdfview --unique',
|
||||
+ ['xdg-open', 'kghostview', 'okular', 'qpdfview --unique',
|
||||
'evince', 'xreader',
|
||||
'gv', 'ghostview -swap', 'gsview64', 'gsview32'],
|
||||
rc_entry = [r'''\Format eps eps EPS "" "%%" "" "vector" "image/x-eps"
|
||||
@@ -756,7 +756,7 @@ def checkFormatEntries(dtl_tools):
|
||||
# maybe use "bestApplication()" from https://github.com/jleclanche/python-mime
|
||||
# the MIME type is set for pdf6, because that one needs to be autodetectable by libmime
|
||||
checkViewer('a PDF previewer',
|
||||
- ['pdfview', 'kpdf', 'okular', 'qpdfview --unique',
|
||||
+ ['xdg-open', 'pdfview', 'kpdf', 'okular', 'qpdfview --unique',
|
||||
'evince', 'xreader', 'kghostview', 'xpdf', 'SumatraPDF',
|
||||
'acrobat', 'acroread', 'mupdf',
|
||||
'gv', 'ghostview', 'AcroRd32', 'gsview64', 'gsview32'],
|
@ -0,0 +1,179 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
MY_P="${P/_}"
|
||||
inherit desktop flag-o-matic font python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
|
||||
HOMEPAGE="https://www.lyx.org/"
|
||||
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${MY_P}.tar.xz
|
||||
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.3/${MY_P}/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
|
||||
IUSE="aspell cups debug dia dot enchant gnumeric html +hunspell +latex monolithic-build nls rcs rtf svg l10n_he"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
app-text/mythes
|
||||
dev-libs/boost:=
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
dev-texlive/texlive-fontsextra
|
||||
sys-apps/file
|
||||
sys-libs/zlib
|
||||
virtual/imagemagick-tools[png,svg?]
|
||||
|
||||
x11-misc/xdg-utils
|
||||
|
||||
aspell? ( app-text/aspell )
|
||||
cups? ( net-print/cups )
|
||||
dia? ( app-office/dia )
|
||||
dot? ( media-gfx/graphviz )
|
||||
enchant? ( app-text/enchant:2 )
|
||||
gnumeric? ( app-office/gnumeric )
|
||||
html? ( dev-tex/html2latex )
|
||||
hunspell? ( app-text/hunspell )
|
||||
l10n_he? ( dev-tex/culmus-latex )
|
||||
latex? (
|
||||
app-text/dvipng
|
||||
app-text/ghostscript-gpl
|
||||
app-text/ps2eps
|
||||
app-text/texlive
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-mathscience
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-plaingeneric
|
||||
|| (
|
||||
dev-tex/hevea
|
||||
dev-tex/latex2html
|
||||
dev-tex/tex4ht[java]
|
||||
dev-tex/tth
|
||||
)
|
||||
)
|
||||
rcs? ( dev-vcs/rcs )
|
||||
rtf? (
|
||||
app-text/unrtf
|
||||
dev-tex/html2latex
|
||||
dev-tex/latex2rtf
|
||||
)
|
||||
svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/qtconcurrent:5
|
||||
"
|
||||
|
||||
DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
FONT_S="${S}/lib/fonts"
|
||||
FONT_SUFFIX="ttf"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
font_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Try first with xdg-open before hardcoded commands
|
||||
# Patch from Debian using a similar approach to Fedora
|
||||
eapply "${FILESDIR}"/${PN}-prefer-xdg-open.patch
|
||||
|
||||
sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CXX
|
||||
#bug 221921
|
||||
export VARTEXFONTS="${T}"/fonts
|
||||
|
||||
econf \
|
||||
$(use_with aspell) \
|
||||
$(use_enable debug) \
|
||||
$(use_with enchant) \
|
||||
$(use_with hunspell) \
|
||||
$(use_enable monolithic-build) \
|
||||
$(use_enable nls) \
|
||||
--enable-qt5 \
|
||||
--with-qt-dir=$(qt5_get_libdir)/qt5 \
|
||||
--disable-stdlib-debug \
|
||||
--without-included-boost \
|
||||
--with-packaging=posix
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use l10n_he ; then
|
||||
echo "\bind_file cua" > "${T}"/hebrew.bind || die
|
||||
echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind || die
|
||||
|
||||
insinto /usr/share/lyx/bind
|
||||
doins "${T}"/hebrew.bind
|
||||
fi
|
||||
|
||||
newicon -s 32 "development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
|
||||
doicon -s 48 "lib/images/lyx.png"
|
||||
doicon -s scalable "lib/images/lyx.svg"
|
||||
|
||||
# fix for bug 91108
|
||||
if use latex ; then
|
||||
dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx
|
||||
fi
|
||||
|
||||
# fonts needed for proper math display, see also bug #15629
|
||||
font_src_install
|
||||
|
||||
python_fix_shebang "${ED}"/usr/share/${PN}
|
||||
|
||||
if use hunspell ; then
|
||||
dosym ../myspell /usr/share/lyx/dicts
|
||||
dosym ../myspell /usr/share/lyx/thes
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
font_pkg_postinst
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
# fix for bug 91108
|
||||
if use latex ; then
|
||||
texhash || die
|
||||
fi
|
||||
|
||||
# instructions for RTL support. See also bug 168331.
|
||||
if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; then
|
||||
elog
|
||||
elog "Enabling RTL support in LyX:"
|
||||
elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
|
||||
elog "You must enable RTL support in LyX. To do so start LyX and go to"
|
||||
elog "Tools->Preferences->Language settings->Language"
|
||||
elog "and make sure the \"Right-to-left language support\" is checked"
|
||||
elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
if use latex ; then
|
||||
texhash || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,30 @@
|
||||
From bb3c826f134c47c505ad4fd93b1c97f67da5350c Mon Sep 17 00:00:00 2001
|
||||
From: Matt Turner <mattst88@gmail.com>
|
||||
Date: Mon, 12 Apr 2021 23:47:14 -0400
|
||||
Subject: [PATCH] build: Fix t1lib detection
|
||||
|
||||
Without this, Meson always fails to detect t1lib. Autotools looked for
|
||||
the correct function name. See the check at the time of removal in
|
||||
commit b27189bb ("build: Remove autotools")
|
||||
|
||||
Fixes: d69158ec ("build: Port to Meson build system")
|
||||
---
|
||||
meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index abee124d..0d7fd4d4 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -365,7 +365,7 @@ if enable_dvi
|
||||
endforeach
|
||||
|
||||
t1_dep = cc.find_library('t1', required: get_option('t1lib'))
|
||||
- enable_t1lib = t1_dep.found() and cc.has_function('T1_initLib', dependencies: t1_dep)
|
||||
+ enable_t1lib = t1_dep.found() and cc.has_function('T1_InitLib', dependencies: t1_dep)
|
||||
config_h.set('WITH_TYPE1_FONTS', enable_t1lib)
|
||||
|
||||
backends += {'dvi': mime_types_list.get('dvi')}
|
||||
--
|
||||
2.26.3
|
||||
|
@ -0,0 +1,33 @@
|
||||
From 4a94fad803f5041b44477f0a2933cb447d81d82f Mon Sep 17 00:00:00 2001
|
||||
From: Chris Mayo <aklhfex@gmail.com>
|
||||
Date: Wed, 14 Apr 2021 02:15:40 +0000
|
||||
Subject: [PATCH] previewer: Fix build regression when gtk_unix_print is
|
||||
disabled
|
||||
|
||||
Restore guard around ev_previewer_window_print because
|
||||
that function requires GTKUNIXPRINT_ENABLED, without the
|
||||
guard, makes the gtk_unix_print unusable.
|
||||
|
||||
In the commit 65bfd21c ("previewer: Use GtkHeaderBar in print preview"), the GTKUNIXPRINT_ENABLED preprocessor guard around
|
||||
the usage of ev_previewer_window_print was lost.
|
||||
---
|
||||
previewer/ev-previewer-window.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
|
||||
index 6678aa75..7d3bd394 100644
|
||||
--- a/previewer/ev-previewer-window.c
|
||||
+++ b/previewer/ev-previewer-window.c
|
||||
@@ -263,7 +263,9 @@ ev_previewer_window_print (GSimpleAction *action,
|
||||
#endif
|
||||
|
||||
static const GActionEntry actions[] = {
|
||||
+#if GTKUNIXPRINT_ENABLED
|
||||
{ "print", ev_previewer_window_print },
|
||||
+#endif
|
||||
{ "go-previous-page", ev_previewer_window_previous_page },
|
||||
{ "go-next-page", ev_previewer_window_next_page },
|
||||
{ "select-page", ev_previewer_window_focus_page_selector },
|
||||
--
|
||||
2.26.3
|
||||
|
@ -1 +1,2 @@
|
||||
DIST libetonyek-0.1.10.tar.xz 1494000 BLAKE2B 1c47b410050380d134d96b5551f0c9186c24aa0ea52c801e26655e3013f030e92198d8e3f19e8a341744206eeaad2d10ca130f286fd42c8a9c3b56f773cfa7d5 SHA512 516a14fcb7b7b5898484a4263d593a036ac728b90144da9d1c22a5d0fdffc879839e19a7b390f99d924c390d433e64433fb08939b1e04ca24359315571c5772b
|
||||
DIST libetonyek-0.1.9.tar.xz 1477064 BLAKE2B 088d27c83d4aff41cb208cf840def78e323f378a1b7d456448db3abf51d1e850c8159ace75c8836958b533c2b84e583d5a622e638081230d2f862f6d1d175e98 SHA512 3f439b369d450bb1a4bdb3fe92023bda234b323cf676570f1738318c56867a97910f536280b9b164c3fdaa423a3ee669c935df75a5c700bc1530ea5b9a00391e
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libetonyek.git"
|
||||
inherit autotools git-r3
|
||||
else
|
||||
SRC_URI="https://dev-www.libreoffice.org/src/libetonyek/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
fi
|
||||
DESCRIPTION="Library parsing Apple Keynote presentations"
|
||||
HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
|
||||
|
||||
LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
IUSE="doc static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
RDEPEND="
|
||||
app-text/liblangtag
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
>=dev-util/mdds-1.5:1=
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
media-libs/glm
|
||||
sys-devel/libtool
|
||||
test? ( dev-util/cppunit )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ -d m4 ]] || mkdir "m4"
|
||||
[[ ${PV} == *9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--disable-werror
|
||||
$(use_with doc docs)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable test tests)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST openpaperwork-core-2.0.1.tar.gz 62459 BLAKE2B 8b513b7ff79f3e81018b306d69a3f71ab6a132b57495f19b013ef4f364c1c4782a5b9ce05b3410be588c1b859b413b13ef8e990094e217d300fd70b36b93974c SHA512 cf048afe1052a6a63eade9944330f9c1c20c89e9c94da58f31562f1eea9286fc96b74af8bc32a010a37369463cfffd1847a407940dfede4dee9b16504beb2d88
|
||||
DIST openpaperwork-core-2.0.2.tar.gz 67268 BLAKE2B 85fcd8d4e1c8a054267b28eb5ec826617e13f93bf7cd54d6defffd62be65fb0306a0ae4fadb1cc8e875c23933c3559e41aab46b58a333489fed0174776ede597 SHA512 fb47d1d8b7747274a6b60248180786f4142110feffa1a8f886b0486a1e1cefbe11d06e3ec1f3a3ee33e38cd40d8e7460afefb466ee938e847deb2518d642ed00
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Core part of Paperwork (plugin management)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/distro[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,2 +1 @@
|
||||
DIST openpaperwork-gtk-2.0.1.tar.gz 37716 BLAKE2B ab8e617148c57530d65952846c9bde4848a7b7019f49428dfce419dc3ac46555aeba79c5f6a4b7b8954ab7f5905b0ac4c2cfa5856970b640f53d4c768d737489 SHA512 1b342161f68680d298197bb3681203c251000e50039cc0935e674747ab5ce89950ff59d7afe3f6cad948450921d1b922d110a8607115f30cf53e264400e76f0a
|
||||
DIST openpaperwork-gtk-2.0.2.tar.gz 37740 BLAKE2B 40e1570364dd23cda97184211205186dadf7826624c1d8846a7fb31378fdf0ea9aa715c07adbf657eea9b08f4c583d86eb248b8907317b572bea51ac52c9a54b SHA512 c24f19a47f1ea1452f8efcf5cf1e4492f49a4f1c7fa7572f09341f4a8f70c2e9cfea478c32635d4ad998be90a069a55c4fe2a4c0e12a9835b9fa7e6b707494d7
|
||||
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Paperwork plugins"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,3 +1 @@
|
||||
DIST paperwork-backend-1.3.1.tar.gz 62343 BLAKE2B 2d391f63b0eaa010695b3c11b35a6c89df9df9f60d45401d8bad711743037379cdb856d8f6b0ba9f7837ac272c2d6fcbe6f58808d8b5047dccf210fbd9a3c98c SHA512 e845ddd4d01be0f4d89e7e4a0a728d06b90b87a551dca3a88426d1ce6487bc000676c997df73d13662ea8f93aced8e8dee8d44ed4fa588a4c8bd514135610c35
|
||||
DIST paperwork-backend-2.0.1.tar.gz 1283518 BLAKE2B 853e4733e16f1da503eb0a8de940c0d5a9379a3f82db50a96c6cdee82ff1b137c3b4ae4f128385217ab6cf43dfd0a3087fdd05bbde0da901c07053273b63f8e0 SHA512 14b072264436a300467ec9e45dc40c3ff9fab5c4ec383f6656b9cd89eabf37bf5e79118c02c67c65eece5e5d3809f3944049503a578e4616d440efbacfb46495
|
||||
DIST paperwork-backend-2.0.2.tar.gz 1293642 BLAKE2B 3785f69e941c14c1146ff1c9a5afa149559821f915ff1068b38f94c3fc3fbd591c2144f24070232e885b616eeb88b5dd1a7c86d608d9ad42f6512688db79b1fe SHA512 36261b89078e7ca10ddda3ad03871db34931d8a04f16edd663873a2f7c46b527bd607c27d0f4ff005ed869c16e0b7065992e629e257677b46d5ccb4b9a1dc7b2
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
DISTUTILS_USE_SETUPTOOLS=bdepend
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/natsort[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,3 +1 @@
|
||||
DIST paperwork-1.3.1.tar.gz 4631298 BLAKE2B 9b111c524da29c6d547141a64ff39a5c50f18375484ae60702a2c7ce57a7be51b62621cf114ffbfa9c2175f9978225525f321449a4a9cad2570cd26dd956e496 SHA512 a0e6a95ebd0b5bfc290b8981488967bb5f2198ac5ec768f824ed487648d0dea6abc3ab8b8cfd8107eac1223a5ecb351a5362d9cbd7d5efccf5cb8c9a318490bc
|
||||
DIST paperwork-2.0.1.tar.gz 6224111 BLAKE2B b643548caa306ed3a7ce049694518ee25e102c73968eab9a812d4b088213593d08d262f71510bae61b015f685f0ca38e578c4ec6db0df279f42ba068b450a813 SHA512 bda94421e48a76878c661f201f07cb3d10c932dab3da33cacf229214022ec0ebcfbfef675d12bf62865b11e05d9450057244d5ed6bf4d3073df99823dece6087
|
||||
DIST paperwork-2.0.2.tar.gz 6222075 BLAKE2B 6dba798ae2b18ba81891c8f9c29e1e2bc8670f24a65e554aa169f05fbf1a89382b9ea24abaa1784da657ac5b9d9d145ffbadaff86ddc3583023f164ffb40c351 SHA512 bde28c167eac5b134b4bdf0f2ac8d93eca4f99c1881ca0edc105c33674114b3a4e3508a1f45048f45ce1c2f6b690a0f765c1b980dbe42c7e1282172f12c3a853
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/libpillowfight[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
media-libs/libinsane
|
||||
x11-libs/gtk+:3[introspection]
|
||||
x11-libs/libnotify[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a personal document manager for scanned documents (and PDFs)"
|
||||
HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="~app-text/openpaperwork-core-${PV}[${PYTHON_USEDEP}]
|
||||
~app-text/openpaperwork-gtk-${PV}[${PYTHON_USEDEP}]
|
||||
~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/libpillowfight[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
media-libs/libinsane
|
||||
x11-libs/libnotify[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST mm-common-1.0.2.tar.xz 271720 BLAKE2B 955a541290ffc9489a7061a1bdcc4b2cca7ac5e0a834a008b4e15173e3b6df38a5fb719f26fe6f83c073c025c7113bba3586f28a6341d37c7c98cfc93ec50f0a SHA512 106f3aae8bb836386148098037c52fef19c3779f5e8cfbafcbe52eca17340a6e2fb7e5c57154cc0a90b75c0bb23900a4274591a71d85f81391be780c53238de0
|
||||
DIST mm-common-1.0.3.tar.xz 272932 BLAKE2B 90459cfa75dbcab8bb9b0512f3f3f3703850000e4ea0124afb020c476fce9948ec0128d67510b13482d52f165ba0b7a8aa72e6b1afd4a88554fa52bc4f5598d2 SHA512 fdd79e9a2ca3d7ed311a6994bd04e7cbf2b1562c39968d309765ce3b5268128f98b3f1c08a434b460276e6d911d302a12ccc7aebd6cd67e4df13241a97034a70
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
inherit gnome.org python-any-r1 meson
|
||||
|
||||
DESCRIPTION="Build infrastructure and utilities for GNOME C++ bindings"
|
||||
HOMEPAGE="https://www.gtkmm.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
BDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Include project version in docdir name
|
||||
sed -i -e "s:^install_docdir.*:& + '-' + meson.project_version():" meson.build || die
|
||||
}
|
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST boost_1_73_0.tar.bz2 109247910 BLAKE2B 5995ff6ca21f45988b187b94bf743795cca97531baa8355f488be0987b9426289dd85d6ce25b7eb03ccd690109f05ba56252a95bca50505ad9cd66f4e0e234e8 SHA512 86c296511c0766145097625a62bf099c3d155284d250ad6e528e788bc90b2945838498dfe473c6c6c78d1694b6fba8e19f7dee0d064a043841e6231603fff668
|
||||
DIST percona-server-8.0.22-13.tar.gz 530806570 BLAKE2B 256e5afa2e3908617c41ffcab591ccdbfd932a8ba3ce25fbf2a0be2cdfa80991b0c2d090c11ffae64e4bb3d8cf9f3011b70974ab22cbab023f6625ac422f3c73 SHA512 9b7a1d06885eb4412361bb3920adc9f050f8da95584eb910c97c8877a433ead04d02f2908e5e9648b1d79cdba677727fdb745377feac3c958339588d5f0cdf2b
|
||||
DIST percona-server-8.0.22.13-patches-02.tar.xz 9620 BLAKE2B c04e97ed422719bec5008b668e2ce3ecd5b848338a9f2f2ecd2fc867307b7fce9bae4cb0efd44f9b950f74d7f31394c06248d1c72784e9c0790378e2ea4d7934 SHA512 2476ee2f4096eaee211017609f82cf8fa9817cda6345336f478257711b64b8c37340b482a02f3d0b19e16e01055cf619cdd1b66d5fbfa0fd1d8edbd529c4096f
|
||||
DIST percona-server-8.0.23-14.tar.gz 528227168 BLAKE2B c497e69d3e7f370e6ffd71ef8129fccb35d8814e713bf78da04b7517f56e7d733d0b54543e86a24568587ae270bd7ca7add36646845e8f7dc5c288aebd1db8c7 SHA512 199669fc53b80426be709a2d7026f6aa821f2d98e5763b3311f564550687cc6401def191f56c615ffed69264a09aaec78ca8371d35a6a69386832f24f30df71b
|
||||
DIST percona-server-8.0.23.14-patches-01.tar.xz 5808 BLAKE2B d5a74a3cc5a84f545fc8aaef21c03992836e60cfdf9fbd602ffe929ed626186762f55641a4eec94327d7ac39acc0fe6baa81671472e4d8fd4a026864f5e9a25a SHA512 d23661b8669481d650bf3deca0336b73a680c88ac441fc8d80753ca50ac569f62658615ae30cc7c1a25318cdaa2987c912d09f0cb016b14860b4afdd213fc820
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,461 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
|
||||
|
||||
KEYWORDS=""
|
||||
|
||||
SLOT=$(ver_cut 1)
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
SRC_URI="https://ftp.postgresql.org/pub/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="https://www.postgresql.org/"
|
||||
|
||||
IUSE="debug doc icu kerberos kernel_linux ldap llvm lz4 nls pam
|
||||
perl python +readline selinux +server systemd ssl static-libs tcl
|
||||
threads uuid xml zlib"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-2.0
|
||||
acct-group/postgres
|
||||
acct-user/postgres
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
icu? ( dev-libs/icu:= )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
llvm? (
|
||||
sys-devel/llvm:=
|
||||
sys-devel/clang:=
|
||||
)
|
||||
lz4? ( app-arch/lz4 )
|
||||
pam? ( sys-libs/pam )
|
||||
perl? ( >=dev-lang/perl-5.8:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
server? ( systemd? ( sys-apps/systemd ) )
|
||||
ssl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no
|
||||
# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems,
|
||||
# the libc includes UUID functions.
|
||||
UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} )
|
||||
BSD_LIBC=( elibc_{Free,Net,Open}BSD )
|
||||
|
||||
nest_usedep() {
|
||||
local front back
|
||||
while [[ ${#} -gt 1 ]]; do
|
||||
front+="${1}? ( "
|
||||
back+=" )"
|
||||
shift
|
||||
done
|
||||
echo "${front}${1}${back}"
|
||||
}
|
||||
|
||||
IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}"
|
||||
CDEPEND+="
|
||||
uuid? (
|
||||
${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )}
|
||||
$(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid)
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
# Rely on $PATH being in the proper order so that the correct
|
||||
# install program is used for modules utilizing PGXS in both
|
||||
# hardened and non-hardened environments. (Bug #528786)
|
||||
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
|
||||
|
||||
use server || eapply "${FILESDIR}/${PN}-13_beta1-no-server.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX}"
|
||||
|
||||
local i uuid_config=""
|
||||
if use uuid; then
|
||||
for i in ${UTIL_LINUX_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=e2fs"
|
||||
done
|
||||
for i in ${BSD_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=bsd"
|
||||
done
|
||||
[[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !alpha spinlocks) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with icu) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with llvm) \
|
||||
$(use_with lz4) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(usex server "$(use_with systemd)" '--without-systemd') \
|
||||
$(use_with tcl) \
|
||||
${uuid_config} \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
$(use_enable nls)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
serverman=(
|
||||
initdb
|
||||
pg_{archivecleanup,controldata,ctl,resetwal,rewind,standby}
|
||||
pg_{test_{fsync,timing},upgrade,waldump}
|
||||
post{gres,master}
|
||||
)
|
||||
for m in ${serverman[@]} ; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
# Create slot specific man pages
|
||||
local bn f mansec slotted_name
|
||||
for mansec in 1 3 7 ; do
|
||||
local rel_manpath="../../postgresql-${SLOT}/man/man${mansec}"
|
||||
|
||||
mkdir -p "${ED}"/usr/share/man/man${mansec} || die "making man dir"
|
||||
pushd "${ED}"/usr/share/man/man${mansec} > /dev/null || die "pushd failed"
|
||||
|
||||
for f in "${ED}/usr/share/postgresql-${SLOT}/man/man${mansec}"/* ; do
|
||||
bn=$(basename "${f}")
|
||||
slotted_name=${bn%.${mansec}}${SLOT}.${mansec}
|
||||
case ${bn} in
|
||||
TABLE.7|WITH.7)
|
||||
echo ".so ${rel_manpath}/SELECT.7" > ${slotted_name}
|
||||
;;
|
||||
*)
|
||||
echo ".so ${rel_manpath}/${bn}" > ${slotted_name}
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
popd > /dev/null
|
||||
done
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
# Don't delete libpg{port,common}.a (Bug #571046). They're always
|
||||
# needed by extensions utilizing PGXS.
|
||||
use static-libs || \
|
||||
find "${ED}" -name '*.a' ! -name libpgport.a ! -name libpgcommon.a \
|
||||
-delete
|
||||
|
||||
# Make slot specific links to programs
|
||||
local f bn
|
||||
for f in $(find "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/bin" \
|
||||
-mindepth 1 -maxdepth 1)
|
||||
do
|
||||
bn=$(basename "${f}")
|
||||
dosym "../$(get_libdir)/postgresql-${SLOT}/bin/${bn}" \
|
||||
"/usr/bin/${bn}${SLOT/.}"
|
||||
done
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd-9.3" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3-r1" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
if use systemd; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service-9.6-r1" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}-${SLOT}.conf
|
||||
fi
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 1775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use server && use systemd && tmpfiles_process ${PN}-${SLOT}.conf
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "https://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] ; then
|
||||
ewarn "If your system is using 'pg_stat_statements' and you are running a"
|
||||
ewarn "version of PostgreSQL ${SLOT}, we advise that you execute"
|
||||
ewarn "the following command after upgrading:"
|
||||
ewarn
|
||||
ewarn "ALTER EXTENSION pg_stat_statements UPDATE;"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " https://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " https://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
|
||||
ebegin "Continuing initialization in 5 seconds (Control-C to cancel)"
|
||||
sleep 5
|
||||
eend 0
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "$(dirname ${DATA_DIR%/})" || die "Couldn't parent dirs"
|
||||
mkdir -m 0700 "${DATA_DIR%/}" || die "Couldn't make DATA_DIR"
|
||||
chown -h postgres:postgres "${DATA_DIR%/}" || die "Couldn't chown"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
# unix_socket_directory has no effect in postgresql.conf as it's
|
||||
# overridden in the initscript
|
||||
sed '/^#unix_socket_directories/,+1d' -i "${PGDATA%/}"/postgresql.conf
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
if ! use systemd; then
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
fi
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
elif use systemd; then
|
||||
einfo "You should use the 'postgresql-${SLOT}.service' unit to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
else
|
||||
einfo "You should use the '${EROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
# Some ICU tests fail if LC_CTYPE and LC_COLLATE aren't the same. We set
|
||||
# LC_CTYPE to be equal to LC_COLLATE since LC_COLLATE is set by Portage.
|
||||
local old_ctype=${LC_CTYPE}
|
||||
export LC_CTYPE=${LC_COLLATE}
|
||||
emake check
|
||||
export LC_CTYPE=${old_ctype}
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST ow_util_ant_tasks_1.3.2.zip 1170518 BLAKE2B bf0792c7ea18f8122a6a8755d976e109bf0d4bc6b26e8ae5dd7e9bdc8d6f1e16e4e0ff40ded79ebb571b57a433e96dd9e259843091be1efa18ac4bb227ea8e89 SHA512 c2ca84d34864b075c39e9699ac1a41c2980615ea6d813d007ee503fe19cfd5c869cdd0f6be27cbfdafc33aa49c32022b99ced2387381fdb6816925957207a603
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="ObjectWeb's Ant tasks"
|
||||
HOMEPAGE="http://monolog.objectweb.org"
|
||||
SRC_URI="http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_${PV}.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
COMMON_DEP="dev-java/xalan"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
${COMMON_DEP}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
>=dev-java/ant-core-1.7.0
|
||||
${COMMON_DEP}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_prepare() {
|
||||
rm -f output/lib/*.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar output/lib/ow_util_ant_tasks.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "The MultipleCopy task is not compatible with ant-1.7.0 and newer"
|
||||
ewarn "Attempt to use it will break building."
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST apt-mirror-1.0.tar.bz2 21396 BLAKE2B 996253732f3aeaffeb57d6ac26d5e18ae47a40843a60ffe570edcbd325691b43c69fdd866e44d1d35295b2ccc64f5042f1dbe588a3700cd01ad10927ded702b4 SHA512 fdb58498bc5ff1f77858716b67dd952a3f3bea55d06d7190b1a1d283d11843ebf03c7403ba58f23478c1c553402d21c2089c2dca52f216d693ab713a43f5c1ff
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Annotation processing apt mirror API introduced in J2SE 5.0"
|
||||
HOMEPAGE="http://aptmirrorapi.dev.java.net/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
|
||||
S="${WORKDIR}/apt"
|
@ -1,5 +1,4 @@
|
||||
DIST commons-lang-2.0-src.tar.gz 440989 BLAKE2B d71d73504c740138bdb9c1e190e0f4e846fb08a35d8ee2430ac2e24b0094e83cfc8cab9eaa44230c0d7fd26ec768bf7b448f04e123467acc20d49af6efe3008b SHA512 aecbbdd8eb2712981dcd8615bac2ec69e3ea7ae137407287d2a9b3eeaddb48e5367bc9c5cb8d232429ac6091548dac8af67e0593366365c04fcfe39984c3e549
|
||||
DIST commons-lang-2.6-src.tar.gz 564032 BLAKE2B 9d72b0426f2146eaa8498a6601edf80dbf45a16ef5ee14cf4ed87130e6d3732d5c713f25f44c10435baa1357f61a271acb88483915968aaf645d1ceaa318c601 SHA512 4a30ed153f93fe6616a28974721bdf005d064203ef8a3dd375d6c1176647c0cdbd29cfde2a580e2c8d26bfa4655be6be7025b8ccae94086dcd816676c5cf8e87
|
||||
DIST commons-lang-3.11.tar.gz 1054329 BLAKE2B 7d198e2e7f09f3711909a168cbef405d06aff7482d8ab87059aa11584e82d950ea32f1c1a4d0c9c6c54729396e6b5ee6165a7689b3c38081af31b7a3dad23657 SHA512 ebcb13e47c24e6984835d9d6904fe33077aa3ba781cd61db109fa7005517e4e74cf086c4789a1d65cf3d6c4924b32337c98827a75f91aab908d8e8b9d3b92087
|
||||
DIST commons-lang-3.12.0-sources.tar.gz 1072858 BLAKE2B d6b7ee9ef165e60f61d8d0dfaaf38919877f2edc6742cd58b2b70d379e807e75d9dc24e19f23db1b174d1797d6ef0af7700d686dd835d7a40bf2b2a91346e215 SHA512 80d1b960ae0b02859be329ea60d68cef33f3c7be7ec19752b3c9cfef442adef480878317ce2cfa309a27e662e2c72cab22023eaa3702e27970a1e5d55ca43f57
|
||||
DIST commons-lang3-3.1-src.tar.gz 638619 BLAKE2B f971afc9bdd3896178bc4be0b6c5d8809f1c1ac0d69ad73ba0d71c185c600ca7a55c3b4877af64b552ccebed9567aa7830f236f2c0d9c38f259870b894c9d745 SHA512 4d201c695a9b908a1809bbab689f80c6aa508b221b4c2786974eada08e647936f5879841c64eed509032ffdd5410735480e7ecb2910295d0f79e857c27019560
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="org.apache.commons:commons-lang3:3.11"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_P="${PN}3-${PV}"
|
||||
|
||||
DESCRIPTION="Commons components to manipulate core java classes"
|
||||
HOMEPAGE="https://commons.apache.org/lang"
|
||||
SRC_URI="mirror://apache/commons/lang/source/${MY_P}-src.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.6"
|
||||
KEYWORDS="amd64 arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
|
||||
|
||||
CDEPEND="
|
||||
dev-java/easymock:3.2
|
||||
dev-java/commons-io:1"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jdk-1.8"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.8"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-src"
|
||||
|
||||
JAVA_ANT_ENCODING="ISO-8859-1"
|
||||
JAVA_GENTOO_CLASSPATH="
|
||||
easymock-3.2
|
||||
commons-io-1"
|
||||
|
||||
DOCS=( CONTRIBUTING.md NOTICE.txt RELEASE-NOTES.txt LICENSE.txt README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -rv src/test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST ini4j-0.5.1.jar 61117 BLAKE2B dedeefed13b66d21f185b786ed9cf5b045a06cf6ab8db108258597ed51e2625ec41e9c23fb032b4d77110f415a10641ad3e673f958842dfcde192bfb9d693d68 SHA512 1c4b5218d092cab9374070c8ae55c7a2483b30893f5af5cfe5d74054b2f5261fe2e1a477a650589d2fc7518b4dcce91a2308ab35bba6b3d918f5e5c19a55eb9a
|
||||
DIST ini4j-0.5.2.jar 63258 BLAKE2B 130cf84292295138f8893bcc30aed5b5dcd9eadb6d7f0b984a40388a160ce1f007b4728a13b06cb291a67436fad3bd987b28a068c22cb31e480b35378ff95263 SHA512 eab45f21a9f8f8bc8fdb8654e914ffc9e7eb829169f56a7e1b548a4237eb94e616abe84d78649037ff6254fb00e83b9167bafaf1fe5d97fbf3787838e9bf0fab
|
@ -1,22 +0,0 @@
|
||||
--- org/ini4j/Profile.java.orig 2015-11-03 22:49:34.854486000 +0000
|
||||
+++ org/ini4j/Profile.java 2015-11-03 22:49:53.412486000 +0000
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
Section remove(Profile.Section section);
|
||||
|
||||
- String remove(Object sectionName, Object optionName);
|
||||
+ String removeString(Object sectionName, Object optionName);
|
||||
|
||||
interface Section extends OptionMap
|
||||
{
|
||||
--- org/ini4j/BasicProfile.java.orig 2015-11-03 22:50:28.101486000 +0000
|
||||
+++ org/ini4j/BasicProfile.java 2015-11-03 22:51:09.338486000 +0000
|
||||
@@ -138,7 +138,7 @@
|
||||
return remove((Object) section.getName());
|
||||
}
|
||||
|
||||
- @Override public String remove(Object sectionName, Object optionName)
|
||||
+ @Override public String removeString(Object sectionName, Object optionName)
|
||||
{
|
||||
Section sec = get(sectionName);
|
||||
|
@ -1,22 +0,0 @@
|
||||
--- a/org/ini4j/Profile.java 2015-11-03 22:49:34.854486000 +0000
|
||||
+++ b/org/ini4j/Profile.java 2015-11-03 22:49:53.412486000 +0000
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
Section remove(Profile.Section section);
|
||||
|
||||
- String remove(Object sectionName, Object optionName);
|
||||
+ String removeString(Object sectionName, Object optionName);
|
||||
|
||||
interface Section extends OptionMap
|
||||
{
|
||||
--- a/org/ini4j/BasicProfile.java 2015-11-03 22:50:28.101486000 +0000
|
||||
+++ b/org/ini4j/BasicProfile.java 2015-11-03 22:51:09.338486000 +0000
|
||||
@@ -138,7 +138,7 @@
|
||||
return remove((Object) section.getName());
|
||||
}
|
||||
|
||||
- @Override public String remove(Object sectionName, Object optionName)
|
||||
+ @Override public String removeString(Object sectionName, Object optionName)
|
||||
{
|
||||
Section sec = get(sectionName);
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Simple Java API Windows style .ini file handling"
|
||||
HOMEPAGE="http://ini4j.sourceforge.net/"
|
||||
SRC_URI="http://central.maven.org/maven2/org/${PN}/${PN}/${PV}/${P}-sources.jar -> ${P}.jar"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
app-arch/unzip"
|
||||
|
||||
java_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}-remove.patch"
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Simple Java API Windows style .ini file handling"
|
||||
HOMEPAGE="http://ini4j.sourceforge.net/"
|
||||
SRC_URI="http://central.maven.org/maven2/org/${PN}/${PN}/${PV}/${P}-sources.jar -> ${P}.jar"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.6"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-remove.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>monsieurp@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">ini4j</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PV=${PV//./_}
|
||||
DESCRIPTION="JAI is a class library for managing images"
|
||||
HOMEPAGE="https://jai.dev.java.net/"
|
||||
|
||||
BASE=https://download.java.net/media/jai/builds/release/${MY_PV}
|
||||
MY_P="jai-${MY_PV}"
|
||||
SRC_URI="
|
||||
!amd64? ( ${BASE}/${MY_P}-lib-linux-i586.tar.gz )
|
||||
amd64? ( ${BASE}/${MY_P}-lib-linux-amd64.tar.gz )"
|
||||
|
||||
LICENSE="sun-bcla-jai"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="virtual/jre:1.8"
|
||||
|
||||
RESTRICT="bindist mirror"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm LICENSE-jai.txt || die
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodoc *.txt
|
||||
|
||||
java-pkg_dojar lib/*.jar
|
||||
use x86 && java-pkg_doso lib/*.so
|
||||
use amd64 && java-pkg_doso lib/*.so
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}"
|
||||
elog 'To use you need to pass the following to java'
|
||||
if use x86 || use amd64; then
|
||||
elog '-Djava.library.path=$(java-config -i sun-jai-bin)'
|
||||
fi
|
||||
elog '-classpath $(java-config -p sun-jai-bin)'
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST elixir-1.11.4.tar.gz 2396885 BLAKE2B f63e835991420bce8cacd38a920637aa5656c0372bd09e8c0a357a24bcca9a06350973f1453f482d3854a48712471c55389c3bd530df46a19c20a359376b779d SHA512 5dc940a31a31ae1c1537f874c15e58311cc0b0452f61e923bdfde0a5cfef3d8003eb3e85be320eb0acfb7bc0c0c0dc8ac965dec6727257c244048268fbf38ceb
|
||||
DIST elixir-1.12.0.tar.gz 2457567 BLAKE2B 9adc3d54e2200cddaab0323a8e1c8affae6ad0fbee2c48da87249db0f29d31158ef0a74edf95128302183ba3ee714f502df6d30048c49b42c190d1a43e4e8308 SHA512 6ae99c0307d2adaa51cc8b569329592509b1e19bf9f78d4230507c11229da674476c0be65bc9ce5e3b0d78082182755a76abc8beff59af1f84672dd73e5b912f
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="https://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/erlang-22:0=[ssl]
|
||||
"
|
||||
# 'mix' tool collides with sci-biology/phylip, bug #537514
|
||||
RDEPEND="${DEPEND}
|
||||
!!sci-biology/phylip
|
||||
"
|
||||
DEPEND+="
|
||||
test? ( dev-vcs/git )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.9.1-disable-network-tests.patch
|
||||
"${FILESDIR}"/${PN}-1.10.3-no-Q.patch
|
||||
"${FILESDIR}"/${PN}-1.10.3-epmd-daemon.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
|
||||
dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
DIST go1.15.10.src.tar.gz 23021993 BLAKE2B 8143f7703d07d4793521bbb6b935b87ecd87df451cc5d03370a01bddabc284e85ec94a16fed378ee9ac8e3f0d6999402025bb1d6afa3c1810c6343205c4eb2d4 SHA512 4f0ceff8dc035ec50cd0d136678573f4d624bca6a19293d5ffd75868d94d264291e44519bc450e40e8de486ee44d720555550eecf86cbae1f0d64dee00f90764
|
||||
DIST go1.15.11.src.tar.gz 23029946 BLAKE2B b937a8e350b6a30e71427d8cbc52edb73e11f055c16890c81ba4bf2f6aa90fd223f0af9517021741e791c22b78f840b3485ea8df4853865dceae354f4803c55d SHA512 52a107220f02197f07c0d3afef403c3762428c1f69107fa7123bc6cdf6b47dd4e65f2ab3979ad7d12a265b0c9bd0b66e6e50eb91f7fa994ba22882f117afe289
|
||||
DIST go1.15.12.src.tar.gz 23035406 BLAKE2B b5c79bb243b0052e7a3d58538ae734bbb38839654ffc0e1cf266d360c4f35ac1a8b02c999306a0c1bc598d6ec0c9b3326fea278163b49cd7becc820c7a129bd4 SHA512 9fdb0e74c0b4e8e5d8d45cbdb6f1d4be4d40549ef10629350856c3e045a82567a0418e949dfc229df7eea091ababec6b3e4e12b1bd424e14d7b10ef989e5c232
|
||||
DIST go1.16.2.src.tar.gz 20905135 BLAKE2B 35fccc72604bf8cc7b1b5677d995b88e3232559e32af51f96a63bfc8cabecec09d885b5b8aa4b2ba03c481254da20dbf9bd83387091931c08a1c5c180c071931 SHA512 d14858a75cc7411975aaca705e66145287dc96b4fac1b1b06b95377dc5e5d2762f060973744114f42c780b34ea4baef7038c94616649c2dcc5c97e261cefc6bd
|
||||
DIST go1.16.3.src.tar.gz 20912861 BLAKE2B da6752d06b86a5349a1bc11e7e4c61543fa75cf72d971fb7559c059b3d5d7721d4cba16ad63eeb00398c6e0c8b1b1d42f07c665182b4b70da83fe648f813eee0 SHA512 8808a3112a5bc89799491ed1aa1cb8744a5cc8d3cb5caa2a7dd711405266925093f90d437fccb66a48e5f994c7339077814f495a88baa7961e9cc9b0a6a838c7
|
||||
DIST go1.16.4.src.tar.gz 20917203 BLAKE2B 4602a20ced74dba86938283a736d5235fe5dfb34ae742c44cdcd7ae2453d4654ea5757d0be76b6687d1d34c1b8c32681c41398d1a04ae72d491ee1d8b296d16d SHA512 e1b64610e22e657d9c65094e679cec50f59ff338c0ef102e54debcced1bc032390122456451fffb2d26d45c6db2f55bb9ef7f56ce479f6f1c2c2e6cc49442d86
|
||||
|
@ -1,189 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
BDEPEND="|| (
|
||||
dev-lang/go
|
||||
dev-lang/go-bootstrap )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch() {
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm() {
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os() {
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple() {
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile() {
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if has_version -b dev-lang/go; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||
elif has_version -b dev-lang/go-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||
else
|
||||
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||
die "Should not be here, please report a bug"
|
||||
fi
|
||||
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
bash -x ./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
cd ..
|
||||
rm -fr pkg/*_race || die
|
||||
rm -fr pkg/obj/go-build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# The use of cp is deliberate in order to retain permissions
|
||||
# [1] https://golang.org/issue/2775
|
||||
dodir /usr/lib/go
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
einstalldocs
|
||||
|
||||
# testdata directories are not needed on the installed system
|
||||
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||
|
||||
local bin_path
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
local f x
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -z ${REPLACING_VERSIONS} ]] && return
|
||||
einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
|
||||
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
|
||||
einfo "due to the static linking nature of go."
|
||||
einfo "If this is not done, the packages compiled with the older"
|
||||
einfo "version of the compiler will not be updated until they are"
|
||||
einfo "updated individually, which could mean they will have"
|
||||
einfo "vulnerabilities."
|
||||
einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages"
|
||||
einfo "See https://bugs.gentoo.org/752153 for more info"
|
||||
}
|
@ -1,189 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
export CBUILD=${CBUILD:-${CHOST}}
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
case ${PV} in
|
||||
*9999*)
|
||||
EGIT_REPO_URI="https://github.com/golang/go.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
|
||||
S="${WORKDIR}"/go
|
||||
case ${PV} in
|
||||
*_beta*|*_rc*) ;;
|
||||
*)
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="https://golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
BDEPEND="|| (
|
||||
dev-lang/go
|
||||
dev-lang/go-bootstrap )"
|
||||
RDEPEND="!<dev-go/go-tools-0_pre20150902"
|
||||
|
||||
# Do not complain about CFLAGS, etc, since Go doesn't use them.
|
||||
QA_FLAGS_IGNORED='.*'
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
|
||||
|
||||
# Do not strip this package. Stripping is unsupported upstream and may
|
||||
# fail.
|
||||
RESTRICT+=" strip"
|
||||
|
||||
DOCS=(
|
||||
AUTHORS
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS
|
||||
PATENTS
|
||||
README.md
|
||||
)
|
||||
|
||||
go_arch() {
|
||||
# By chance most portage arch names match Go
|
||||
local portage_arch=$(tc-arch $@)
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
s390) echo s390x ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
||||
go_arm() {
|
||||
case "${1:-${CHOST}}" in
|
||||
armv5*) echo 5;;
|
||||
armv6*) echo 6;;
|
||||
armv7*) echo 7;;
|
||||
*)
|
||||
die "unknown GOARM for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_os() {
|
||||
case "${1:-${CHOST}}" in
|
||||
*-linux*) echo linux;;
|
||||
*-darwin*) echo darwin;;
|
||||
*-freebsd*) echo freebsd;;
|
||||
*-netbsd*) echo netbsd;;
|
||||
*-openbsd*) echo openbsd;;
|
||||
*-solaris*) echo solaris;;
|
||||
*-cygwin*|*-interix*|*-winnt*)
|
||||
echo windows
|
||||
;;
|
||||
*)
|
||||
die "unknown GOOS for ${1:-${CHOST}}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
go_tuple() {
|
||||
echo "$(go_os $@)_$(go_arch $@)"
|
||||
}
|
||||
|
||||
go_cross_compile() {
|
||||
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if has_version -b dev-lang/go; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
|
||||
elif has_version -b dev-lang/go-bootstrap; then
|
||||
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
|
||||
else
|
||||
eerror "Go cannot be built without go or go-bootstrap installed"
|
||||
die "Should not be here, please report a bug"
|
||||
fi
|
||||
|
||||
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
|
||||
# Go's build script does not use BUILD/HOST/TARGET consistently. :(
|
||||
export GOHOSTARCH=$(go_arch ${CBUILD})
|
||||
export GOHOSTOS=$(go_os ${CBUILD})
|
||||
export CC=$(tc-getBUILD_CC)
|
||||
|
||||
export GOARCH=$(go_arch)
|
||||
export GOOS=$(go_os)
|
||||
export CC_FOR_TARGET=$(tc-getCC)
|
||||
export CXX_FOR_TARGET=$(tc-getCXX)
|
||||
if [[ ${ARCH} == arm ]]; then
|
||||
export GOARM=$(go_arm)
|
||||
fi
|
||||
|
||||
cd src
|
||||
bash -x ./make.bash || die "build failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go_cross_compile && return 0
|
||||
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash -no-rebuild || die "tests failed"
|
||||
cd ..
|
||||
rm -fr pkg/*_race || die
|
||||
rm -fr pkg/obj/go-build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# The use of cp is deliberate in order to retain permissions
|
||||
# [1] https://golang.org/issue/2775
|
||||
dodir /usr/lib/go
|
||||
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
|
||||
einstalldocs
|
||||
|
||||
# testdata directories are not needed on the installed system
|
||||
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
|
||||
|
||||
local bin_path
|
||||
if go_cross_compile; then
|
||||
bin_path="bin/$(go_tuple)"
|
||||
else
|
||||
bin_path=bin
|
||||
fi
|
||||
local f x
|
||||
for x in ${bin_path}/*; do
|
||||
f=${x##*/}
|
||||
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
|
||||
done
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -z ${REPLACING_VERSIONS} ]] && return
|
||||
einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
|
||||
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
|
||||
einfo "due to the static linking nature of go."
|
||||
einfo "If this is not done, the packages compiled with the older"
|
||||
einfo "version of the compiler will not be updated until they are"
|
||||
einfo "updated individually, which could mean they will have"
|
||||
einfo "vulnerabilities."
|
||||
einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages"
|
||||
einfo "See https://bugs.gentoo.org/752153 for more info"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue