parent
0a6873174c
commit
2859e01a8a
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>arthurzam@gentoo.org</email>
|
||||
<name>Arthur Zamarin</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,9 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit acct-group
|
||||
|
||||
DESCRIPTION="Group for sys-auth/seatd"
|
||||
ACCT_GROUP_ID=202
|
Binary file not shown.
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install pytest
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST clamav-0.103.3.tar.gz 13389239 BLAKE2B 1846cceed39fbd48fcf973d05a57901cf6f9ccdbb4d7eae501e712d84ab4d0a662e4477696aa6a1446116db85a89603428d7092a55e18f7acb805016d3cd5431 SHA512 c2ee24a6f63735c064140aa5baa347d51e8240b2f7eced3480d05435202aedd481fa7057fd40ecbc2e93a62fe8b0cefb574d8accdf9acede643ffbe0d396686f
|
||||
DIST clamav-0.104.0.tar.gz 11896747 BLAKE2B c3ca32c1277052301a8bff94fec66a2df8f589bc9a673a00d0f45aaf9d8fd23e8bb87dde787d4188a6318d6677c3364e377ccec16d8e44667430713ce7e2a78d SHA512 7a052e6310ef92068acc384d10a64eed6d54d2d408d203dab92defbb1a276e8a193a2096a8028c8982323ba0be83d25602f026aeffa056878ce36aa325c0046c
|
||||
|
@ -0,0 +1,210 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_ECLASS=cmake
|
||||
inherit cmake flag-o-matic systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc clamonacc clamapp libclamav-only milter rar selinux systemd test uclibc"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||
clamonacc? ( clamapp )
|
||||
milter? ( clamapp )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="acct-group/clamav
|
||||
acct-user/clamav
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
dev-libs/libpcre2
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
app-arch/bzip2
|
||||
clamapp? ( sys-libs/ncurses:0 net-misc/curl dev-libs/json-c:= )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
virtual/libiconv
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
dev-libs/openssl:0=
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
dev-libs/libxml2
|
||||
rar? ( app-arch/unrar )
|
||||
test? ( dev-python/pytest )"
|
||||
# TODO: there is no way to use this with the new build system instead of the bundled one
|
||||
# dev-libs/tomsfastmath
|
||||
|
||||
BDEPEND=">=dev-util/cmake-3.14
|
||||
virtual/pkgconfig"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
clamapp? ( dev-libs/json-c:* )
|
||||
test? ( dev-libs/check )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.104.0-ncurses_detection.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
use uclibc && export ac_cv_type_error_t=yes
|
||||
|
||||
local mycmakeargs=(
|
||||
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||
-DENABLE_EXPERIMENTAL=OFF
|
||||
-DENABLE_JSON_SHARED=ON
|
||||
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||
-DCLAMAV_USER="clamav"
|
||||
-DCLAMAV_GROUP="clamav"
|
||||
-DBYTECODE_RUNTIME=interpreter
|
||||
-DOPTIMIZE=ON
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
-DENABLE_STATIC_LIB=OFF
|
||||
-DENABLE_SHARED_LIB=ON
|
||||
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# init scripts
|
||||
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||
use clamonacc && \
|
||||
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||
use milter && \
|
||||
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamd.conf || die
|
||||
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||
"${ED}"/etc/clamav/freshclam.conf || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]]; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
doman docs/man/*.[1-8]
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use libclamav-only ; then
|
||||
ewarn "Test target not available when USE=libclamav-only is set, skipping tests ..."
|
||||
return 0
|
||||
fi
|
||||
|
||||
emake quick-check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
From cd99490efb82b66c75e92fab3ff97c480bfc9cf9 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Barbato <lu_zero@gentoo.org>
|
||||
Date: Sat, 16 Oct 2021 10:56:22 +0200
|
||||
Subject: [PATCH] Use all the link line from ncurses pkg-config
|
||||
|
||||
Otherwise it would fail at link time if ncurses has a stand alone tinfo library.
|
||||
---
|
||||
cmake/FindCURSES.cmake | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/cmake/FindCURSES.cmake b/cmake/FindCURSES.cmake
|
||||
index 35d4a570f6..528211c45c 100644
|
||||
--- a/cmake/FindCURSES.cmake
|
||||
+++ b/cmake/FindCURSES.cmake
|
||||
@@ -58,11 +58,7 @@ if(NCURSES_NOT_FOUND EQUAL -1)
|
||||
set(HAVE_LIBNCURSES 1)
|
||||
set(CURSES_INCLUDE "<ncurses.h>")
|
||||
|
||||
- find_library(CURSES_LIBRARY
|
||||
- NAMES ncurses
|
||||
- PATHS ${PC_NCurses_LIBRARY_DIRS}
|
||||
- )
|
||||
-
|
||||
+ set(CURSES_LIBRARY ${PC_NCurses_LINK_LIBRARIES})
|
||||
set(CURSES_VERSION ${PC_NCurses_VERSION})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
@ -0,0 +1,34 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
# Note: the "Foreground" option in clamav-milter.conf MUST
|
||||
# be set to "no".
|
||||
command="/usr/sbin/clamav-milter"
|
||||
|
||||
# For now, must be manually synchronized with the PidFile
|
||||
# variable in clamav-milter.conf.
|
||||
#
|
||||
# https://bugzilla.clamav.net/show_bug.cgi?id=12595
|
||||
#
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
depend() {
|
||||
# The milter can successfully launch without clamd, but it's not a
|
||||
# great user experience to have the milter start accepting requests
|
||||
# that it can't process. The "use" dependency below will start clamd
|
||||
# before clamav-milter, so long as clamd is also present this runlevel.
|
||||
use clamd
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
# This exists to support the (disabled) default MilterSocket setting
|
||||
# within clamav-milter.conf. The "clamav" user and group agree with
|
||||
# the (disabled) default "User" and "MilterSocketGroup" settings.
|
||||
#
|
||||
# Creating this directory is harmless even when a local socket is
|
||||
# not used. In fact, the clamd service that we depend on should
|
||||
# create it as well, to hold its own local socket (if enabled).
|
||||
checkpath --directory \
|
||||
--mode 0755 \
|
||||
--owner clamav:clamav \
|
||||
"/run/clamav"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Milter module for the ClamAV scanner
|
||||
After=nss-lookup.target network.target
|
||||
Before=sendmail.service
|
||||
Before=postfix.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/clamav/clamav-milter.pid
|
||||
ExecStart=/usr/sbin/clamav-milter -c /etc/clamav/clamav-milter.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,33 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
# Note: the "Foreground" option in clamd.conf must be set to "no"
|
||||
command="/usr/sbin/clamd"
|
||||
extra_started_commands="reload"
|
||||
|
||||
# For now, must be manually synchronized with the PidFile variable
|
||||
# in clamd.conf.
|
||||
#
|
||||
# https://bugzilla.clamav.net/show_bug.cgi?id=12595
|
||||
#
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
start_pre() {
|
||||
# This exists to support the (disabled) default LocalSocket setting
|
||||
# within clamd.conf. The "clamav" user and group agree with the
|
||||
# (disabled) default "User" and "LocalSocketGroup" settings in
|
||||
# clamd.conf. And everything here agrees with the
|
||||
# clamav-daemon.socket systemd service.
|
||||
#
|
||||
# Creating this directory is harmless even when a local socket is
|
||||
# not used.
|
||||
checkpath --directory \
|
||||
--mode 0755 \
|
||||
--owner clamav:clamav \
|
||||
"/run/clamav"
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${RC_SVCNAME}"
|
||||
"/usr/bin/clamdscan" --reload
|
||||
eend $?
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=clamd scanner (%i) daemon
|
||||
After=nss-lookup.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/clamd -c /etc/clamav/clamd%i.conf
|
||||
Restart=on-failure
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
command="/usr/sbin/clamonacc"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
# clamonacc doesn't support a PID file at the moment, so we
|
||||
# run it in the foreground and let OpenRC background it.
|
||||
#
|
||||
# https://bugzilla.clamav.net/show_bug.cgi?id=12595
|
||||
#
|
||||
command_args="--foreground"
|
||||
command_background=true
|
||||
|
||||
depend() {
|
||||
# Unlike the milter, the on-access scanner will simply fail to start
|
||||
# until clamd is available.
|
||||
need clamd
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
command="/usr/bin/freshclam"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
# Ignore the value of "PidFile" set in freshclam.conf.
|
||||
command_args="-p ${pidfile}"
|
||||
command_args_background="--daemon"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST WordNet-3.0.tar.gz 11537227 BLAKE2B 358bdc3178f35f4f269ad9d0a5245396811f8678a020ab1ddf9978eef733bb91450f331d03734f585121b1532bb67ca97e765b13cb3f37018cd29df558201c5d SHA512 d39c008cec41de8f1b2aeacb4ad818f9997a13b30a992fda100b6dcc9c11c253530b00a1909b55ff7b564bafc33f7763c1ce9b0a6ae3e591695db2083e9ead7a
|
||||
DIST wn3.1.dict.tar.gz 16358468 BLAKE2B f3df09f39ea29fce3378122f1a93d713acb8be39e6798695b8cc412a3ae6e644cfcf906426d4091d9849be60620367d3de541ec6dd0d8016b8f0cf39a7bad346 SHA512 16dca17a87026d8a0b7b4758219cd21a869c3ef3da23ce7875924546f2eacac4c2f376cb271b798b2c458fe8c078fb43d681356e3d9beef40f4bd88d3579394f
|
||||
DIST wordnet-3.0-patchset-1.tar.bz2 8076 BLAKE2B 20684bd96814db6e0bf2d9aeb455def682fc38566d6abd3832bf0f7eae3b65b63e8b16aa21656bb81c1696bec0d179028ea8bb4687e5566a6d679bc55e300b9c SHA512 17668d736dd6dfe83e4d5d328729cbcdfb4dbca9a9707651534169bd2ce6fc2238d5c820d63330c51c20ab9b2964b56a609f58242b05dabbcfdfc0da61c048cb
|
||||
DIST wordnet-3.0-patchset-2.tar.xz 8788 BLAKE2B 3e34b7f5f1011556fb9b53fc987fb3a0fd6818d68d8e71a35ee8d955071251648386c4a361bb902340c5ca899c993363721ee9acbea2eea1386e22502789be2d SHA512 2b72f12134cb60a1db98384650f13cd57012162908c0a37aa232ad0a04a249ce25cce76332dab08c5280d6f29fd58d5c874d5e8d6e00ef55523012d7faa09fcf
|
||||
|
@ -1,20 +0,0 @@
|
||||
diff -p -u -r WordNet-3.0/lib/morph.c WordNet-3.0-mine/lib/morph.c
|
||||
--- a/lib/morph.c 2010-04-12 13:53:04.000000000 +0200
|
||||
+++ b/lib/morph.c 2010-04-12 13:54:53.000000000 +0200
|
||||
@@ -375,14 +375,14 @@ static char *exc_lookup(char *word, int
|
||||
static char line[WORDBUF], *beglp, *endlp;
|
||||
char *excline;
|
||||
|
||||
- if (exc_fps[pos] == NULL)
|
||||
+ if (exc_fps[pos-1] == NULL)
|
||||
return(NULL);
|
||||
|
||||
/* first time through load line from exception file */
|
||||
if(word != NULL){
|
||||
if (strlen(word) > WORDBUF - 1)
|
||||
return(NULL);
|
||||
- if ((excline = bin_search(word, exc_fps[pos])) != NULL) {
|
||||
+ if ((excline = bin_search(word, exc_fps[pos-1])) != NULL) {
|
||||
strcpy(line, excline);
|
||||
endlp = strchr(line,' ');
|
||||
} else
|
@ -1,48 +0,0 @@
|
||||
lib/binsrch.c | 4 ++--
|
||||
src/wn.c | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/lib/binsrch.c b/lib/binsrch.c
|
||||
index 8b71216..9ac51a7 100644
|
||||
--- a/lib/binsrch.c
|
||||
+++ b/lib/binsrch.c
|
||||
@@ -193,7 +193,7 @@ char *replace_line(char *new_line, char *searchkey, FILE *fp)
|
||||
copyfile(fp, tfp);
|
||||
if (fseek(fp, offset, 0) == -1)
|
||||
return(NULL); /* could not seek to offset */
|
||||
- fprintf(fp, new_line); /* write line */
|
||||
+ fprintf(fp, "%s", new_line); /* write line */
|
||||
rewind(tfp);
|
||||
copyfile(tfp, fp);
|
||||
|
||||
@@ -220,7 +220,7 @@ char *insert_line(char *new_line, char *searchkey, FILE *fp)
|
||||
copyfile(fp, tfp);
|
||||
if (fseek(fp, offset, 0) == -1)
|
||||
return(NULL); /* could not seek to offset */
|
||||
- fprintf(fp, new_line); /* write line */
|
||||
+ fprintf(fp, "%s", new_line); /* write line */
|
||||
rewind(tfp);
|
||||
copyfile(tfp, fp);
|
||||
|
||||
diff --git a/src/wn.c b/src/wn.c
|
||||
index 004e1e6..398632f 100644
|
||||
--- a/src/wn.c
|
||||
+++ b/src/wn.c
|
||||
@@ -284,7 +284,7 @@ static void printsearches(char *word, int dbase, unsigned long search)
|
||||
printf("\t");
|
||||
printf(searchstr[j].template,
|
||||
partchars[dbase], partchars[dbase]);
|
||||
- printf(searchstr[j].helpstr);
|
||||
+ printf("%s", searchstr[j].helpstr);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
@@ -345,7 +345,7 @@ static int getoptidx(char *searchtype)
|
||||
|
||||
static int error_message(char *msg)
|
||||
{
|
||||
- fprintf(stderr, msg);
|
||||
+ fprintf(stderr, "%s", msg);
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -urNad wordnet-3.0/src/stubs.c.orig wordnet-3.0/src/stubs.c
|
||||
--- wordnet-3.0/src/stubs.c.orig 2007-01-04 18:47:55.000000000 +0100
|
||||
+++ wordnet-3.0/src/stubs.c 2007-01-20 19:01:19.000000000 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <tk.h>
|
||||
#include <wn.h>
|
||||
|
||||
-static char *Id = "$Id: stubs.c,v 1.7 2005/04/29 19:01:57 wn Exp $";
|
||||
+static const char Id[] = "$Id: stubs.c,v 1.7 2005/04/29 19:01:57 wn Exp $";
|
||||
|
||||
static char resultbuf[SEARCHBUF];
|
||||
|
@ -1,133 +0,0 @@
|
||||
src/stubs.c | 33 +++++++++++++++++----------------
|
||||
1 file changed, 17 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/src/stubs.c b/src/stubs.c
|
||||
index 794485c..cec2c04 100644
|
||||
--- a/src/stubs.c
|
||||
+++ b/src/stubs.c
|
||||
@@ -40,8 +40,8 @@ int wn_findvalidsearches (ClientData clientData, Tcl_Interp *interp,
|
||||
char *morph;
|
||||
int pos;
|
||||
if (argc != 3) {
|
||||
- interp -> result =
|
||||
- "usage: findvalidsearches searchword partofspeechnum";
|
||||
+ Tcl_SetResult(interp,
|
||||
+ "usage: findvalidsearches searchword partofspeechnum", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
pos = atoi (argv[2]);
|
||||
@@ -52,7 +52,7 @@ int wn_findvalidsearches (ClientData clientData, Tcl_Interp *interp,
|
||||
} while ((morph = morphstr (NULL, pos)) != NULL);
|
||||
}
|
||||
sprintf (bitfieldstr, "%u", bitfield);
|
||||
- interp -> result = bitfieldstr;
|
||||
+ Tcl_SetResult(interp, bitfieldstr, TCL_STATIC);
|
||||
return TCL_OK;
|
||||
}
|
||||
|
||||
@@ -69,13 +69,13 @@ int wn_bit (ClientData clientData, Tcl_Interp *interp,
|
||||
static char bitfieldstr[32];
|
||||
int whichbit;
|
||||
if (argc != 2) {
|
||||
- interp -> result = "usage: bit bitnum";
|
||||
+ Tcl_SetResult(interp, "usage: bit bitnum", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
whichbit = atoi (argv[1]);
|
||||
bitfield = bit (whichbit);
|
||||
sprintf (bitfieldstr, "%u", bitfield);
|
||||
- interp -> result = bitfieldstr;
|
||||
+ Tcl_SetResult(interp, bitfieldstr, TCL_STATIC);
|
||||
return TCL_OK;
|
||||
}
|
||||
|
||||
@@ -89,8 +89,8 @@ int wn_search (ClientData clientData, Tcl_Interp *interp,
|
||||
int pos, searchtype, sense;
|
||||
char *morph;
|
||||
if (argc != 5) {
|
||||
- interp -> result =
|
||||
- "usage: search searchword partofspeechnum searchtypenum sensenum";
|
||||
+ Tcl_SetResult(interp,
|
||||
+ "usage: search searchword partofspeechnum searchtypenum sensenum", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
pos = atoi (argv[2]);
|
||||
@@ -102,7 +102,7 @@ int wn_search (ClientData clientData, Tcl_Interp *interp,
|
||||
strcat (resultbuf, findtheinfo (morph, pos, searchtype, sense));
|
||||
} while ((morph = morphstr (NULL, pos)) != NULL);
|
||||
}
|
||||
- interp -> result = resultbuf;
|
||||
+ Tcl_SetResult(interp, resultbuf, TCL_STATIC);
|
||||
return TCL_OK;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ int wn_search (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_glosses (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 2) {
|
||||
- interp -> result = "usage: glosses [1 | 0]";
|
||||
+ Tcl_SetResult(interp, "usage: glosses [1 | 0]", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
dflag = atoi (argv[1]);
|
||||
@@ -129,7 +129,7 @@ int wn_glosses (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_fileinfo (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 2) {
|
||||
- interp -> result = "usage: fileinfo [1 | 0]";
|
||||
+ Tcl_SetResult(interp, "usage: fileinfo [1 | 0]", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
fileinfoflag = atoi (argv[1]);
|
||||
@@ -144,7 +144,7 @@ int wn_fileinfo (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_byteoffset (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 2) {
|
||||
- interp -> result = "usage: byteoffset [1 | 0]";
|
||||
+ Tcl_SetResult(interp, "usage: byteoffset [1 | 0]", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
offsetflag = atoi (argv[1]);
|
||||
@@ -159,7 +159,7 @@ int wn_byteoffset (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_senseflag (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 2) {
|
||||
- interp -> result = "usage: senseflag [1 | 0]";
|
||||
+ Tcl_SetResult(interp, "usage: senseflag [1 | 0]", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
wnsnsflag = atoi (argv[1]);
|
||||
@@ -175,12 +175,13 @@ int wn_contextualhelp (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
int pos, searchtype;
|
||||
if (argc != 3) {
|
||||
- interp -> result = "usage: contextualhelp partofspeechnum searchtypenum";
|
||||
+ Tcl_SetResult(interp,
|
||||
+ "usage: contextualhelp partofspeechnum searchtypenum", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
pos = atoi (argv[1]);
|
||||
searchtype = atoi (argv[2]);
|
||||
- interp -> result = helptext[pos][searchtype];
|
||||
+ Tcl_SetResult(interp, helptext[pos][searchtype], TCL_STATIC);
|
||||
return TCL_OK;
|
||||
}
|
||||
|
||||
@@ -190,7 +191,7 @@ int wn_contextualhelp (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_reopendb (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 1) {
|
||||
- interp -> result = "usage: reopendb";
|
||||
+ Tcl_SetResult(interp, "usage: reopendb", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
re_wninit ();
|
||||
@@ -204,7 +205,7 @@ int wn_reopendb (ClientData clientData, Tcl_Interp *interp,
|
||||
int wn_abortsearch (ClientData clientData, Tcl_Interp *interp,
|
||||
int argc, char *argv[]) {
|
||||
if (argc != 1) {
|
||||
- interp -> result = "usage: abortsearch";
|
||||
+ Tcl_SetResult(interp, "usage: abortsearch", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
abortsearch = 1;
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools epatch flag-o-matic multilib
|
||||
|
||||
DESCRIPTION="A lexical database for the English language"
|
||||
HOMEPAGE="https://wordnet.princeton.edu/"
|
||||
SRC_URI="
|
||||
ftp://ftp.cogsci.princeton.edu/pub/wordnet/${PV}/WordNet-${PV}.tar.gz
|
||||
mirror://gentoo/${P}-patchset-1.tar.bz2"
|
||||
LICENSE="Princeton"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
# In contrast to what the configure script seems to imply, Tcl/Tk is NOT optional.
|
||||
# cf. bug 163478 for details. (Yes, it's about 2.1 but it's still the same here.)
|
||||
DEPEND="
|
||||
dev-lang/tcl:0=
|
||||
dev-lang/tk:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/WordNet-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
# Don't install into PREFIX/dict but PREFIX/share/wordnet/dict
|
||||
"${WORKDIR}/${P}-dict-location.patch"
|
||||
# Fixes bug 130024, make an additional shared lib
|
||||
"${WORKDIR}/${P}-shared-lib.patch"
|
||||
# Don't install the docs directly into PREFIX/doc but PREFIX/doc/PN
|
||||
"${WORKDIR}/${P}-docs-path.patch"
|
||||
"${WORKDIR}"/${P}-CVE-2008-3908.patch #211491
|
||||
"${WORKDIR}"/${P}-CVE-2008-2149.patch #211491
|
||||
|
||||
"${FILESDIR}"/${P}-tcl8.6.patch
|
||||
"${FILESDIR}"/${P}-format-security.patch
|
||||
"${FILESDIR}"/${P}-src_stubs_c.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
# Don't install all the extra docs (html, pdf, ps) without doc USE flag.
|
||||
if ! use doc; then
|
||||
sed -i -e "s:SUBDIRS =.*:SUBDIRS = man:" doc/Makefile.am || die
|
||||
fi
|
||||
|
||||
# Drop installation of OLD tk.h headers #255590
|
||||
sed '/^SUBDIRS/d' -i include/Makefile.am || die
|
||||
sed 's: include/tk/Makefile::' -i configure.ac || die
|
||||
rm -rf include/tk/ || die
|
||||
|
||||
rm -f configure || die
|
||||
eautoreconf
|
||||
MAKEOPTS+=" -e"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DUNIX -I"${T}"/usr/include
|
||||
|
||||
PLATFORM=linux WN_ROOT="${T}/usr" \
|
||||
WN_DICTDIR="${T}/usr/share/wordnet/dict" \
|
||||
WN_MANDIR="${T}/usr/share/man" \
|
||||
WN_DOCDIR="${T}/usr/share/doc/wordnet-${PV}" \
|
||||
WNHOME="${EPREFIX}/usr/share/wordnet" \
|
||||
econf \
|
||||
--with-tcl="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-tk="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools epatch flag-o-matic
|
||||
|
||||
DESCRIPTION="A lexical database for the English language"
|
||||
HOMEPAGE="https://wordnet.princeton.edu/"
|
||||
SRC_URI="
|
||||
http://wordnetcode.princeton.edu/${PV}/WordNet-${PV}.tar.gz
|
||||
mirror://gentoo/${P}-patchset-1.tar.bz2"
|
||||
LICENSE="Princeton"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
# In contrast to what the configure script seems to imply, Tcl/Tk is NOT
|
||||
# optional. cf. bug 163478 for details. (Yes, it's about 2.1 but it's
|
||||
# still the same here.)
|
||||
DEPEND="
|
||||
dev-lang/tcl:0=
|
||||
dev-lang/tk:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/WordNet-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
# Don't install into PREFIX/dict but PREFIX/share/wordnet/dict
|
||||
"${WORKDIR}/${P}-dict-location.patch"
|
||||
# Fixes bug 130024, make an additional shared lib
|
||||
"${WORKDIR}/${P}-shared-lib.patch"
|
||||
# Don't install the docs directly into PREFIX/doc but PREFIX/doc/PN
|
||||
"${WORKDIR}/${P}-docs-path.patch"
|
||||
"${WORKDIR}"/${P}-CVE-2008-3908.patch #211491
|
||||
"${WORKDIR}"/${P}-CVE-2008-2149.patch #211491
|
||||
|
||||
"${FILESDIR}"/${P}-tcl8.6.patch
|
||||
"${FILESDIR}"/${P}-format-security.patch
|
||||
"${FILESDIR}"/${P}-src_stubs_c.patch
|
||||
"${FILESDIR}"/${P}-fix-indexing-bug-314799.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${PATCHES[@]}"
|
||||
eapply_user
|
||||
|
||||
# Don't install all the extra docs (html, pdf, ps) without doc USE flag.
|
||||
if ! use doc; then
|
||||
sed -i -e "s:SUBDIRS =.*:SUBDIRS = man:" doc/Makefile.am || die
|
||||
fi
|
||||
|
||||
# Drop installation of OLD tk.h headers #255590
|
||||
sed '/^SUBDIRS/d' -i include/Makefile.am || die
|
||||
sed 's: include/tk/Makefile::' -i configure.ac || die
|
||||
rm -rf include/tk/ || die
|
||||
|
||||
rm -f configure || die
|
||||
eautoreconf
|
||||
MAKEOPTS+=" -e"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DUNIX -I"${T}"/usr/include
|
||||
|
||||
PLATFORM=linux WN_ROOT="${T}/usr" \
|
||||
WN_DICTDIR="${T}/usr/share/wordnet/dict" \
|
||||
WN_MANDIR="${T}/usr/share/man" \
|
||||
WN_DOCDIR="${T}/usr/share/doc/wordnet-${PV}" \
|
||||
WNHOME="${EPREFIX}/usr/share/wordnet" \
|
||||
econf \
|
||||
--with-tcl="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-tk="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
DESCRIPTION="A lexical database for the English language"
|
||||
HOMEPAGE="https://wordnet.princeton.edu/"
|
||||
SRC_URI="
|
||||
http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz
|
||||
http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz
|
||||
https://dev.gentoo.org/~soap/distfiles/${PN}-3.0-patchset-2.tar.xz"
|
||||
S="${WORKDIR}/WordNet-3.0"
|
||||
|
||||
LICENSE="Princeton"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
# In contrast to what the configure script seems to imply, Tcl/Tk is NOT
|
||||
# optional. cf. bug 163478 for details. (Yes, it's about 2.1 but it's
|
||||
# still the same here.)
|
||||
DEPEND="
|
||||
dev-lang/tcl:0=
|
||||
dev-lang/tk:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/patches/${PN}-3.0-build-system.patch
|
||||
|
||||
"${WORKDIR}"/patches/${PN}-3.0-CVE-2008-3908.patch #211491
|
||||
"${WORKDIR}"/patches/${PN}-3.0-tcl8.6.patch
|
||||
"${WORKDIR}"/patches/${PN}-3.0-format-security.patch
|
||||
"${WORKDIR}"/patches/${PN}-3.0-src_stubs_c.patch
|
||||
"${WORKDIR}"/patches/${PN}-3.0-fix-indexing-bug-314799.patch
|
||||
"${WORKDIR}"/patches/${PN}-3.0-CVE-2008-2149.patch #211491
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DUNIX -I"${T}"/usr/include
|
||||
|
||||
PLATFORM=linux \
|
||||
WN_ROOT="${T}"/usr \
|
||||
WN_DICTDIR="${T}"/usr/share/wordnet/dict \
|
||||
WN_MANDIR="${T}"/usr/share/man \
|
||||
WN_DOCDIR="${T}"/usr/share/doc/wordnet-3.0 \
|
||||
WNHOME="${EPREFIX}"/usr/share/wordnet \
|
||||
econf \
|
||||
--with-tcl="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-tk="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# For clarification: WN is still on version 3.0. Only the database files
|
||||
# have been updated to 3.1 as a package for 3.1 does not currently exist.
|
||||
rm -r "${ED}"/usr/share/wordnet/dict || die
|
||||
insinto /usr/share/wordnet
|
||||
doins -r "${WORKDIR}"/dict
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The WordNet 3.1 ebuild has installed WordNet v3.0 with v3.1 database files instead."
|
||||
elog "See https://wordnet.princeton.edu/download/current-version/ for more."
|
||||
}
|
@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
DESCRIPTION="A lexical database for the English language"
|
||||
HOMEPAGE="https://wordnet.princeton.edu/"
|
||||
SRC_URI="
|
||||
http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz
|
||||
mirror://gentoo/${PN}-3.0-patchset-1.tar.bz2
|
||||
http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz"
|
||||
LICENSE="Princeton"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
# In contrast to what the configure script seems to imply, Tcl/Tk is NOT
|
||||
# optional. cf. bug 163478 for details. (Yes, it's about 2.1 but it's
|
||||
# still the same here.)
|
||||
DEPEND="
|
||||
dev-lang/tcl:0=
|
||||
dev-lang/tk:0="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/WordNet-3.0"
|
||||
|
||||
PATCHES1=(
|
||||
# Don't install into PREFIX/dict but PREFIX/share/wordnet/dict
|
||||
"${WORKDIR}/"${PN}-3.0"-dict-location.patch"
|
||||
# Fixes bug 130024, make an additional shared lib
|
||||
"${WORKDIR}/"${PN}-3.0"-shared-lib.patch"
|
||||
# Don't install the docs directly into PREFIX/doc but PREFIX/doc/PN
|
||||
"${WORKDIR}/"${PN}-3.0"-docs-path.patch"
|
||||
"${WORKDIR}"/"${PN}-3.0"-CVE-2008-3908.patch #211491
|
||||
|
||||
"${FILESDIR}"/"${PN}-3.0"-tcl8.6.patch
|
||||
"${FILESDIR}"/"${PN}-3.0"-format-security.patch
|
||||
"${FILESDIR}"/"${PN}-3.0"-src_stubs_c.patch
|
||||
"${FILESDIR}"/"${PN}-3.0"-fix-indexing-bug-314799.patch
|
||||
)
|
||||
|
||||
PATCHES0=(
|
||||
"${WORKDIR}"/"${PN}-3.0"-CVE-2008-2149.patch #211491
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
eapply -p1 "${PATCHES1[@]}"
|
||||
eapply -p0 "${PATCHES0[@]}"
|
||||
eapply_user
|
||||
|
||||
# Don't install all the extra docs (html, pdf, ps) without doc USE flag.
|
||||
if ! use doc; then
|
||||
sed -i -e "s:SUBDIRS =.*:SUBDIRS = man:" doc/Makefile.am || die
|
||||
fi
|
||||
|
||||
# Drop installation of OLD tk.h headers #255590
|
||||
sed '/^SUBDIRS/d' -i include/Makefile.am || die
|
||||
sed 's: include/tk/Makefile::' -i configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DUNIX -I"${T}"/usr/include
|
||||
|
||||
PLATFORM=linux WN_ROOT="${T}/usr" \
|
||||
WN_DICTDIR="${T}/usr/share/wordnet/dict" \
|
||||
WN_MANDIR="${T}/usr/share/man" \
|
||||
WN_DOCDIR="${T}/usr/share/doc/wordnet-3.0" \
|
||||
WNHOME="${EPREFIX}/usr/share/wordnet" \
|
||||
econf \
|
||||
--with-tcl="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-tk="${EPREFIX}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -e
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# For clarification, WN is still on version 3.0. Only the database files
|
||||
# have been updated to 3.1 as a package for 3.1 does not currently exist.
|
||||
emake -e DESTDIR="${D}" install
|
||||
einstalldocs
|
||||
rm -r "${D}/usr/share/wordnet/dict" || die
|
||||
mv "${WORKDIR}/dict" "${D}/usr/share/wordnet" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The WordNet 3.1 ebuild has installed WordNet v3.0 with v3.1 database files instead."
|
||||
elog "See https://wordnet.princeton.edu/download/current-version/ for more."
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST fs-uae-launcher-3.0.5.tar.gz 9633819 BLAKE2B 8ce627302244bbd7d174f28c0dad345699942429c1109a7408c88412f6bb0e3e5d765e6c51abf2b95837a83261023b4f9c58d65892e58043889be8dc5e4cb759 SHA512 1a6700c56a14edce86ffbefee7494117af067da8b1dbc22937a36641ccb90927a3bbb011d15a891388bf08378aa623e00a2d45dbc49e822a5a569e110843add5
|
||||
DIST fs-uae-launcher-3.1.26.tar.gz 9656516 BLAKE2B 1b8d12ef91631dedf412976e81529ac7138b7f688ad6ae1ad55bfd3625590ee00aab89d229d2aa64eec577d291a6e634362c557428534c355fdb39e878f40253 SHA512 0e4e542bebfe2d8f862005c016fe70319dd6c5e1e413be9b0ce0421bb95253ba6eb92337989cc86210094b9b02a6ad86da4725f1a65d50673703fa6c6cb58f37
|
||||
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
DESCRIPTION="PyQt5-based launcher for FS-UAE"
|
||||
HOMEPAGE="https://fs-uae.net/"
|
||||
SRC_URI="https://github.com/FrodeSolheim/fs-uae-launcher/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="lha"
|
||||
RETRICT="test" # The test files are just boilerplate.
|
||||
|
||||
RDEPEND="
|
||||
app-emulation/fs-uae
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},declarative,gui,network,opengl,widgets]
|
||||
dev-python/pyopengl[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
lha? ( dev-python/python-lhafile[${PYTHON_USEDEP}] )
|
||||
')
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.0.0-ROMs.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python bootstrap
|
||||
|
||||
# Unbundle OpenGL library. Keep oyoyo IRC library because upstream
|
||||
# is long dead and it's not worth packaging separately.
|
||||
rm -r OpenGL/ || die
|
||||
sed -i -r "/OpenGL/d" setup.py || die
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
emake
|
||||
}
|
||||
|
||||
python_install() {
|
||||
local dir=${EPREFIX}/usr/share/${PN}
|
||||
distutils-r1_python_install --install-lib="${dir}" --install-scripts="${dir}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dosym ../share/${PN}/${PN} /usr/bin/${PN}
|
||||
emake install-data DESTDIR="${D}" prefix="${EPREFIX}"/usr
|
||||
mv "${ED}"/usr/share/doc/{${PN},${PF}} || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Some important information:"
|
||||
elog
|
||||
ewarn " - Do not use QtCurve, it will crash PyQt5!"
|
||||
elog
|
||||
elog " - By default, FS-UAE creates its directories under Documents/FS-UAE."
|
||||
elog " If your Documents directory is not configured according to the XDG"
|
||||
elog " user diretory spec, ~/FS-UAE will be used as a fallback."
|
||||
elog
|
||||
elog " - You can override this by putting the path to the desired base"
|
||||
elog " directory in a special config file. The config file will be read"
|
||||
elog " from ~/.config/fs-uae/base-dir by both FS-UAE and FS-UAE Launcher"
|
||||
elog " if it exists."
|
||||
elog
|
||||
elog " Alternatively, you can start FS-UAE and/or FS-UAE Launcher with"
|
||||
elog " --base-dir=/path/to/desired/dir"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST fs-uae-3.0.5.tar.gz 4819884 BLAKE2B 0a82e0635ed02c1b4f04610555370c80ea12a870a73fd00cc98adefcefada2deed293c437202af34fc98e2f695fe1b08df918eca71b504e5b94e5ab3a099d9ed SHA512 b34ffb818040c7bf67022f26e1dbc9ebf06742a354212f2b0d2aa6b8e04c60807893a16ff965c819395f4c3fb3c43c35b38dce848b86fa046a211e12414385c7
|
||||
DIST fs-uae-3.1.35.tar.gz 4817547 BLAKE2B 5f75a1e262ba8d642401a03ac5b2494be37b8bab8f014a48208cc6e0b2e33373a7ce6146065f41404d8fcbd60fe71582319abe51521336c2d7c04668c3adacd9 SHA512 96bec936f867fc42eb9f61058887c027da0bab1c8df196ab62a714b1f28c92aafe6c4a61d441e5c7b5d8aee28c90d68812d0f6049c610e2ef9eebdd7e3edf013
|
||||
|
@ -0,0 +1,113 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools xdg
|
||||
|
||||
DESCRIPTION="Integrates the most accurate Amiga emulation code available from WinUAE"
|
||||
HOMEPAGE="https://fs-uae.net/"
|
||||
SRC_URI="https://fs-uae.net/stable/${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="fmv glew"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
media-libs/libpng:0=
|
||||
media-libs/libsdl2[opengl,X]
|
||||
media-libs/openal
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
fmv? ( media-libs/libmpeg2 )
|
||||
glew? ( media-libs/glew:0= )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/zip
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.0.0-libmpeg2.patch
|
||||
"${FILESDIR}"/${PN}-3.0.0-Xatom.h.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
AT_NO_RECURSIVE=1 eautoreconf
|
||||
|
||||
# Ensure bundled libraries are not used. Udis86 is unused
|
||||
# regardless. Only FLAC headers are bundled and the library is never
|
||||
# used? Lua is bundled but differs from upstream. We keep the
|
||||
# default of disabling the Lua feature anyway as it is unfinished.
|
||||
rm -r libmpeg2/ libudis86/ || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Qt and Udis86 are unused.
|
||||
econf \
|
||||
--enable-a2065 \
|
||||
--enable-action-replay \
|
||||
--enable-aga \
|
||||
--enable-arcadia \
|
||||
--enable-bsdsocket \
|
||||
--enable-caps \
|
||||
--enable-cd32 \
|
||||
--enable-cdtv \
|
||||
--enable-codegen \
|
||||
--enable-dms \
|
||||
--enable-drivesound \
|
||||
--enable-fdi2raw \
|
||||
--enable-gfxboard \
|
||||
--enable-jit \
|
||||
--enable-jit-fpu \
|
||||
--disable-lua \
|
||||
--enable-netplay \
|
||||
--enable-ncr \
|
||||
--enable-ncr9x \
|
||||
--enable-parallel-port \
|
||||
--enable-prowizard \
|
||||
--enable-savestate \
|
||||
--enable-scp \
|
||||
--enable-serial-port \
|
||||
--enable-slirp \
|
||||
--enable-softfloat \
|
||||
--enable-qemu-cpu \
|
||||
--enable-qemu-slirp \
|
||||
--enable-uaenative \
|
||||
--enable-uaenet \
|
||||
--enable-uaescsi \
|
||||
--enable-uaeserial \
|
||||
--disable-udis86 \
|
||||
--enable-vpar \
|
||||
--enable-xml-shader \
|
||||
--enable-zip \
|
||||
--without-cef \
|
||||
--with-glad \
|
||||
--without-qt \
|
||||
$(use_with fmv libmpeg2) \
|
||||
$(use_with glew)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Needed for QEMU-UAE.
|
||||
insinto /usr/include/uae
|
||||
doins src/include/uae/{api,attributes,log,ppc,qemu,types}.h
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
elog "Install app-emulation/fs-uae-launcher for a better graphical interface."
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST ibus-chewing-1.5.1-Source.tar.gz 177044 BLAKE2B b188c7ea2c12fd1ccf64a70355da0a6f8a47976f141c8a0a7edcc7a5ccd6b959f73cad2cd1137874f965967780691fe920b44b3141cc6fa4e631921f4c4a2582 SHA512 2db6def1fe8ca3bd71419a001909d285ee48ef84c2f65e14bacff9cd114676bed594f0c90217e1fdab67c995a7b05d675812e90e281371d8464722c31649c633
|
||||
DIST ibus-chewing-1.6.1.tar.gz 111103 BLAKE2B c9b22b0fe4b164d02a1782479e139e04e3113299fb3ccebdba24eaa9d15964eca34d381f45f0c313bb53bc0b8c7f7b649ff4c0179c712f6d880e3d92a9d02692 SHA512 b093db79c656433614b9f72719a2b0768a30c2fb6fa066eda1e79cc9932ce1836f7f1e5611612fb44f260fe80a9baa9e18fdc9754b285e8a5f12a87c376cbd39
|
||||
DIST ibus-chewing-1.6.1_p20210117.tar.gz 112715 BLAKE2B 80279a40c8733fc8e9f43b09cf825bea53442a6572d7863bf7d8faf06765fcb3609c71b9087551c6b2d35b268b2585f6e4c019f15ccc08c8f91bc3a14427ad57 SHA512 979f58d3b32ec22051d32c7425867761eea8e13eb9dc900975e3986bb7b3064883474267731c32f79c96d2029da0415dba8d5ed7ae3645f04c3fed44dbe25bd6
|
||||
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake-utils gnome2-utils virtualx
|
||||
|
||||
MY_P="${P}-Source"
|
||||
|
||||
DESCRIPTION="Chinese Chewing engine for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gconf nls"
|
||||
|
||||
RDEPEND="app-i18n/ibus
|
||||
app-i18n/libchewing
|
||||
dev-libs/glib:2
|
||||
dev-util/gob:2
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
gconf? ( gnome-base/gconf )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-test.patch )
|
||||
DOCS=( AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
|
||||
-DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EPREFIX%/}/"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
|
||||
|
||||
export GSETTINGS_BACKEND="memory"
|
||||
export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
|
||||
virtx cmake-utils_src_test
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
use gconf && gnome2_gconf_savelist
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use gconf && gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
--- a/tests/ibus-hangul.c
|
||||
+++ b/tests/ibus-hangul.c
|
||||
@@ -261,6 +261,7 @@
|
||||
G_CALLBACK (window_inserted_text_cb), entry);
|
||||
gtk_container_add (GTK_CONTAINER (window), entry);
|
||||
gtk_widget_show_all (window);
|
||||
+ gtk_window_present (window);
|
||||
}
|
||||
|
||||
static void
|
||||
--- a/tests/runtest
|
||||
+++ b/tests/runtest
|
||||
@@ -7,7 +7,6 @@
|
||||
: ${DISABLE_GUI_TESTS:=''}
|
||||
|
||||
ibus-daemon --xim --panel disable --config disable &
|
||||
-sleep 30
|
||||
|
||||
tst=$1
|
||||
|
@ -1,2 +1 @@
|
||||
DIST ibus-table-chinese-1.8.2.tar.gz 10576111 BLAKE2B a80fa9c4780207efefba1118ee9dacc33dba4136b916a24971198b3325bf1b26f86cd4586db994db6dfaa85fffe087b021673d056b10df61c5f95ede4e967cd6 SHA512 30fd1c7ee8416cd62d8e26bc2646a667ac45c4579a7cb191c77e80fecccbc576c34f33ec0b5c55669c073a633298cfda1711e4b9d89a9ef8f6146acdc0167c1a
|
||||
DIST ibus-table-chinese-1.8.3.tar.gz 10824912 BLAKE2B e9f4e377a794827196e04e197044b3fdcd81d84ed89067e17745879495df69cc6e95814863f856cc0a7b7db0aba3cbd93d1c1d172f607fdd410dbed02dc4ad54 SHA512 610455343d9c9bf6577c7fd7aef9435c339c2f23c4d5f7ae2cbbc2366a9eb6a8a124e86621387497cc624e3276bf739b55602355ad41c4127f45f6d85cc5b4dc
|
||||
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
CMAKE_IN_SOURCE_BUILD="1"
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Chinese tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/definite/ibus-table-chinese"
|
||||
SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-i18n/ibus-table"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/cmake-fedora"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_FEDORA_TMP_DIR="${T}"
|
||||
-DDATA_DIR="${EPREFIX}"/usr/share
|
||||
-DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
|
||||
-DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DESCRIPTION="Various tables for IBus-Table"
|
||||
HOMEPAGE="https://github.com/moebiuscurve/ibus-table-others"
|
||||
SRC_URI="https://github.com/moebiuscurve/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-i18n/ibus-table
|
||||
!app-i18n/ibus-table-code
|
||||
!app-i18n/ibus-table-cyrillic
|
||||
!app-i18n/ibus-table-latin
|
||||
!app-i18n/ibus-table-tv"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
@ -1,2 +1 @@
|
||||
DIST ibus-table-1.14.0.tar.gz 1450310 BLAKE2B 72a655e378b39324ff849e6941dc28920760d030d748a5b4b0899e14b94874a52581d03ccbef2d72c5eaae51d20a0e19690bde5a1411960347fe49cf3137d21b SHA512 60e570b82c4f05200410e9e4e155089223a20ebcf66d1c039a783108005f63699e75bc528fc30cd370c1400b65e765ade0d069184bd2ab81e2eda9bade2e8ac9
|
||||
DIST ibus-table-1.14.1.tar.gz 1451943 BLAKE2B e8fc54daf89aaee813de6788bef9f56a654ffdf4751acf3e2f622d971134c3aba906ca2b106f51b2fa305b8c65fb4db862f57f5f9e3e82a569c5a72e3017e627 SHA512 a658c2d370d173d2fe2f38c02c6b822a17771754ac98a856f954c4c998e90a857f9d54ed652c74159af9545d445001d202e7b5578e7694f8767f928b42db9055
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
PYTHON_REQ_USE="sqlite(+)"
|
||||
|
||||
inherit gnome2-utils python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="Tables engines for IBus"
|
||||
HOMEPAGE="https://github.com/ibus/ibus/wiki"
|
||||
SRC_URI="https://github.com/kaio/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="nls"
|
||||
RESTRICT="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
app-i18n/ibus[python(+),${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
virtual/libiconv
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable nls)
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
@ -1,4 +1,5 @@
|
||||
DIST ca-certificates_20210119.tar.xz 232964 BLAKE2B 593352912d2b490e3f46ea032ac1ddf1c87a7ac93859d475461cbba490918cdec853b0bb30bb253a634d8d597ca6f0304bc81122b4b31b5b31fd6a80e1faaf33 SHA512 a824209fa0ff0865872a07d8e6b901d8407f599243810fd5c820e1f69226e05b0b4f1e25e5ff3d8d398ff952529084442f026e32220961f359f6323f6bf03373
|
||||
DIST nss-3.66.tar.gz 82401896 BLAKE2B ae369899af681e1c6ea8046098c83da08c2112b16d85a0eaee46e9d4f97dfb3f7c3e97eb681ec947b5648446c6db51e8f1396ec9bb6c731c9678ecf925e7f743 SHA512 327129cb065a8c19246e081e3cbc4798c81dc52eab6ee366eade151e9d308990592075c52a7c672165725fd855a0c539d56a803c26ef066561c584d693e0e467
|
||||
DIST nss-3.70.tar.gz 83917362 BLAKE2B 51de2e2cf5feb11045388b0badec24509d50f8bc8abd4116cbab77ff434f86a44ad4c98e533a1dd7093a9d1be9b7deb45f0426e3a173f9b2b92995cf63f2ea51 SHA512 9766282b36560d2f73ac5e90dbc3962802d6b1e8650ff9c0afbd6d2e1ff4cf8f2bc251f972344dc8a6ac5209b917aae03cc9883cb081011a7dea7bd258a95d82
|
||||
DIST nss-3.71.tar.gz 83927933 BLAKE2B a8d683b9f9bff5390e0378ab0d55156f7cc69a52b0667658738e67e920548965e7a276dc4104547b2e6a1a6d18325c3f85b955b9c12d7f071d10930b5264207e SHA512 a4a724dc4e8677965b6245ea2309790d31ec7719658e2b349eb67c9008082132c76277340d15e4fdd8d2fe1f560ae6803fb038d023c3dfd2e3772fa3b77720e2
|
||||
DIST nss-cacert-class1-class3-r2.patch 21925 BLAKE2B 7627ff9a09f084c19d72d0490676865e3cab3ca7c920ae1ce4bea2db664f37fd0aa84fcda919809a516891ab2a62e2e7a43a9d6ada4c231adfe4c216525fac7d SHA512 1ce6ff9ab310aaca9005eafb461338b291df8523cc7044e096cd75774ce746c26eed19ec6bb2643c6c67f94650f2f309463492d80a90568f38ce2557f8ada2f4
|
||||
|
@ -0,0 +1,189 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
||||
# in the nss package and repackages it for use by openssl.
|
||||
#
|
||||
# The issue with using the compiled debs directly is two fold:
|
||||
# - they do not update frequently enough for us to rely on them
|
||||
# - they pull the CA database from nss tip of tree rather than the release
|
||||
#
|
||||
# So we take the Debian source tools and combine them with the latest nss
|
||||
# release to produce (largely) the same end result. The difference is that
|
||||
# now we know our cert database is kept in sync with nss and, if need be,
|
||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
||||
|
||||
# When triaging user reports, refer to our wiki for tips:
|
||||
# https://wiki.gentoo.org/wiki/Certificates#Debugging_certificate_issues
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
|
||||
inherit python-any-r1
|
||||
|
||||
if [[ ${PV} == *.* ]] ; then
|
||||
# Compile from source ourselves.
|
||||
PRECOMPILED=false
|
||||
|
||||
DEB_VER=$(ver_cut 1)
|
||||
NSS_VER=$(ver_cut 2-)
|
||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
||||
else
|
||||
# Debian precompiled version.
|
||||
PRECOMPILED=true
|
||||
inherit unpacker
|
||||
fi
|
||||
|
||||
DESCRIPTION="Common CA Certificates PEM files"
|
||||
HOMEPAGE="https://packages.debian.org/sid/ca-certificates"
|
||||
NMU_PR=""
|
||||
if ${PRECOMPILED} ; then
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
||||
else
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
||||
https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
||||
cacert? (
|
||||
https://dev.gentoo.org/~whissi/dist/ca-certificates/nss-cacert-class1-class3-r2.patch
|
||||
)"
|
||||
fi
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
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 ~x86-winnt"
|
||||
IUSE=""
|
||||
${PRECOMPILED} || IUSE+=" cacert"
|
||||
|
||||
# c_rehash: we run `c_rehash`
|
||||
# debianutils: we run `run-parts`
|
||||
CDEPEND="app-misc/c_rehash
|
||||
sys-apps/debianutils"
|
||||
|
||||
BDEPEND="${CDEPEND}"
|
||||
if ! ${PRECOMPILED} ; then
|
||||
BDEPEND+=" ${PYTHON_DEPS}"
|
||||
fi
|
||||
|
||||
DEPEND=""
|
||||
if ${PRECOMPILED} ; then
|
||||
DEPEND+=" !<sys-apps/portage-2.1.10.41"
|
||||
fi
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
${DEPEND}"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
||||
# we need to tell users about it once manually first.
|
||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if ! ${PRECOMPILED} ; then
|
||||
default
|
||||
# Initial 20200601 deb release had bad naming inside the debian source tarball.
|
||||
DEB_S="${WORKDIR}/${PN}-${DEB_VER}"
|
||||
DEB_BAD_S="${WORKDIR}/work"
|
||||
if [[ -d "${DEB_BAD_S}" ]] && [[ ! -d "${DEB_S}" ]] ; then
|
||||
mv "${DEB_BAD_S}" "${DEB_S}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Do all the work in the image subdir to avoid conflicting with source
|
||||
# dirs in ${WORKDIR}. Need to perform everything in the offset #381937
|
||||
mkdir -p "image/${EPREFIX}" || die
|
||||
cd "image/${EPREFIX}" || die
|
||||
|
||||
${PRECOMPILED} && unpacker_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
mkdir -p usr/sbin || die
|
||||
cp -p "${S}"/${PN}-${DEB_VER}/sbin/update-ca-certificates \
|
||||
usr/sbin/ || die
|
||||
|
||||
if use cacert ; then
|
||||
pushd "${S}"/nss-${NSS_VER} >/dev/null || die
|
||||
eapply "${DISTDIR}"/nss-cacert-class1-class3-r2.patch
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
fi
|
||||
|
||||
default
|
||||
eapply -p2 "${FILESDIR}"/${PN}-20150426-root.patch
|
||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
||||
sed -i \
|
||||
-e '/="$ROOT/s:ROOT:ROOT'"${EPREFIX}"':' \
|
||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
||||
-e 's/openssl rehash/c_rehash/' \
|
||||
usr/sbin/update-ca-certificates || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
python_setup
|
||||
local d="${S}/${PN}-${DEB_VER}/mozilla" c="usr/share/${PN}"
|
||||
# Grab the database from the nss sources.
|
||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
||||
emake -C "${d}"
|
||||
|
||||
# Now move the files to the same places that the precompiled would.
|
||||
mkdir -p etc/ssl/certs \
|
||||
etc/ca-certificates/update.d \
|
||||
"${c}"/mozilla \
|
||||
|| die
|
||||
if use cacert ; then
|
||||
mkdir -p "${c}"/cacert.org || die
|
||||
mv "${d}"/CA_Cert_Signing_Authority.crt \
|
||||
"${c}"/cacert.org/cacert.org_class1.crt || die
|
||||
mv "${d}"/CAcert_Class_3_Root.crt \
|
||||
"${c}"/cacert.org/cacert.org_class3.crt || die
|
||||
fi
|
||||
mv "${d}"/*.crt "${c}"/mozilla/ || die
|
||||
else
|
||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
||||
fi
|
||||
|
||||
(
|
||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
||||
echo "# $(date -u)"
|
||||
echo "# Do not edit."
|
||||
cd "${c}" || die
|
||||
find * -name '*.crt' | LC_ALL=C sort
|
||||
) > etc/ca-certificates.conf
|
||||
|
||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -pPR image/* "${D}"/ || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
cd ${PN}-${DEB_VER} || die
|
||||
doman sbin/*.8
|
||||
dodoc debian/README.* examples/ca-certificates-local/README
|
||||
fi
|
||||
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
||||
doenvd 98ca-certificates
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -d "${EROOT}/usr/local/share/ca-certificates" ]] ; then
|
||||
# if the user has local certs, we need to rebuild again
|
||||
# to include their stuff in the db.
|
||||
# However it's too overzealous when the user has custom certs in place.
|
||||
# --fresh is to clean up dangling symlinks
|
||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
|
||||
fi
|
||||
|
||||
if [[ -n "$(find -L "${EROOT}"/etc/ssl/certs/ -type l)" ]] ; then
|
||||
ewarn "Removing the following broken symlinks:"
|
||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
||||
fi
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
--- a/data/kanatest.desktop
|
||||
+++ b/data/kanatest.desktop
|
||||
@@ -1,11 +1,10 @@
|
||||
[Desktop Entry]
|
||||
-Encoding=UTF-8
|
||||
Name=Hiragana and Katakana Test
|
||||
Comment=Hiragana and Katakana drill tool
|
||||
Exec=kanatest
|
||||
-Icon=kanatest.png
|
||||
+Icon=kanatest
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
X-Desktop-File-Install-Version=0.10
|
||||
-Categories=Game;Application;X-Fedora;
|
||||
+Categories=Game;X-Fedora;
|
@ -0,0 +1,22 @@
|
||||
--- a/src/stats.c
|
||||
+++ b/src/stats.c
|
||||
@@ -84,7 +84,7 @@ gchar buffer[BUFFER_SIZE];
|
||||
|
||||
info_dialog = gtk_message_dialog_new (GTK_WINDOW(appGUI->sts->stat_window),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
|
||||
- GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, buffer);
|
||||
+ GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", buffer);
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(info_dialog), _("Question"));
|
||||
gtk_widget_show (info_dialog);
|
||||
--- a/src/test.c
|
||||
+++ b/src/test.c
|
||||
@@ -538,7 +538,7 @@ test_info(GUI *appGUI) {
|
||||
|
||||
info_dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW(appGUI->main_window),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
|
||||
- GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, message);
|
||||
+ GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "%s", message);
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(info_dialog), _("Information"));
|
||||
gtk_widget_show (info_dialog);
|
@ -1,48 +1,38 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=8
|
||||
|
||||
inherit autotools epatch gnome2-utils
|
||||
inherit autotools xdg
|
||||
|
||||
DESCRIPTION="Visual flashcard tool for memorizing the Japanese Hiragana and Katakana alphabet"
|
||||
HOMEPAGE="http://www.clayo.org/kanatest"
|
||||
SRC_URI="http://www.clayo.org/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="https://www.clayo.org/kanatest"
|
||||
SRC_URI="https://www.clayo.org/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
|
||||
RDEPEND=">=x11-libs/gtk+-2.12:2=
|
||||
RDEPEND="
|
||||
x11-libs/gtk+:2
|
||||
dev-libs/libxml2:="
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
DOCS=( AUTHORS TRANSLATORS ChangeLog README )
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}+gtk-2.22.patch \
|
||||
"${FILESDIR}"/${P}-autoconf.patch \
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}+gtk-2.22.patch
|
||||
"${FILESDIR}"/${P}-autoconf.patch
|
||||
"${FILESDIR}"/${P}-cflags.patch
|
||||
"${FILESDIR}"/${P}-desktop-QA.patch
|
||||
"${FILESDIR}"/${P}-format-security.patch
|
||||
)
|
||||
|
||||
sed -i \
|
||||
-e '/Encoding/d' \
|
||||
-e '/^Categories/s:Application;::' \
|
||||
-e '/^Icon/s:.png::' \
|
||||
data/${PN}.desktop || die
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
src_install() {
|
||||
default
|
||||
dodoc TRANSLATORS
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
musl doesn't have an internal __sighandler_t type,
|
||||
and only makes sighandler_t visible if _GNU_SOURCE
|
||||
is defined.
|
||||
https://bugs.gentoo.org/714026
|
||||
|
||||
--- a/src/sunlink.c
|
||||
+++ b/src/sunlink.c
|
||||
@@ -102,9 +102,6 @@
|
||||
static volatile int SIGINT_received = 0;
|
||||
#if defined(__unix__)
|
||||
#include <signal.h>
|
||||
-#if defined(__linux__) && !defined(__USE_GNU)
|
||||
-typedef __sighandler_t sighandler_t;
|
||||
-#endif
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
typedef sig_t sighandler_t;
|
||||
#endif
|
Binary file not shown.
@ -1,31 +1,33 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=8
|
||||
|
||||
inherit epatch autotools
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A tool that converts Siemens phones VMO and VMI audio files to gsm and wav"
|
||||
HOMEPAGE="http://triq.net/obex/"
|
||||
SRC_URI="http://triq.net/obexftp/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="media-sound/gsm"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-glibc28.patch
|
||||
"${FILESDIR}"/${P}-flags.patch
|
||||
"${FILESDIR}"/${P}-external-libgsm.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-glibc28.patch"
|
||||
epatch "${FILESDIR}/${P}-flags.patch"
|
||||
epatch "${FILESDIR}/${P}-external-libgsm.patch"
|
||||
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/vmo2gsm src/gsm2vmo src/vmo2wav
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
einstalldocs
|
||||
}
|
||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST kramdown-rfc2629-1.4.19.gem 47104 BLAKE2B a967987f34b0af0bff964488d640a8ca830e55b8a1955442896ed0bebf2cd4d9b902699e1347bd81d82a1b10e085ad2f2827968ff62e96cc4ea7f023f8336af1 SHA512 4843690fe10ae02d90a4dde9ade086308b8081155bd6fea1d83c38563cba1c2d447e337f658666fabb57ca9f85b5f4d5687db2503b0b28b5718b978b1db2714a
|
||||
DIST kramdown-rfc2629-1.5.8.gem 49152 BLAKE2B 0c6a2e427f48cf9b41b34dbb5b59fb5c609a0b39327105b915fed0268bfc7a42b3d96e906fc97e3df74c8bdcc84ff0d33bc9acbc5eb257d732e61c6e33b23155 SHA512 413653f624f408aa438d5b4108ef748fae02938f7db8d075fb110cc9a09ed7b10b6d66c61dfdea38438028cc759f063d15c617274a424ee1294c2543f6b55fe8
|
||||
DIST kramdown-rfc2629-1.5.9.gem 49152 BLAKE2B 08250e69009d5f4ab1be51bb749d0e43d8b33c9142cbe4d0b63b7d3ca6e2d1e52631d31ac43477ad336607f6ed80232eb69db92835b584972e392327e7b86016 SHA512 b4644738ee2985cb0461ff13ac5575c8f8ad2eabb89cd68d8623f2fe5d164da7c80d665b7bfe4e74faea1a1a182aaecc30f572ff8ee56c9ff11c866879404cc5
|
||||
|
@ -1 +1,2 @@
|
||||
DIST vgrep-2.5.1.tar.gz 1355092 BLAKE2B 82b9da137400ede07b3fc2472168139385df8ee639aa0ba34832d20e437ac3da5a86f89fcc9139faa0ca3a037a358a50947b982473d114056483aaf9cfdde52e SHA512 97561ac933fa8a716c9205910d088bf0bb852f2d68ea2226e27e30b5885aabd37223ec4368d72cd0ae5c72735e273004bd054a2b633e61ecb7fd854254cfaecd
|
||||
DIST vgrep-2.5.2.tar.gz 1571753 BLAKE2B c3378fa11e9bb88fb8d63a380722603efa0725e2d43b69aafbb6ff8788abab441f1fbd3d0c946c922c8100863c185623b41aa76a04e81aab302b26d68f5956d7 SHA512 dc63647b995a21e75d9658efd7e9bcc4c706221ac249d0273cf6997eef832ba4a27f825126fb3fb4c65d724c75e27d04e9b5505b0b65c9b9b0022a49580011a6
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="A pager for grep, git-grep and similar grep implementations"
|
||||
HOMEPAGE="https://github.com/vrothberg/vgrep"
|
||||
SRC_URI="https://github.com/vrothberg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD GPL-3+ MIT MIT-with-advertising"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# golangci-lint is required to run tests which is not yet packaged
|
||||
RESTRICT="strip test"
|
||||
|
||||
BDEPEND="dev-go/go-md2man"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_compile() {
|
||||
emake build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${D}/usr" install
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST mariadb-connector-c-3.1.12-src.tar.gz 966702 BLAKE2B 8187199f43ccb6f92ea9df61a1f62e48dbef4744cda9a5e865f71038e47a65dea3ed094dd76d81d0d8d357a8d611a9770590a3504c297ea30f59f285ab511d17 SHA512 a46e8ec976c28e227a72f09c15c92126d178b422a92a4c90fd52c8053604c3309aeb3bd098dc63fbd0d87059d5360c8b63d76e61a1152e7a3e7145e13681453d
|
||||
DIST mariadb-connector-c-3.1.13-src.tar.gz 968401 BLAKE2B 4b7270c5e86e0a39773f38fbf1b4334ed9fdfca65432a5858b7e591fca5d6a68fd5a0eead96a6c9bfab22f49416d9c19c8a4c5c3fc328d16702c6051116e9a01 SHA512 a179a4fa689f681d64f926c1f3abfd3912896ec3e39c15be6a330647ded207aa2f110277dc43b90faffa4386365a72babc96264e29ac436e5d212d8b7cef7c32
|
||||
DIST mariadb-connector-c-3.2.3-src.tar.gz 992155 BLAKE2B 39f0c5f15c2b016e7708ca32f9f4c08ae87f52c38a1a6433ade66b03b9e2144744c559838c3c0bb98465b7e5c1d2f3d5678ee6b1197790c18740f990dbc82284 SHA512 0d45278ba55b3cda809d9d6c3d9726ec8b2f629c7da1205fcb936594ca6ea439039c02f484f7e31fca3e55288339c9bf64c06518988a8fed016c6ce544fac631
|
||||
DIST mariadb-connector-c-3.2.4-src.tar.gz 991053 BLAKE2B 7378ddb47e7cbb8b6bec4d7daa1572e05ca494cd1585fff8c3dc9fca088d11ca523a2571fdda570e7a68633a6cf753fca12ba6b505dbdfa7ee9c9cc07223d0b7 SHA512 3debf8b31f280d70ba4f163351658dc1d15f2d250e0d7098200516f96a782cb66ef38855b2436d3d23a3385f79309d5c41b05b8d7d673001de4b4a62555511ca
|
||||
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ "${PV}" == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/MariaDB/mariadb-connector-c.git"
|
||||
else
|
||||
MY_PN=${PN#mariadb-}
|
||||
MY_PV=${PV/_b/-b}
|
||||
SRC_URI="https://downloads.mariadb.com/Connectors/c/connector-c-${PV}/${P}-src.tar.gz"
|
||||
S="${WORKDIR%/}/${PN}-${MY_PV}-src"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
CMAKE_ECLASS=cmake
|
||||
inherit cmake-multilib toolchain-funcs
|
||||
|
||||
MULTILIB_CHOST_TOOLS=( /usr/bin/mariadb_config )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS+=(
|
||||
/usr/include/mariadb/mariadb_version.h
|
||||
)
|
||||
|
||||
DESCRIPTION="C client library for MariaDB/MySQL"
|
||||
HOMEPAGE="https://mariadb.org/"
|
||||
LICENSE="LGPL-2.1"
|
||||
|
||||
SLOT="0/3"
|
||||
IUSE="+curl gnutls kerberos +ssl static-libs test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="sys-libs/zlib:=[${MULTILIB_USEDEP}]
|
||||
virtual/libiconv:=[${MULTILIB_USEDEP}]
|
||||
curl? ( net-misc/curl:0=[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( || ( app-crypt/mit-krb5[${MULTILIB_USEDEP}]
|
||||
app-crypt/heimdal[${MULTILIB_USEDEP}] ) )
|
||||
ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-3.3.24:0=[${MULTILIB_USEDEP}] )
|
||||
!gnutls? (
|
||||
dev-libs/openssl:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/gentoo-layout-3.0.patch
|
||||
"${FILESDIR}"/${PN}-3.1.3-fix-pkconfig-file.patch
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
# bug 508724 mariadb cannot use ld.gold
|
||||
tc-ld-disable-gold
|
||||
|
||||
local mycmakeargs=(
|
||||
-DWITH_EXTERNAL_ZLIB=ON
|
||||
-DWITH_SSL:STRING=$(usex ssl $(usex gnutls GNUTLS OPENSSL) OFF)
|
||||
-DWITH_CURL=$(usex curl ON OFF)
|
||||
-DWITH_ICONV=ON
|
||||
-DCLIENT_PLUGIN_AUTH_GSSAPI_CLIENT:STRING=$(usex kerberos DYNAMIC OFF)
|
||||
-DMARIADB_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
||||
-DINSTALL_LIBDIR="$(get_libdir)"
|
||||
-DINSTALL_MANDIR=share/man
|
||||
-DINSTALL_PCDIR="$(get_libdir)/pkgconfig"
|
||||
-DINSTALL_PLUGINDIR="$(get_libdir)/mariadb/plugin"
|
||||
-DINSTALL_BINDIR=bin
|
||||
-DWITH_UNIT_TESTS=$(usex test ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.a" -delete || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST mydumper-0.10.3.tar.gz 64622 BLAKE2B 14020b6bbb72271659dec965de164274e2bf81c72b52fa7c1d6997f393d1c0cc977d06d689bb7d7c6e3da86926add2c61f1551afdd30be71ddc97c4803d4e455 SHA512 d7cf6897815de3d46ec15cbcacc393722f7d547300a45e70960e47b8ce30e06a5e652f52a0ff8999d2ac3662b4a48927aadbab464668ac23f446eee95ba574cf
|
||||
DIST mydumper-0.10.5.tar.gz 66399 BLAKE2B 77bba97580bcdb267d77be455f56831209a29b71389337c844e4e0cb37749dc22d000d3845e936f5d589951a21ad61bf19cd3b9084004a62aa1b33f16f81b5a0 SHA512 61127c4b9ae5a01111d431672ec3818a6c3db74704ac5db12d286e380273968b8b9e56298ac73eb6c1c32649875fd2ee01d099a73c99cb9c8d4604eaf0eedb09
|
||||
DIST mydumper-0.10.7-2.tar.gz 71660 BLAKE2B 44410294505beb9752bbd78b9235e2e75606b3423cf4966110732896c1f1934e94dc95554b7f17240e76fafbd0074415159ab89dca4e3f506c9da7bed2eba28d SHA512 6af4cc80a6faee410ed91367147e7cd32eec8a90d798d5cc10bc24090c945192f9d2e151bf8c24d8d593996d72eb93329557580419591bba980eba5efdeefcff
|
||||
DIST mydumper-0.11.1-3.tar.gz 77589 BLAKE2B 5b5a6965ee07fb265e2f3dad288195035554c02da49337ed008b01b6a5f5d399769e67c00f57f4531ed1a1b14233829f617f4bbfb45abb904f1f3054a41b0b01 SHA512 70f5e4dac5af4e016bfc85d8befa2eebbe9e5c1a6b2ee1ccbd491bed29e2625202aee7961ead41d0cf432b23e8ce06dfa4474587663b35fbbdd5bffabc32ae2e
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PV="$(ver_rs 3 -)"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A high-performance multi-threaded backup (and restore) toolset for MySQL"
|
||||
HOMEPAGE="https://github.com/maxbube/mydumper"
|
||||
SRC_URI="https://github.com/maxbube/mydumper/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="app-arch/zstd
|
||||
dev-db/mysql-connector-c:=
|
||||
dev-libs/glib:2
|
||||
dev-libs/libpcre
|
||||
dev-libs/openssl:=
|
||||
sys-libs/zlib:="
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.10.5-atomic.patch" #654314
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# respect user cflags; do not expand ${CMAKE_C_FLAGS} (!)
|
||||
sed -i -e 's|-Werror -O3 -g|${CMAKE_C_FLAGS}|' CMakeLists.txt || die
|
||||
|
||||
# fix doc install path
|
||||
sed -i -e "s|share/doc/mydumper|share/doc/${PF}|" docs/CMakeLists.txt || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(-DBUILD_DOCS=$(usex doc))
|
||||
|
||||
cmake_src_configure
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue