mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
Merge updates from master
This commit is contained in:
@@ -0,0 +1,233 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="regex"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit cmake flag-o-matic gnome2-utils guile-single python-single-r1
|
||||
|
||||
# Please bump with app-doc/gnucash-docs
|
||||
DESCRIPTION="A personal finance manager"
|
||||
HOMEPAGE="https://www.gnucash.org/"
|
||||
SRC_URI="https://github.com/Gnucash/gnucash/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
IUSE="aqbanking debug doc examples gnome-keyring +gui mysql nls ofx postgres python quotes smartcard sqlite test"
|
||||
|
||||
# Currently restricting due to the following:
|
||||
# https://bugs.gnucash.org/show_bug.cgi?id=799159#c1
|
||||
#
|
||||
# Tests can be run but must first unmerge any existing GnuCash installation.
|
||||
RESTRICT="test"
|
||||
|
||||
# Examples doesn't build unless GUI is also built
|
||||
REQUIRED_USE="
|
||||
${GUILE_REQUIRED_USE}
|
||||
examples? ( gui )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
smartcard? ( aqbanking )
|
||||
"
|
||||
|
||||
# dev-libs/boost must always be built with nls enabled.
|
||||
# net-libs/aqbanking dropped gtk with v6. So, to simplify the
|
||||
# dependency, we just rely on that.
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=dev-libs/glib-2.56.1:2
|
||||
>=sys-libs/zlib-1.1.4
|
||||
dev-libs/boost:=[icu,nls]
|
||||
dev-libs/icu:=
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/libxslt
|
||||
aqbanking? (
|
||||
>=net-libs/aqbanking-6[ofx?]
|
||||
>=sys-libs/gwenhywfar-5.6.0:=
|
||||
smartcard? ( sys-libs/libchipcard )
|
||||
)
|
||||
gnome-keyring? ( >=app-crypt/libsecret-0.18 )
|
||||
gui? (
|
||||
>=x11-libs/gtk+-3.22.30:3
|
||||
gnome-base/dconf
|
||||
net-libs/webkit-gtk:4.1=
|
||||
aqbanking? ( sys-libs/gwenhywfar:=[gtk] )
|
||||
)
|
||||
mysql? (
|
||||
dev-db/libdbi
|
||||
dev-db/libdbi-drivers[mysql]
|
||||
)
|
||||
ofx? ( >=dev-libs/libofx-0.9.12:= )
|
||||
postgres? (
|
||||
dev-db/libdbi
|
||||
dev-db/libdbi-drivers[postgres]
|
||||
)
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
quotes? (
|
||||
>=dev-perl/Finance-Quote-1.11
|
||||
dev-perl/JSON-Parse
|
||||
dev-perl/HTML-TableExtract
|
||||
)
|
||||
sqlite? (
|
||||
dev-db/libdbi
|
||||
dev-db/libdbi-drivers[sqlite]
|
||||
)
|
||||
"
|
||||
|
||||
# gtest is a required dep
|
||||
# see https://bugs.gnucash.org/show_bug.cgi?id=795250
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=sys-devel/gettext-0.20
|
||||
dev-lang/perl
|
||||
dev-perl/XML-Parser
|
||||
dev-build/libtool
|
||||
>=dev-cpp/gtest-1.8.0
|
||||
"
|
||||
# distutils is not available in python3.12, but it is still in setuptools
|
||||
BDEPEND="
|
||||
dev-lang/swig
|
||||
>=dev-build/cmake-3.10
|
||||
virtual/pkgconfig
|
||||
python? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
doc? (
|
||||
~app-doc/gnucash-docs-${PV}
|
||||
gnome-extra/yelp
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-5.0-exclude-license.patch"
|
||||
"${FILESDIR}/${PN}-4.12-drop-broken-test.patch"
|
||||
"${FILESDIR}/${PN}-5.6-no-werror.patch"
|
||||
|
||||
# This is only to prevent webkit2gtk-4 from being selected.
|
||||
# https://bugs.gentoo.org/893676
|
||||
"${FILESDIR}/${PN}-5.0-webkit2gtk-4.1.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
guile-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
guile_bump_sources
|
||||
|
||||
# ODR violation in libgnucash/engine/test/utest-Account.cpp and libgnucash/engine/test/utest-Split.cpp
|
||||
# with Fixture struct
|
||||
use test && filter-lto
|
||||
|
||||
# Fix tests writing to /tmp
|
||||
local fixtestfiles=(
|
||||
gnucash/report/test/test-report-html.scm
|
||||
gnucash/report/reports/standard/test/test-invoice.scm
|
||||
gnucash/report/reports/standard/test/test-new-owner-report.scm
|
||||
gnucash/report/reports/standard/test/test-owner-report.scm
|
||||
gnucash/report/reports/standard/test/test-transaction.scm
|
||||
gnucash/report/reports/standard/test/test-portfolios.scm
|
||||
gnucash/report/reports/standard/test/test-charts.scm
|
||||
gnucash/report/test/test-report.scm
|
||||
gnucash/report/test/test-commodity-utils.scm
|
||||
gnucash/report/test/test-report-extras.scm
|
||||
libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp
|
||||
libgnucash/backend/xml/test/test-xml-pricedb.cpp
|
||||
)
|
||||
for x in "${fixtestfiles[@]}"; do
|
||||
sed -i -e "s|\"/tmp/|\"${T}/|g" "${S}/${x}" || die "sed of ${S}/${x} failed"
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export GUILE_AUTO_COMPILE=0
|
||||
|
||||
local sql_on_off="OFF"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
sql_on_off="ON"
|
||||
fi
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCOMPILE_GSCHEMAS=OFF
|
||||
-DDISABLE_NLS=$(usex !nls)
|
||||
-DWITH_AQBANKING=$(usex aqbanking)
|
||||
-DWITH_GNUCASH=$(usex gui)
|
||||
-DWITH_OFX=$(usex ofx)
|
||||
-DWITH_PYTHON=$(usex python)
|
||||
-DWITH_SQL=${sql_on_off}
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LOCALE_TESTS=
|
||||
if type locale >/dev/null 2>&1; then
|
||||
MY_LOCALES="$(locale -a)"
|
||||
if [[ "${MY_LOCALES}" != *en_US* ||
|
||||
"${MY_LOCALES}" != *en_GB* ||
|
||||
"${MY_LOCALES}" != *fr_FR* ]] ; then
|
||||
ewarn "Missing one or more of en_US, en_GB, or fr_FR locales."
|
||||
else
|
||||
LOCALE_TESTS=true
|
||||
fi
|
||||
else
|
||||
ewarn "'locale' not found."
|
||||
fi
|
||||
|
||||
if [[ ! "${LOCALE_TESTS}" ]]; then
|
||||
ewarn "Disabling test-qof and test-gnc-numeric."
|
||||
echo 'set(CTEST_CUSTOM_TESTS_IGNORE test-qof test-gnc-numeric)' \
|
||||
> "${BUILD_DIR}"/CTestCustom.cmake || die "Failed to disable test-qof and test-gnc-numeric!"
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die "Failed to enter ${BUILD_DIR}"
|
||||
XDG_DATA_HOME="${T}/$(whoami)" eninja check
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
guile_unstrip_ccache
|
||||
|
||||
use examples && docompress -x /usr/share/doc/${PF}/examples
|
||||
|
||||
if use python ; then
|
||||
python_optimize
|
||||
python_optimize "${ED}"/usr/share/gnucash/python
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
fi
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gui ; then
|
||||
xdg_icon_cache_update
|
||||
gnome2_schemas_update
|
||||
fi
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
|
||||
inherit guile-single
|
||||
|
||||
DESCRIPTION="POSIX-compatible shell written in Guile Scheme"
|
||||
HOMEPAGE="https://savannah.nongnu.org/projects/gash/"
|
||||
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="strip"
|
||||
|
||||
REQUIRED_USE="${QUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="sys-apps/texinfo"
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
sed -i -e "s|guile|${GUILE}|" tests/temporary-assignments.org || die
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
|
||||
inherit guile-single flag-o-matic
|
||||
|
||||
MY_MAKE_BASE=$(ver_cut 1-2)
|
||||
MY_REMAKE_PATCH=$(ver_cut 4-)
|
||||
MY_P="${PN}-${MY_MAKE_BASE}+dbg-${MY_REMAKE_PATCH}"
|
||||
|
||||
DESCRIPTION="Patched version of GNU Make with improved error reporting, tracing and debugging"
|
||||
HOMEPAGE="http://bashdb.sourceforge.net/remake/"
|
||||
SRC_URI="https://github.com/rocky/remake/releases/download/${MY_P}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||
IUSE="guile readline"
|
||||
|
||||
REQUIRED_USE="guile? ( ${GUILE_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use guile && guile_bump_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Fixed in upstream make/gnulib, just not yet propagated into remake (bug #863827)
|
||||
filter-lto
|
||||
|
||||
use readline || export vl_cv_lib_readline=no
|
||||
econf $(use_with guile)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
# delete files GNU make owns and remake doesn't care about.
|
||||
rm -r "${ED}"/usr/include || die
|
||||
rm "${ED}"/usr/share/info/make.info* || die
|
||||
}
|
||||
@@ -0,0 +1,325 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging
|
||||
# tips & notes.
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit flag-o-matic guile-single python-single-r1 strip-linguas toolchain-funcs
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
case ${PV} in
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
;;
|
||||
*.*.50_p2???????|*.*.90_p2???????)
|
||||
# Weekly snapshots
|
||||
MY_PV="${PV/_p/.}"
|
||||
SRC_URI="
|
||||
https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz
|
||||
https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz
|
||||
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-weekly-${MY_PV}.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
# e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so it's fine
|
||||
if [[ ${PV} == *.[123456789].9?_p2??????? ]] ; then
|
||||
REGULAR_RELEASE=1
|
||||
fi
|
||||
;;
|
||||
*.*.9?)
|
||||
# Prereleases
|
||||
MY_PV="${PV/_p/.}"
|
||||
SRC_URI="
|
||||
https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz
|
||||
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-${MY_PV}.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="
|
||||
mirror://gnu/gdb/${P}.tar.xz
|
||||
https://sourceware.org/pub/gdb/releases/${P}.tar.xz
|
||||
"
|
||||
|
||||
REGULAR_RELEASE=1
|
||||
esac
|
||||
|
||||
PATCH_DEV=""
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="https://sourceware.org/gdb/"
|
||||
SRC_URI="
|
||||
${SRC_URI}
|
||||
${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${P}-patches-${PATCH_VER}.tar.xz}
|
||||
${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
|
||||
"
|
||||
|
||||
LICENSE="GPL-3+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
IUSE="cet debuginfod guile lzma multitarget nls +python +server sim source-highlight test vanilla xml xxhash zstd"
|
||||
if [[ -n ${REGULAR_RELEASE} ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/mpfr:=
|
||||
dev-libs/gmp:=
|
||||
>=sys-libs/ncurses-5.2-r2:=
|
||||
>=sys-libs/readline-7:=
|
||||
sys-libs/zlib
|
||||
elibc_glibc? ( net-libs/libnsl:= )
|
||||
debuginfod? (
|
||||
dev-libs/elfutils[debuginfod(-)]
|
||||
)
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
xml? ( dev-libs/expat )
|
||||
source-highlight? (
|
||||
dev-util/source-highlight
|
||||
)
|
||||
xxhash? (
|
||||
dev-libs/xxhash
|
||||
)
|
||||
zstd? ( app-arch/zstd:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
app-arch/xz-utils
|
||||
sys-apps/texinfo
|
||||
app-alternatives/yacc
|
||||
nls? ( sys-devel/gettext )
|
||||
source-highlight? ( virtual/pkgconfig )
|
||||
test? ( dev-util/dejagnu )
|
||||
"
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
MIN # gnulib FP (bug #898688)
|
||||
)
|
||||
|
||||
QA_PREBUILT="usr/share/gdb/guile/*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
|
||||
# Avoid using ancient termcap from host on Prefix systems
|
||||
sed -i -e 's/termcap tinfow/tinfow/g' \
|
||||
gdb/configure{.ac,} || die
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
|
||||
[[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
# See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html
|
||||
# Avoid really confusing logs from subconfigure spam, makes logs far
|
||||
# more legible.
|
||||
MAKEOPTS="--output-sync=line ${MAKEOPTS}"
|
||||
|
||||
local myconf=(
|
||||
# portage's econf() does not detect presence of --d-d-t
|
||||
# because it greps only top-level ./configure. But not
|
||||
# libiberty's or gdb's configure.
|
||||
--disable-dependency-tracking
|
||||
--disable-silent-rules
|
||||
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='https://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. bug #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,gprofng,ld}
|
||||
|
||||
$(use_with debuginfod)
|
||||
|
||||
$(use_enable test unit-tests)
|
||||
|
||||
# Allow user to opt into CET for host libraries.
|
||||
# Ideally we would like automagic-or-disabled here.
|
||||
# But the check does not quite work on i686: bug #760926.
|
||||
$(use_enable cet)
|
||||
|
||||
# Helps when cross-compiling. Not to be confused with --with-sysroot.
|
||||
--with-build-sysroot="${ESYSROOT}"
|
||||
)
|
||||
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="\${prefix}/${CTARGET}"
|
||||
--includedir="\${prefix}/include/${CTARGET}"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on, which is triggered
|
||||
# whenever no --enable or --disable is given
|
||||
if is_cross || use !server ; then
|
||||
myconf+=( --disable-gdbserver )
|
||||
fi
|
||||
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
--enable-obsolete
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
# This only disables building in the zlib subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--without-zlib
|
||||
--with-system-zlib
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with xml expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use_enable sim)
|
||||
$(use_enable source-highlight)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with xxhash)
|
||||
$(use_with guile)
|
||||
$(use_with zstd)
|
||||
|
||||
# Find libraries using the toolchain sysroot rather than the configured
|
||||
# prefix. Needed when cross-compiling.
|
||||
#
|
||||
# Check which libraries to apply this to with:
|
||||
# "${S}"/gdb/configure --help | grep without-lib | sort
|
||||
--without-lib{babeltrace,expat,gmp,iconv,ipt,lzma,mpfr,xxhash}-prefix
|
||||
)
|
||||
|
||||
# source-highlight is detected with pkg-config: bug #716558
|
||||
export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)"
|
||||
|
||||
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||
|
||||
# ensure proper compiler is detected for Clang builds: bug #831202
|
||||
export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}"
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Run the unittests (nabbed invocation from Fedora's spec file) at least
|
||||
emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"'
|
||||
|
||||
# Too many failures
|
||||
# In fact, gdb's test suite needs some work to get passing.
|
||||
# See e.g. https://sourceware.org/gdb/wiki/TestingGDB.
|
||||
# As of 11.2, on amd64: "# of unexpected failures 8600"
|
||||
# Also, ia64 kernel crashes when gdb testsuite is running.
|
||||
#emake -k check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
find "${ED}"/usr -name libiberty.a -delete || die
|
||||
|
||||
# Delete translations that conflict with binutils-libs. bug #528088
|
||||
# Note: Should figure out how to store these in an internal gdb dir.
|
||||
if use nls ; then
|
||||
find "${ED}" \
|
||||
-regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
|
||||
-delete || die
|
||||
fi
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -rf "${ED}"/usr/share/{doc,info,locale} || die
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Install it by hand for now:
|
||||
# https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay
|
||||
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/{MAINTAINERS,README-HACKING}
|
||||
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdbserver/README
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info*
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
if use python ; then
|
||||
python_optimize "${ED}"/usr/share/gdb/python/gdb
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Portage doesn't unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
@@ -6,8 +6,9 @@ EAPI=8
|
||||
# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging
|
||||
# tips & notes.
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit flag-o-matic python-single-r1 strip-linguas toolchain-funcs
|
||||
inherit flag-o-matic guile-single python-single-r1 strip-linguas toolchain-funcs
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
@@ -76,7 +77,10 @@ IUSE="cet debuginfod guile lzma multitarget nls +python +server sim source-highl
|
||||
if [[ -n ${REGULAR_RELEASE} ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
@@ -91,7 +95,7 @@ RDEPEND="
|
||||
)
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
guile? ( >=dev-scheme/guile-2.0 )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
xml? ( dev-libs/expat )
|
||||
source-highlight? (
|
||||
dev-util/source-highlight
|
||||
@@ -115,17 +119,22 @@ QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
MIN # gnulib FP (bug #898688)
|
||||
)
|
||||
|
||||
QA_PREBUILT="usr/share/gdb/guile/*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
|
||||
# Avoid using ancient termcap from host on Prefix systems
|
||||
@@ -303,6 +312,8 @@ src_install() {
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info*
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
if use python ; then
|
||||
python_optimize "${ED}"/usr/share/gdb/python/gdb
|
||||
fi
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
DIST akku-v1.1.0.tar.bz2 415934 BLAKE2B 71bed28261307e0bff9f0c277795c8b6b4621d13385dc21290408ee189467b15a6e9cd607522b5881328ab8c9e99331e76846d7cf1e2c655b7591dc06294de22 SHA512 8eb61db9196ba95aa6f45acab609e2daf31d52245907ce49c2d2e2d34ee9b2da91baefd3bb2600d0e215bbcefc5e08a0f51555e362d726d7b1fc988215df6ad6
|
||||
DIST akku-v1.1.0.tar.gz 492996 BLAKE2B 7e3d549ed7f7fc0b6e84a41ff03d66398d2a464d6aa65dc92780a2b657d4476fef592543fba0fefe0da8ee429d97d4dcc0cf13ecd53c7be425b3f292b7b1c93d SHA512 e728bd80aaa21ca896e054e71a17ee519608b7c436f9613c688dba666f0120562174b7dca3156299528c1063a74e8faa8b8a77d1b7166d7506dec6b51d555825
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Language package manager for Scheme"
|
||||
HOMEPAGE="https://akkuscm.org/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.com/akkuscm/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://gitlab.com/akkuscm/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
# tests require network access
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
net-misc/curl[ssl]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Installs into its own path
|
||||
# https://gitlab.com/akkuscm/akku/-/commit/d25da297fec2a2b16427359a2cbb0ec745dd8c58
|
||||
QA_PREBUILT="usr/*/${PN}/guile/*/site-ccache/*"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
touch bootstrap.db || die
|
||||
|
||||
guile_src_compile
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Structured access to bytevector contents"
|
||||
HOMEPAGE="https://github.com/TaylanUB/scheme-bytestructures/"
|
||||
SRC_URI="https://github.com/TaylanUB/scheme-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/scheme-${P}"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
[[ ${PV} == *_p20230522 ]] && COMMIT=83712f630a976e3084329c9917c40bde19fcc7e5
|
||||
|
||||
DESCRIPTION="Lightweight concurrency facility for Guile Scheme"
|
||||
HOMEPAGE="https://github.com/wingo/fibers/
|
||||
https://github.com/wingo/fibers/wiki/Manual/"
|
||||
SRC_URI="https://github.com/wingo/${PN}/archive/${COMMIT}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${COMMIT}
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
guile_foreach_impl econf --disable-Werror
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="Small process-control library for Guile"
|
||||
HOMEPAGE="http://arglist.com/guile/"
|
||||
SRC_URI="http://arglist.com/guile/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~riscv ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
BDEPEND="${RDEPEND}"
|
||||
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="Colorized REPL for GNU Guile"
|
||||
HOMEPAGE="https://gitlab.com/NalaGinrut/guile-colorized/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.com/NalaGinrut/${PN}.git"
|
||||
else
|
||||
# Latest release (before this commit from 2019) was in 2015
|
||||
COMMIT_SHA="1625a79f0e31849ebd537e2a58793fb45678c58f"
|
||||
SRC_URI="https://gitlab.com/NalaGinrut/${PN}/-/archive/${COMMIT_SHA}.tar.bz2 -> ${P}.tar.bz2"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/${PN}-${COMMIT_SHA}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
my_install() {
|
||||
local loadpath=$(${GUILE} -c '(display (string-append (car %load-path) "/ice-9"))')
|
||||
mkdir -p "${SLOTTED_D}${loadpath}" || die
|
||||
emake -C "${S}" TARGET="${SLOTTED_D}${loadpath}" install
|
||||
}
|
||||
guile_foreach_impl my_install
|
||||
guile_merge_roots
|
||||
guile_unstrip_ccache
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
@@ -1,8 +1,11 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="Colorized REPL for GNU Guile"
|
||||
HOMEPAGE="https://gitlab.com/NalaGinrut/guile-colorized/"
|
||||
|
||||
@@ -20,20 +23,20 @@ fi
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=dev-scheme/guile-2.0.9:="
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112
|
||||
find "${S}" -name "*.scm" -exec touch {} + || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
my_install() {
|
||||
local loadpath=$(${GUILE} -c '(display (string-append (car %load-path) "/ice-9"))')
|
||||
mkdir -p "${SLOTTED_D}${loadpath}" || die
|
||||
emake -C "${S}" TARGET="${SLOTTED_D}${loadpath}" install
|
||||
}
|
||||
guile_foreach_impl my_install
|
||||
guile_merge_roots
|
||||
guile_unstrip_ccache
|
||||
|
||||
local loadpath=$(guile -c '(display (string-append (car %load-path) "/ice-9"))')
|
||||
mkdir -p "${D}${loadpath}"
|
||||
emake TARGET="${D}${loadpath}" install
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile application configuration parsing library"
|
||||
HOMEPAGE="https://gitlab.com/a-sassmannshausen/guile-config/"
|
||||
SRC_URI="https://gitlab.com/a-sassmannshausen/${PN}/-/archive/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
|
||||
DIST guile-dbi-2.1.9.tar.gz 90514 BLAKE2B f4adeb33636972c33f5bdb40c906713b35bec4b1d3afc9fbcd55d74d1d5a957b524bbefeb04e9e5ff1cd17e6a40e218d84220f8eaeeaee09bf67604fa1e87e18 SHA512 2f6ec4c792b487b2552eda06b3ee3e470ae0e603e30abafacfb597281a44c53838d7b16d447cf1ee35f9b994c5b0ed1bbf3497eb1e64e783017898e30d82d427
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile DBI driver for PostgreSQL"
|
||||
HOMEPAGE="https://github.com/opencog/guile-dbi/"
|
||||
SRC_URI="https://github.com/opencog/guile-dbi/archive/guile-dbi-${PV}.tar.gz"
|
||||
S="${WORKDIR}"/guile-dbi-guile-dbi-${PV}/${PN}
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-db/postgresql:*
|
||||
>=dev-scheme/guile-dbi-2.1.9[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
|
||||
DIST guile-dbi-2.1.9.tar.gz 90514 BLAKE2B f4adeb33636972c33f5bdb40c906713b35bec4b1d3afc9fbcd55d74d1d5a957b524bbefeb04e9e5ff1cd17e6a40e218d84220f8eaeeaee09bf67604fa1e87e18 SHA512 2f6ec4c792b487b2552eda06b3ee3e470ae0e603e30abafacfb597281a44c53838d7b16d447cf1ee35f9b994c5b0ed1bbf3497eb1e64e783017898e30d82d427
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile DBI driver for SQLite"
|
||||
HOMEPAGE="https://github.com/opencog/guile-dbi/"
|
||||
SRC_URI="https://github.com/opencog/guile-dbi/archive/guile-dbi-${PV}.tar.gz"
|
||||
S="${WORKDIR}"/guile-dbi-guile-dbi-${PV}/${PN}
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-db/sqlite:3=
|
||||
>=dev-scheme/guile-dbi-2.1.9[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
|
||||
DIST guile-dbi-2.1.9.tar.gz 90514 BLAKE2B f4adeb33636972c33f5bdb40c906713b35bec4b1d3afc9fbcd55d74d1d5a957b524bbefeb04e9e5ff1cd17e6a40e218d84220f8eaeeaee09bf67604fa1e87e18 SHA512 2f6ec4c792b487b2552eda06b3ee3e470ae0e603e30abafacfb597281a44c53838d7b16d447cf1ee35f9b994c5b0ed1bbf3497eb1e64e783017898e30d82d427
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
https://github.com/opencog/guile-dbi/commit/56e12dcab139c373dafccdd72fa2a140d82f3910
|
||||
https://github.com/opencog/guile-dbi/issues/6
|
||||
https://github.com/opencog/guile-dbi/issues/7
|
||||
|
||||
From 56e12dcab139c373dafccdd72fa2a140d82f3910 Mon Sep 17 00:00:00 2001
|
||||
From: Linas Vepstas <linas@linas.org>
|
||||
Date: Mon, 17 Jul 2023 19:42:45 +0300
|
||||
Subject: [PATCH] Bug-fix for issues #6 and #7
|
||||
|
||||
Seems to work for me...
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -53,13 +53,13 @@ LTDL_INIT
|
||||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_MODULES([GUILE], [guile-3.0])
|
||||
-#GUILE_PKG([3.0])
|
||||
-#GUILE_FLAGS
|
||||
-#GUILE_SITE_DIR
|
||||
+GUILE_PKG([3.0])
|
||||
+GUILE_FLAGS
|
||||
+GUILE_SITE_DIR
|
||||
#--
|
||||
-#CFLAGS="${CFLAGS} ${LTDLINCL} `$GUILECONFIG compile`"
|
||||
-#LIBS="$LIBLTDL `$GUILECONFIG link`"
|
||||
-#GUILE_SITE=`$GUILECONFIG info sitedir`
|
||||
+CFLAGS="${CFLAGS} ${LTDLINCL} `$GUILE_CONFIG compile`"
|
||||
+LIBS="$LIBLTDL `$GUILE_CONFIG link`"
|
||||
+GUILE_SITE=`$GUILE_CONFIG info sitedir`
|
||||
|
||||
# Check for makeinfo; avoid ugliness if not installed.
|
||||
AC_CHECK_PROG(have_makeinfo,makeinfo,yes,no)
|
||||
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="An SQL database interface for Guile"
|
||||
HOMEPAGE="https://github.com/opencog/guile-dbi/"
|
||||
SRC_URI="https://github.com/opencog/${PN}/archive/${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${P}/${PN}
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/libltdl
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/guile-dbi-2.1.9-find-correct-site-dir.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile bindings of libgcrypt"
|
||||
HOMEPAGE="https://notabug.org/cwebber/guile-gcrypt"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://notabug.org/cwebber/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://notabug.org/cwebber/guile-gcrypt/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/libgcrypt:0=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
https://bugs.gentoo.org/880955
|
||||
|
||||
Based on https://github.com/spk121/guile-gi/commit/94144d0beffa96bf62c03bc71b498b94dafacc46
|
||||
|
||||
--- a/src/gig_callback.c
|
||||
+++ b/src/gig_callback.c
|
||||
@@ -296,6 +296,12 @@ callback_binding_inner(struct callback_binding_args *args)
|
||||
return (void *)1;
|
||||
}
|
||||
|
||||
+inline static void *
|
||||
+callback_binding_inner_v(void *args)
|
||||
+{
|
||||
+ return callback_binding_inner(args);
|
||||
+}
|
||||
+
|
||||
void
|
||||
callback_binding(ffi_cif *cif, gpointer ret, gpointer *ffi_args, gpointer user_data)
|
||||
{
|
||||
@@ -314,7 +320,7 @@ callback_binding(ffi_cif *cif, gpointer ret, gpointer *ffi_args, gpointer user_d
|
||||
if (scm_is_true(scm_fluid_ref(gig_callback_thread_fluid)))
|
||||
callback_binding_inner(&args);
|
||||
else {
|
||||
- if (NULL == scm_with_guile(callback_binding_inner, &args))
|
||||
+ if (NULL == scm_with_guile(callback_binding_inner_v, &args))
|
||||
scm_c_eval_string("(quit EXIT_FAILURE)");
|
||||
}
|
||||
}
|
||||
@@ -365,6 +371,12 @@ c_callback_binding_inner(struct callback_binding_args *args)
|
||||
return (void *)1;
|
||||
}
|
||||
|
||||
+inline static void *
|
||||
+c_callback_binding_inner_v(void *args)
|
||||
+{
|
||||
+ return c_callback_binding_inner(args);
|
||||
+}
|
||||
+
|
||||
void
|
||||
c_callback_binding(ffi_cif *cif, gpointer ret, gpointer *ffi_args, gpointer user_data)
|
||||
{
|
||||
@@ -383,7 +395,7 @@ c_callback_binding(ffi_cif *cif, gpointer ret, gpointer *ffi_args, gpointer user
|
||||
if (scm_is_true(scm_fluid_ref(gig_callback_thread_fluid)))
|
||||
c_callback_binding_inner(&args);
|
||||
else {
|
||||
- if (NULL == scm_with_guile(c_callback_binding_inner, &args))
|
||||
+ if (NULL == scm_with_guile(c_callback_binding_inner_v, &args))
|
||||
scm_c_eval_string("(quit EXIT_FAILURE)");
|
||||
}
|
||||
}
|
||||
@@ -692,10 +704,16 @@ callback_free(GigCallback *gcb)
|
||||
g_free(gcb);
|
||||
}
|
||||
|
||||
+inline static void
|
||||
+callback_free_v(void *gcb)
|
||||
+{
|
||||
+ callback_free(gcb);
|
||||
+}
|
||||
+
|
||||
static void
|
||||
gig_fini_callback(void)
|
||||
{
|
||||
g_debug("Freeing callbacks");
|
||||
- g_slist_free_full(callback_list, (GDestroyNotify)callback_free);
|
||||
+ g_slist_free_full(callback_list, (GDestroyNotify)callback_free_v);
|
||||
callback_list = NULL;
|
||||
}
|
||||
--- a/src/gig_type_private.c
|
||||
+++ b/src/gig_type_private.c
|
||||
@@ -59,8 +59,14 @@ _boxed_funcs_free(GigBoxedFuncs *funcs)
|
||||
g_free(funcs);
|
||||
}
|
||||
|
||||
+inline static void
|
||||
+_boxed_funcs_free_v(void *funcs)
|
||||
+{
|
||||
+ _boxed_funcs_free(funcs);
|
||||
+}
|
||||
+
|
||||
void
|
||||
_free_boxed_funcs()
|
||||
{
|
||||
- g_slist_free_full(_boxed_funcs, (GDestroyNotify)_boxed_funcs_free);
|
||||
+ g_slist_free_full(_boxed_funcs, (GDestroyNotify)_boxed_funcs_free_v);
|
||||
}
|
||||
--
|
||||
2.46.0
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit virtualx autotools guile
|
||||
|
||||
DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile"
|
||||
HOMEPAGE="https://spk121.github.io/guile-gi/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/spk121/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/spk121/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USED="${GUILE_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/gobject-introspection
|
||||
x11-libs/gtk+:3[introspection]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="sys-apps/texinfo"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/guile-gi-0.3.2-function-cast.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
guile_foreach_impl econf --enable-introspection=yes
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
my_compile() {
|
||||
mkdir test || die
|
||||
default
|
||||
}
|
||||
guile_foreach_impl my_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
guile_foreach_impl virtx default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit virtualx autotools
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit virtualx autotools guile
|
||||
|
||||
DESCRIPTION="Bindings for GObject Introspection and libgirepository for Guile"
|
||||
HOMEPAGE="https://spk121.github.io/guile-gi/"
|
||||
@@ -19,42 +20,45 @@ fi
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USED="${GUILE_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
>=dev-scheme/guile-2.0.9:=
|
||||
${GUILE_DEPS}
|
||||
dev-libs/gobject-introspection
|
||||
x11-libs/gtk+:3[introspection]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="sys-apps/texinfo"
|
||||
|
||||
# guile generates ELF files without use of C or machine code
|
||||
# It's a portage's false positive. bug #677600
|
||||
QA_PREBUILT='*[.]go'
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/guile-gi-0.3.2-function-cast.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112
|
||||
find "${S}" -name "*.scm" -exec touch {} + || die
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static --enable-introspection=yes
|
||||
guile_foreach_impl econf --enable-introspection=yes
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
my_compile() {
|
||||
mkdir test || die
|
||||
default
|
||||
}
|
||||
guile_foreach_impl my_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx default
|
||||
guile_foreach_impl virtx default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
guile_src_install
|
||||
|
||||
mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
|
||||
mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
|
||||
# Workaround llvm-strip problem of mangling guile ELF debug
|
||||
# sections. Bug https://bugs.gentoo.org/905898
|
||||
dostrip -x /usr/$(get_libdir)/guile
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile bindings of git"
|
||||
HOMEPAGE="https://gitlab.com/guile-git/guile-git/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/${PN}/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://gitlab.com/${PN}/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
# <libgit2-1.8.0: https://gitlab.com/guile-git/guile-git/-/issues/30
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
<dev-libs/libgit2-1.8.0:=
|
||||
>=dev-libs/libgit2-1.3.0:=
|
||||
>=dev-scheme/bytestructures-2.0.2-r100[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
# network sandbox + ssh configuration
|
||||
sed -i -e '/tests\/clone.scm/d' Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_test() {
|
||||
guile_foreach_impl emake VERBOSE="1" check
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile-GnuTLS provides Guile bindings for the GnuTLS library"
|
||||
HOMEPAGE="https://gnutls.gitlab.io/guile/manual/
|
||||
https://gitlab.com/gnutls/guile/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/gnutls/guile.git"
|
||||
else
|
||||
SRC_URI="https://gitlab.com/gnutls/guile/-/archive/v${PV}/guile-v${PV}.tar.bz2
|
||||
-> ${P}.tar.bz2"
|
||||
S="${WORKDIR}/guile-v${PV}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
# <gnutls-3.8.4: https://bugs.gentoo.org/930665 https://gitlab.com/gnutls/guile/-/issues/25
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
<net-libs/gnutls-3.8.4:=[-guile(-)]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
my_configure() {
|
||||
# --disable-srp-authentication: bug #894050
|
||||
econf --disable-srp-authentication guile_snarf=${GUILESNARF}
|
||||
}
|
||||
guile_foreach_impl my_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile tooling to create and publish projects"
|
||||
HOMEPAGE="https://gitlab.com/a-sassmannshausen/guile-hall/"
|
||||
SRC_URI="https://gitlab.com/a-sassmannshausen/${PN}/-/archive/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=dev-scheme/guile-config-0.5.1-r100[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
sed -i -e "s|@verbatiminclude |@verbatiminclude ${S}/|" doc/hall.texi || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="JSON module for Guile"
|
||||
HOMEPAGE="https://savannah.nongnu.org/projects/guile-json/"
|
||||
SRC_URI="http://download.savannah.nongnu.org/releases/guile-json/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
@@ -1 +1,2 @@
|
||||
DIST guile-lib-0.2.7.tar.gz 451202 BLAKE2B d8420a718697611443a40af089aad6e1d48390e5bef764f84955beeec8d6346066547d73c30898b96e727d4f470df6a032438067240bba8b25058bc65b85d9fa SHA512 d27d1398f81172e4488c5ac5c2d076baeeeaa12fa19d83a87faf0767c255b79f8eb24438950da3865e797299be90f7dc1dcc964076d53df9cab5925a61ad0d1f
|
||||
DIST guile-lib-0.2.8.1.tar.gz 461345 BLAKE2B 10fe6a3c93ffd09fd92ad43b7cdd5cf949e3f9f11ce2aebd3c28b5227345041ee4a15c8bf1bb26c5a12423fbde65e950707bd0f43ee5787e4fe2853c6c56f4f9 SHA512 655c559c19beb008016fb3f313184c0da83f6dad53987045648cdb84bbca05f839b1a31c3cd12727510f51511c7d248d16438d87113cf8e99134925a2ad64312
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="An accumulation place for pure-scheme Guile modules"
|
||||
HOMEPAGE="http://www.nongnu.org/guile-lib/"
|
||||
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRES_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
sed -i -e 's/"guile"/(getenv "GUILE")/' unit-tests/os.process.scm || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
guile_foreach_impl econf --with-guile-site=yes
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit edo guile
|
||||
|
||||
[[ ${PV} == 20211124 ]] && COMMIT=2bdacb72a65ab63264b2edc9dac9692df7ec9b3e
|
||||
|
||||
DESCRIPTION="Simple yaml module for Guile using the ffi-helper from nyacc"
|
||||
HOMEPAGE="https://github.com/mwette/guile-libyaml/"
|
||||
SRC_URI="https://github.com/mwette/${PN}/archive/${COMMIT}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${COMMIT}
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/libyaml
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-scheme/guile-nyacc"
|
||||
|
||||
src_compile() {
|
||||
my_compile() {
|
||||
guild() {
|
||||
GUILE_LOAD_COMPILED_PATH="${BUILD_DIR}" GUILE_LOAD_PATH="${S}" edo "${GUILD}" "${@}" || die
|
||||
}
|
||||
# Generate bindings using NYACC
|
||||
guild compile-ffi --no-exec "${S}"/yaml/libyaml.ffi
|
||||
|
||||
# Compile modules
|
||||
mkdir -p "${BUILD_DIR}"/ccache || die
|
||||
guild compile -o "${BUILD_DIR}"/ccache/libyaml.go "${S}"/yaml/libyaml.scm
|
||||
guild compile -o "${BUILD_DIR}"/ccache/yaml.go "${S}"/yaml.scm
|
||||
}
|
||||
|
||||
guile_foreach_impl my_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
my_install() {
|
||||
local site_dir="$(${GUILE} -c '(display (%site-dir))')"
|
||||
mkdir -p "${SLOTTED_D}/${site_dir}/yaml" || die
|
||||
cp "${S}/yaml/libyaml.scm" "${SLOTTED_D}/${site_dir}/yaml/" || die
|
||||
cp "${S}/yaml.scm" "${SLOTTED_D}/${site_dir}/" || die
|
||||
|
||||
local site_ccache_dir="$(${GUILE} -c '(display (%site-ccache-dir))')"
|
||||
mkdir -p "${SLOTTED_D}/${site_ccache_dir}/yaml" || die
|
||||
cp "${BUILD_DIR}/ccache/libyaml.go" "${SLOTTED_D}/${site_ccache_dir}/yaml/" || die
|
||||
cp "${BUILD_DIR}/ccache/yaml.go" "${SLOTTED_D}/${site_ccache_dir}/" || die
|
||||
}
|
||||
|
||||
guile_foreach_impl my_install
|
||||
guile_merge_roots
|
||||
guile_unstrip_ccache
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="GNU Guile library providing bindings to lzlib"
|
||||
HOMEPAGE="https://notabug.org/guile-lzlib/guile-lzlib/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://notabug.org/${PN}/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://notabug.org/${PN}/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
app-arch/lzlib
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog HACKING NEWS README.org )
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile FFI to ncurses library for text-based console UI"
|
||||
HOMEPAGE="https://www.gnu.org/software/guile-ncurses/"
|
||||
SRC_URI="mirror://gnu/guile-ncurses/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/boehm-gc
|
||||
dev-libs/libatomic_ops
|
||||
dev-libs/libunistring
|
||||
sys-libs/ncurses:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="sys-apps/texinfo"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.0-slibtool.patch # bug #843416
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
# Remove bad tests
|
||||
# > In procedure list-ref: Wrong type argument in position 1: #f
|
||||
local -a bad_tests=(
|
||||
curs_attr_attr_off_underline
|
||||
curs_attr_attr_on_blink
|
||||
curs_attr_attr_on_bold
|
||||
curs_attr_attr_on_dim
|
||||
curs_attr_attr_on_invis
|
||||
curs_attr_attr_on_protect
|
||||
curs_attr_attr_on_reverse
|
||||
curs_attr_attr_on_standout
|
||||
curs_attr_attr_on_underline
|
||||
curs_attr_attr_set
|
||||
curs_attr_attr_set_normal
|
||||
curs_attr_standend
|
||||
curs_attr_standout
|
||||
curs_bkgd_bkgd
|
||||
curs_bkgd_bkgdset
|
||||
termios_speed
|
||||
)
|
||||
local bad_test
|
||||
for bad_test in "${bad_tests[@]}" ; do
|
||||
echo "#t" > test/${bad_test}.scm || die
|
||||
done
|
||||
|
||||
eautoreconf # 843560
|
||||
}
|
||||
|
||||
src_test() {
|
||||
guile_foreach_impl emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile
|
||||
|
||||
DESCRIPTION="Guile modules for generating parsers and lexical analyzers"
|
||||
HOMEPAGE="http://www.nongnu.org/nyacc/"
|
||||
SRC_URI="mirror://nongnu/nyacc/nyacc-${PV}.tar.gz"
|
||||
S="${WORKDIR}/nyacc-${PV}"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=dev-scheme/bytestructures-2.0.2-r100[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
# Fix docs location
|
||||
mv "${ED}"/usr/share/doc/nyacc "${ED}"/usr/share/doc/${PF} || die
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Guile bindings of sqlite3"
|
||||
HOMEPAGE="https://notabug.org/guile-sqlite3/guile-sqlite3"
|
||||
SRC_URI="https://notabug.org/guile-sqlite3/guile-sqlite3/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="LGPL-3+ GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-db/sqlite:3=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
# upstream tag on top of source tree. has no autogenerated files
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="Library providing access to the SSH protocol for GNU Guile"
|
||||
HOMEPAGE="https://memory-heap.org/~avp/projects/guile-ssh/
|
||||
https://github.com/artyom-poptsov/guile-ssh/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/artyom-poptsov/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/artyom-poptsov/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/boehm-gc
|
||||
dev-libs/libatomic_ops
|
||||
net-libs/libssh:0=[server,sftp]
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.16.2-tests.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
my_configure() {
|
||||
econf guile_snarf=${GUILESNARF}
|
||||
}
|
||||
guile_foreach_impl my_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="GNU Guile library providing bindings to zlib"
|
||||
HOMEPAGE="https://notabug.org/guile-zlib/guile-zlib/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://notabug.org/${PN}/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://notabug.org/${PN}/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=sys-libs/zlib-1.3-r4
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog HACKING NEWS README.org )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.1.0-gentoo.patch" )
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile
|
||||
|
||||
DESCRIPTION="GNU Guile bindings to the zstd compression library"
|
||||
HOMEPAGE="https://notabug.org/guile-zstd/guile-zstd/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://notabug.org/${PN}/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://notabug.org/${PN}/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USED="${GUILE_REQUIRED_USE}"
|
||||
|
||||
# In zstd-1.5.5-r1 library was moved back from "/lib" to "/usr/lib".
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=app-arch/zstd-1.5.5-r1
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
guile_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit elisp-common guile
|
||||
|
||||
DESCRIPTION="Document production tool written in Guile Scheme"
|
||||
HOMEPAGE="https://www.nongnu.org/skribilo/"
|
||||
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="emacs"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
app-text/ghostscript-gpl
|
||||
media-gfx/imagemagick
|
||||
|
||||
${GUILE_DEPS}
|
||||
>=dev-scheme/guile-lib-0.2.7-r100[${GUILE_USEDEP}]
|
||||
>=dev-scheme/guile-reader-0.6.3-r100[${GUILE_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="emacs? ( >=app-editors/emacs-23.1:* )"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# gnustep-base/gnustep-base installs /usr/bin/pl that isnt the unpackaged ploticus.
|
||||
sed -i -e 's/for ac_prog in ploticus pl/for ac_prog in ploticus/' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if ! use emacs ; then
|
||||
export EMACS="no"
|
||||
export EMACSLOADPATH="/dev/null"
|
||||
fi
|
||||
|
||||
guile_foreach_impl econf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
guile_src_compile
|
||||
|
||||
use emacs && elisp-compile ./emacs/*.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
# Link includes DESTDIR
|
||||
for file in ${ED}/usr/share/info/*.png; do
|
||||
rm "${file}" || die
|
||||
dosym ../doc/${PF}/html/$(basename ${file}) ${file##${ED}}
|
||||
done
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} ./emacs/*.el{,c}
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
else
|
||||
local emacsd="${D}"/usr/share/emacs
|
||||
if [[ -d "${emacsd}" ]] ; then
|
||||
einfo "Building without Emacs support but ${emacsd} found! Removing."
|
||||
rm -r "${emacsd}" || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit guile-single
|
||||
|
||||
DESCRIPTION="Displays names/values of XDG Basedir variables"
|
||||
HOMEPAGE="https://www.gnuvola.org/software/xdgdirs/"
|
||||
SRC_URI="https://www.gnuvola.org/software/xdgdirs/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${GUILE_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
# fix shebang
|
||||
sed -i -e "/exec/ s|guile|${GUILE}|" xdgdirs.in || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# breaks diffs for tests if not disabled
|
||||
local -x GUILE_AUTO_COMPILE=0
|
||||
|
||||
emake check
|
||||
}
|
||||
+2
-1
@@ -190,8 +190,9 @@ _guile_multibuild_wrapper() {
|
||||
local -x SLOTTED_ED="${SLOTTED_D}${EPREFIX}/"
|
||||
local -x GUILE_EFFECTIVE_VERSION="${GUILE_CURRENT_VERSION}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
"$@"
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
# @VARIABLE: SLOTTED_D
|
||||
|
||||
@@ -0,0 +1,230 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
inherit guile-single libtool python-single-r1
|
||||
|
||||
DESCRIPTION="Open Source Graph Visualization Software"
|
||||
HOMEPAGE="https://www.graphviz.org/ https://gitlab.com/graphviz/graphviz/"
|
||||
# Unfortunately upstream uses an "artifact" store for the pre-generated
|
||||
# tarball now, which makes predictable URLs impossible.
|
||||
SRC_URI="https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="CPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="+cairo devil doc examples gtk2 gts guile lasi nls pdf perl postscript python qt5 ruby svg tcl webp X"
|
||||
|
||||
REQUIRED_USE="
|
||||
!cairo? ( !X !gtk2 !postscript !lasi )
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
pdf? ( cairo )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# Requires ksh, tests against installed package, missing files and directory
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/expat-2
|
||||
>=dev-libs/glib-2.11.1:2
|
||||
dev-libs/libltdl
|
||||
>=media-libs/freetype-2.1.10
|
||||
>=media-libs/gd-2.0.34:=[fontconfig,jpeg,png,truetype,zlib]
|
||||
media-libs/libjpeg-turbo:=
|
||||
>=media-libs/libpng-1.2:=
|
||||
sys-libs/zlib
|
||||
virtual/libiconv
|
||||
cairo? (
|
||||
>=x11-libs/cairo-1.1.10[svg(+)]
|
||||
>=x11-libs/pango-1.12
|
||||
)
|
||||
devil? ( media-libs/devil[png,jpeg] )
|
||||
gtk2? (
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:2
|
||||
)
|
||||
gts? ( sci-libs/gts )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
lasi? ( media-libs/lasi )
|
||||
pdf? ( app-text/poppler )
|
||||
perl? ( dev-lang/perl:= )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
ruby? ( dev-lang/ruby:* )
|
||||
svg? ( gnome-base/librsvg )
|
||||
tcl? ( >=dev-lang/tcl-8.3:= )
|
||||
webp? ( media-libs/libwebp:= )
|
||||
X? ( x11-libs/libX11 )"
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-base/xorg-proto )"
|
||||
BDEPEND="
|
||||
app-alternatives/lex
|
||||
dev-build/libtool
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-text/ghostscript-gpl
|
||||
sys-apps/groff
|
||||
)
|
||||
guile? (
|
||||
dev-lang/swig
|
||||
${GUILE_DEPS}
|
||||
)
|
||||
nls? ( >=sys-devel/gettext-0.14.5 )
|
||||
perl? ( dev-lang/swig )
|
||||
python? ( dev-lang/swig )
|
||||
ruby? ( dev-lang/swig )
|
||||
tcl? ( dev-lang/swig )"
|
||||
|
||||
# Dependency description / Maintainer info:
|
||||
|
||||
# Rendering is done via the following plugins (/plugins):
|
||||
# - core, dot_layout, neato_layout, gd , dot
|
||||
# the ones which are always compiled in, depend on zlib, gd
|
||||
# - gtk
|
||||
# Directly depends on gtk-2.
|
||||
# needs 'pangocairo' enabled in graphviz configuration
|
||||
# gtk-2 depends on pango, cairo and libX11 directly.
|
||||
# - gdk-pixbuf
|
||||
# Directly depends on gtk-2 and gdk-pixbuf.
|
||||
# needs 'pangocairo' enabled in graphviz configuration
|
||||
# - ming
|
||||
# flash plugin via -Tswf requires media-libs/ming-0.4. Disabled as it's
|
||||
# incomplete.
|
||||
# - cairo/pango:
|
||||
# Needs pango for text layout, uses cairo methods to draw stuff
|
||||
# - xlib:
|
||||
# needs cairo+pango,
|
||||
# can make use of gnomeui and inotify support (??? unsure),
|
||||
# needs libXaw for UI
|
||||
# UI also links directly against libX11, libXmu, and libXt
|
||||
# and uses libXpm if available so we make sure it always is
|
||||
|
||||
# There can be swig-generated bindings for the following languages (/tclpkg/gv):
|
||||
# - c-sharp (disabled)
|
||||
# - scheme (enabled via guile) ... no longer broken on ~x86
|
||||
# - go (disabled)
|
||||
# - io (disabled)
|
||||
# - lua (enabled via lua)
|
||||
# - ocaml (enabled via ocaml)
|
||||
# - perl (enabled via perl) *1
|
||||
# - php (enabled via php) *2
|
||||
# - python (enabled via python) *1
|
||||
# - ruby (enabled via ruby) *1
|
||||
# - tcl (enabled via tcl)
|
||||
# *1 = The ${P}-bindings.patch takes care that those bindings are installed to the right location
|
||||
# *2 = Those bindings don't build because the paths for the headers/libs aren't
|
||||
# detected correctly and/or the options passed to swig are wrong (-php instead of -php4/5)
|
||||
|
||||
# There are several other tools in /tclpkg:
|
||||
# gdtclft, tcldot, tclhandle, tclpathplan, tclstubs ; enabled with: --with-tcl
|
||||
# tkspline, tkstubs ; enabled with: --with-tk
|
||||
|
||||
# And the commands (/cmd):
|
||||
# - dot, gvedit, gvpr, smyrna, tools/* :)
|
||||
# sci-libs/gts can be used for some of these
|
||||
# - gvedit (via 'qt5'):
|
||||
# based on ./configure it needs qt-core and qt-gui only
|
||||
# - smyrna : experimental opengl front-end (via 'smyrna')
|
||||
# currently disabled -- it segfaults a lot
|
||||
# needs x11-libs/gtkglext, gnome-base/libglade, media-libs/freeglut
|
||||
# sci-libs/gts, x11-libs/gtk. Also needs 'gtk','glade','glut','gts' and 'png'
|
||||
# with flags enabled at configure time
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use guile; then
|
||||
guile-single_src_prepare
|
||||
else
|
||||
default
|
||||
fi
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
# Speeds up the libltdl configure
|
||||
--cache-file="${S}"/config.cache
|
||||
--enable-ltdl
|
||||
$(use_enable doc man-pdfs)
|
||||
$(use_with cairo pangocairo)
|
||||
$(use_with examples demos '$(docdir)/examples')
|
||||
$(use_with devil)
|
||||
$(use_with gtk2 gdk)
|
||||
$(use_with gtk2 gdk-pixbuf)
|
||||
$(use_with gtk2)
|
||||
$(use_with gts)
|
||||
$(use_with qt5 qt)
|
||||
$(use_with lasi)
|
||||
$(use_with pdf poppler)
|
||||
$(use_with postscript ghostscript)
|
||||
$(use_with svg rsvg)
|
||||
$(use_with webp)
|
||||
$(use_with X x)
|
||||
--with-digcola
|
||||
--with-freetype2
|
||||
--with-ipsepcola
|
||||
--with-libgd
|
||||
--with-sfdp
|
||||
--without-ming
|
||||
# New/experimental features, to be tested, disable for now
|
||||
--without-ipsepcola
|
||||
--without-smyrna
|
||||
# Bindings
|
||||
$(use_enable guile)
|
||||
$(use_enable perl)
|
||||
$(use_enable python python3)
|
||||
$(use_enable ruby)
|
||||
$(use_enable tcl)
|
||||
--disable-go
|
||||
--disable-lua
|
||||
--disable-java
|
||||
--disable-ocaml
|
||||
--disable-php
|
||||
--disable-python
|
||||
--disable-r
|
||||
--disable-sharp
|
||||
# libtool file collision, bug #276609
|
||||
--without-included-ltdl
|
||||
--disable-ltdl-install
|
||||
QMAKE=$(usev qt5 qmake5)
|
||||
)
|
||||
# XXX: Temporary bash for bug #926600. It's been reverted upstream
|
||||
# on master already:
|
||||
# https://gitlab.com/graphviz/graphviz/-/merge_requests/3636
|
||||
CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
use python && python_optimize \
|
||||
"${D}"$(python_get_sitedir) \
|
||||
"${ED}"/usr/$(get_libdir)/graphviz/python3
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# We need to register all plugins before they become usable
|
||||
dot -c || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Remove cruft, bug #547344
|
||||
rm -rf "${EROOT}"/usr/$(get_libdir)/graphviz/config{,6} || die
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 )
|
||||
inherit autotools font guile-single xdg
|
||||
|
||||
DESCRIPTION="A music notation editor"
|
||||
HOMEPAGE="http://www.denemo.org/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+ OFL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# configure options currently not used:
|
||||
# --enable-mem(no) memory debugging: needs Electric fence (efence), which
|
||||
# is not available in portage. See https://github.com/boundarydevices/efence
|
||||
# --enable-gtk-doc-pdf(no) doesn't work
|
||||
# fluidsynth currently broken. See https://savannah.gnu.org/bugs/index.php?62202
|
||||
IUSE="alsa +aubio debug jack gtk-doc nls +portaudio +portmidi
|
||||
+rubberband test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=app-text/evince-3.22.1-r1:=
|
||||
dev-libs/glib:2
|
||||
dev-libs/libxml2:2
|
||||
gnome-base/librsvg:2
|
||||
media-libs/fontconfig:1.0
|
||||
>=media-libs/libsmf-1.3
|
||||
>=media-libs/libsndfile-1.0.28-r1
|
||||
>=media-sound/fluidsynth-1.1.6-r1:=
|
||||
>=media-sound/lilypond-2.24.4-r100
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/gtksourceview:3.0=
|
||||
x11-libs/pango
|
||||
alsa? ( >=media-libs/alsa-lib-1.1.2 )
|
||||
aubio? ( >=media-libs/aubio-0.4.1-r1:= )
|
||||
jack? ( virtual/jack )
|
||||
portaudio? (
|
||||
>=media-libs/portaudio-19_pre20140130
|
||||
sci-libs/fftw:3.0=
|
||||
)
|
||||
portmidi? ( media-libs/portmidi )
|
||||
rubberband? ( >=media-libs/rubberband-1.8.1-r1 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-build/gtk-doc-am-1.25-r1
|
||||
>=dev-util/intltool-0.51.0-r1
|
||||
app-alternatives/lex
|
||||
virtual/pkgconfig
|
||||
app-alternatives/yacc
|
||||
gtk-doc? ( >=dev-util/gtk-doc-1.25-r1 )
|
||||
nls? ( >=sys-devel/gettext-0.19.8.1 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.0-respect-user-CFLAGS.patch
|
||||
"${FILESDIR}"/${PN}-2.6.0-fix-c99.patch
|
||||
"${FILESDIR}"/${PN}-2.6.0-incompatible-pointers.patch
|
||||
)
|
||||
DOCS=( AUTHORS ChangeLog docs/{DESIGN{,.lilypond},GOALS,TODO} NEWS )
|
||||
|
||||
src_prepare() {
|
||||
sed -e '/^Categories=/s/GNOME\;/GNOME\;GTK\;/' -i pixmaps/org.denemo.Denemo.desktop || die
|
||||
sed -e 's|appdatadir = \$(datarootdir)/appdata|appdatadir = \$(datarootdir)/metainfo|' \
|
||||
-i Makefile.am || die
|
||||
guile-single_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
myeconfargs=(
|
||||
--disable-gtk-doc-pdf
|
||||
--disable-gtk2
|
||||
--disable-installed-tests
|
||||
--disable-mem
|
||||
--disable-rpath
|
||||
--disable-static
|
||||
--enable-evince
|
||||
--enable-fluidsynth
|
||||
--enable-gtk3
|
||||
--enable-x11
|
||||
$(use_enable alsa)
|
||||
$(use_enable aubio)
|
||||
$(use_enable debug)
|
||||
# --enable-doc does nothing for itself
|
||||
# basic html documentation is always being installed in the
|
||||
# /usr/share/denemo/manual directory
|
||||
$(use_enable gtk-doc doc)
|
||||
$(use_enable gtk-doc gtk-doc)
|
||||
$(use_enable gtk-doc gtk-doc-html)
|
||||
$(use_enable jack)
|
||||
$(use_enable nls)
|
||||
$(use_enable portaudio)
|
||||
$(use_enable portmidi)
|
||||
$(use_enable rubberband)
|
||||
$(use_enable test always-build-tests)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# make check fails if used with parallel builds
|
||||
emake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile-single_src_install
|
||||
|
||||
# link html documentation installed in /usr/share/denemo/manual
|
||||
dodir /usr/share/doc/${PF}/html
|
||||
local f
|
||||
for f in denemo-manual.html denemo.css images; do
|
||||
dosym -r /usr/share/denemo/manual/"${f}" /usr/share/doc/${PF}/html/"${f}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
font_pkg_postinst
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
font_pkg_postrm
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
https://bugs.gentoo.org/927336
|
||||
https://savannah.gnu.org/bugs/?63720
|
||||
|
||||
From 509906e7cc4669b525cbcb05022e7e10c6663627 Mon Sep 17 00:00:00 2001
|
||||
From: Nikita Popov <npopov@redhat.com>
|
||||
Date: Fri, 27 Jan 2023 12:13:10 +0100
|
||||
Subject: [PATCH] Fix C99 support in sffile.c
|
||||
|
||||
This fixes one -Wimplicit-function-declaration and one
|
||||
-Wimplicit-int warning, which will become errors in future
|
||||
compiler versions.
|
||||
|
||||
Related to:
|
||||
|
||||
<https://fedoraproject.org/wiki/Changes/PortingToModernC>
|
||||
<https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
|
||||
--- a/libs/libsffile/sffile.c
|
||||
+++ b/libs/libsffile/sffile.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*================================================================*/
|
||||
//Interface to Denemo License: FSF GPL version 3 or later
|
||||
|
||||
+#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -51,7 +52,7 @@ static void ConvertIllegalChar(char *name){
|
||||
int ParseSoundfont(char *soundfont, int index, char **name, int *preset, int *bank) {
|
||||
FILE *fp;
|
||||
static SFInfo sf;
|
||||
- static initialized = FALSE;
|
||||
+ static int initialized = FALSE;
|
||||
int i;
|
||||
int number = 0;
|
||||
if(soundfont) {
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
diff --git a/src/source/proof.c b/src/source/proof.c
|
||||
index f9a02bf0e..3b8f5fc82 100644
|
||||
--- a/src/source/proof.c
|
||||
+++ b/src/source/proof.c
|
||||
@@ -280,7 +280,7 @@ press (EvView * view, GdkEventButton *event, EvDocumentModel *model)
|
||||
infodialog (help_text);
|
||||
nearest_annotation_text = NULL;
|
||||
extern EvMappingList * ev_document_annotations_get_annotations();
|
||||
- EvMappingList *mapping_list = ev_document_annotations_get_annotations (doc, ev_document_get_page(doc, i));
|
||||
+ EvMappingList *mapping_list = ev_document_annotations_get_annotations (EV_DOCUMENT_ANNOTATIONS (doc), ev_document_get_page(doc, i));
|
||||
if(mapping_list)
|
||||
{
|
||||
gdouble nearest = G_MAXDOUBLE;
|
||||
@@ -313,7 +313,7 @@ find_annotated_pages (EvDocumentModel *model)
|
||||
for (i=0; i< ev_document_get_n_pages(doc);i++)
|
||||
{
|
||||
extern EvMappingList * ev_document_annotations_get_annotations();
|
||||
- EvMappingList *mapping_list = ev_document_annotations_get_annotations (doc, ev_document_get_page(doc, i));
|
||||
+ EvMappingList *mapping_list = ev_document_annotations_get_annotations (EV_DOCUMENT_ANNOTATIONS (doc), ev_document_get_page(doc, i));
|
||||
if(mapping_list)
|
||||
{
|
||||
annotated_pages = g_list_append (annotated_pages, GINT_TO_POINTER(i));
|
||||
diff --git a/tests/integration.c b/tests/integration.c
|
||||
index f3aad7a1f..5910425e6 100644
|
||||
--- a/tests/integration.c
|
||||
+++ b/tests/integration.c
|
||||
@@ -248,7 +248,7 @@ parse_dir_and_run_complex_test(gchar* path, const gchar* extension)
|
||||
while(files){
|
||||
filename = g_build_filename(path, files->data, NULL);
|
||||
gchar* test_case_path = g_strdup_printf("%s-%d", test_case_path_fragment, test_case_path_counter);
|
||||
- g_test_add (test_case_path, gchar*, filename, setup, test_open_save_complex_file, teardown);
|
||||
+ g_test_add (test_case_path, void, filename, setup, test_open_save_complex_file, teardown);
|
||||
g_free(test_case_path);
|
||||
test_case_path_counter ++;
|
||||
files = g_list_next(files);
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="deprecated,regex"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit elisp-common autotools guile-single python-single-r1 toolchain-funcs xdg-utils
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.savannah.gnu.org/git/lilypond.git"
|
||||
else
|
||||
MAIN_VER=$(ver_cut 1-2)
|
||||
SRC_URI="https://lilypond.org/download/sources/v${MAIN_VER}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~riscv ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GNU Music Typesetter"
|
||||
HOMEPAGE="http://lilypond.org/"
|
||||
|
||||
LICENSE="GPL-3 FDL-1.3"
|
||||
SLOT="0"
|
||||
LANG_USE="l10n_ca l10n_cs l10n_de l10n_en l10n_fr l10n_hu l10n_it l10n_ja l10n_nl l10n_pt l10n_zh"
|
||||
IUSE="debug doc emacs profile ${LANG_USE}"
|
||||
unset LANG_USE
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE} ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
dev-texlive/texlive-metapost
|
||||
sys-apps/texinfo
|
||||
app-alternatives/yacc
|
||||
app-alternatives/lex
|
||||
virtual/pkgconfig
|
||||
doc? ( app-text/texi2html )
|
||||
"
|
||||
RDEPEND="app-text/ghostscript-gpl
|
||||
dev-libs/boehm-gc
|
||||
dev-libs/glib:2
|
||||
dev-libs/libatomic_ops
|
||||
media-fonts/tex-gyre
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
media-libs/harfbuzz
|
||||
>=x11-libs/pango-1.40
|
||||
emacs? ( >=app-editors/emacs-23.1:* )
|
||||
${GUILE_DEPS}
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/t1utils
|
||||
dev-lang/perl
|
||||
dev-libs/kpathsea
|
||||
media-gfx/fontforge[png,python]
|
||||
sys-devel/gettext
|
||||
doc? (
|
||||
dev-texlive/texlive-langcyrillic
|
||||
l10n_cs? ( dev-texlive/texlive-xetex )
|
||||
l10n_ja? ( dev-texlive/texlive-langjapanese )
|
||||
l10n_zh? ( dev-texlive/texlive-langchinese )
|
||||
)
|
||||
"
|
||||
# Correct output data for tests isn't bundled with releases
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( DEDICATION README.md ROADMAP )
|
||||
|
||||
QA_PREBUILT="usr/*/${PN}/${PV}/ccache/*"
|
||||
|
||||
pkg_setup() {
|
||||
guile-single_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
# respect CFLAGS
|
||||
sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die
|
||||
|
||||
eautoreconf
|
||||
|
||||
xdg_environment_reset #586592
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# fix hardcoded `ar`
|
||||
sed -i "s/AR=ar/AR=$(tc-getAR)/g" flower/GNUmakefile || die "Failed to fix ar command"
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-optimising
|
||||
--disable-pipe
|
||||
$(use_enable debug debugging)
|
||||
$(use_enable doc documentation)
|
||||
$(use_enable profile profiling)
|
||||
)
|
||||
|
||||
export VARTEXFONTS="${T}/fonts" # https://bugs.gentoo.org/692010
|
||||
|
||||
econf "${myeconfargs[@]}" AR="$(tc-getAR)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
# http://lilypond.org/doc/v2.24/Documentation/changes/index#notes-for-source-compilation-and-packagers
|
||||
emake bytecode
|
||||
|
||||
use doc && emake LANGS="${L10N}" doc info
|
||||
|
||||
if use emacs ; then
|
||||
elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \
|
||||
|| die "elisp-compile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install install-bytecode
|
||||
|
||||
use doc && emake DESTDIR="${D}" install-doc
|
||||
|
||||
# remove elisp files since they are in the wrong directory
|
||||
rm -r "${ED}"/usr/share/emacs || die
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \
|
||||
|| die "elisp-install failed"
|
||||
elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
|
||||
fi
|
||||
|
||||
guile_unstrip_ccache
|
||||
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
@@ -3,9 +3,11 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="deprecated,regex"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit elisp-common autotools python-single-r1 toolchain-funcs xdg-utils
|
||||
inherit elisp-common autotools guile-single python-single-r1 toolchain-funcs xdg-utils
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
@@ -24,7 +26,7 @@ SLOT="0"
|
||||
LANG_USE="l10n_ca l10n_cs l10n_de l10n_en l10n_fr l10n_hu l10n_it l10n_ja l10n_nl l10n_pt l10n_zh"
|
||||
IUSE="debug doc emacs profile ${LANG_USE}"
|
||||
unset LANG_USE
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE} ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
dev-texlive/texlive-metapost
|
||||
@@ -35,12 +37,16 @@ BDEPEND="
|
||||
doc? ( app-text/texi2html )
|
||||
"
|
||||
RDEPEND="app-text/ghostscript-gpl
|
||||
>=dev-scheme/guile-3.0.7:12=[deprecated,regex]
|
||||
dev-libs/boehm-gc
|
||||
dev-libs/glib:2
|
||||
dev-libs/libatomic_ops
|
||||
media-fonts/tex-gyre
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
media-libs/harfbuzz
|
||||
>=x11-libs/pango-1.40
|
||||
emacs? ( >=app-editors/emacs-23.1:* )
|
||||
${GUILE_DEPS}
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/t1utils
|
||||
@@ -60,12 +66,15 @@ RESTRICT="test"
|
||||
|
||||
DOCS=( DEDICATION README.md ROADMAP )
|
||||
|
||||
# guile generates ELF files without use of C or machine code
|
||||
# It's a portage's false positive. bug #677600
|
||||
QA_PREBUILT='*[.]go'
|
||||
QA_PREBUILT="usr/*/${PN}/${PV}/ccache/*"
|
||||
|
||||
pkg_setup() {
|
||||
guile-single_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
guile-single_src_prepare
|
||||
|
||||
# respect CFLAGS
|
||||
sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die
|
||||
@@ -120,6 +129,8 @@ src_install() {
|
||||
elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
|
||||
fi
|
||||
|
||||
guile_unstrip_ccache
|
||||
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
einstalldocs
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile-single unpacker
|
||||
|
||||
DESCRIPTION="Periodic ping program"
|
||||
HOMEPAGE="https://www.gnu.org/software/alive/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.lz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~x86"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${GUILE_DEPS}"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-scheme/xdgdirs
|
||||
net-misc/iputils"
|
||||
BDEPEND="$(unpacker_src_uri_depends)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.2-ping-test.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
LUA_COMPAT=( lua5-{1..4} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit cmake guile-single lua-single python-single-r1 xdg
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/weechat/weechat.git"
|
||||
else
|
||||
inherit verify-sig
|
||||
SRC_URI="https://weechat.org/files/src/${P}.tar.xz
|
||||
verify-sig? ( https://weechat.org/files/src/${P}.tar.xz.asc )"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/weechat.org.asc
|
||||
BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-weechat )"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Portable and multi-interface IRC client"
|
||||
HOMEPAGE="https://weechat.org/"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
NETWORKS="+irc"
|
||||
PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger +relay +scripts +spell +trigger +typing +xfer"
|
||||
# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support
|
||||
# dev-lang/php eclass support is lacking, php plugins don't work. bug #705702
|
||||
SCRIPT_LANGS="guile lua +perl +python ruby tcl"
|
||||
LANGS=" cs de es fr it ja pl ru"
|
||||
IUSE="doc enchant man nls relay-api selinux test +zstd ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}"
|
||||
|
||||
REQUIRED_USE="
|
||||
enchant? ( spell )
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( nls )
|
||||
relay-api? ( relay )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libgcrypt:0=
|
||||
net-libs/gnutls:=
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/zlib:=
|
||||
net-misc/curl[ssl]
|
||||
charset? ( virtual/libiconv )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
lua? ( ${LUA_DEPS} )
|
||||
nls? ( virtual/libintl )
|
||||
perl? (
|
||||
dev-lang/perl:=
|
||||
virtual/libcrypt:=
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
relay-api? ( dev-libs/cJSON )
|
||||
ruby? (
|
||||
|| (
|
||||
dev-lang/ruby:3.3
|
||||
dev-lang/ruby:3.2
|
||||
dev-lang/ruby:3.1
|
||||
)
|
||||
)
|
||||
selinux? ( sec-policy/selinux-irc )
|
||||
spell? (
|
||||
enchant? ( app-text/enchant:* )
|
||||
!enchant? ( app-text/aspell )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8.4.15:0= )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-util/cpputest )
|
||||
"
|
||||
|
||||
BDEPEND+="
|
||||
virtual/pkgconfig
|
||||
doc? ( >=dev-ruby/asciidoctor-1.5.4 )
|
||||
man? ( >=dev-ruby/asciidoctor-1.5.4 )
|
||||
nls? ( >=sys-devel/gettext-0.15 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.3-cmake_lua_version.patch
|
||||
)
|
||||
|
||||
DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
# install only required translations
|
||||
local i
|
||||
for i in ${LANGS} ; do
|
||||
if ! has ${i} ${LINGUAS-${i}} ; then
|
||||
sed -i \
|
||||
-e "/${i}.po/d" \
|
||||
po/CMakeLists.txt || die
|
||||
fi
|
||||
done
|
||||
|
||||
# install only required documentation ; en always
|
||||
local j
|
||||
for i in $(grep -e 'set(.*en.*)$' doc/CMakeLists.txt \
|
||||
| sed -e 's/.*set(\(\w\+\).*/\1/'); do
|
||||
for j in $(grep set.${i} doc/CMakeLists.txt \
|
||||
| sed -e "s/.*${i}\(.*\)).*/\1/" -e 's/ en//'); do
|
||||
if ! has ${j} ${LINGUAS-${j}} ; then
|
||||
sed -i \
|
||||
-e "s/\(set(${i}.*\) ${j}/\1/" \
|
||||
doc/CMakeLists.txt || die
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# install docs in correct directory
|
||||
sed -i "s#\${DATAROOTDIR}/doc/\${PROJECT_NAME}#\0-${PVR}/html#" doc/CMakeLists.txt || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
# fix linking error on Darwin
|
||||
sed -i "s/+ get_config_var('LINKFORSHARED')//" \
|
||||
cmake/FindPython.cmake || die
|
||||
# allow to find the plugins by default
|
||||
sed -i 's/".so,.dll"/".bundle,.so,.dll"/' \
|
||||
src/core/wee-config.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DLIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
-DENABLE_JAVASCRIPT=OFF
|
||||
-DENABLE_LARGEFILE=ON
|
||||
-DENABLE_NCURSES=ON
|
||||
-DENABLE_PHP=OFF
|
||||
-DENABLE_ALIAS=$(usex alias)
|
||||
-DENABLE_BUFLIST=$(usex buflist)
|
||||
-DENABLE_CHARSET=$(usex charset)
|
||||
# -DENABLE_DOC requires all plugins (except javascript).
|
||||
# https://github.com/weechat/weechat/blob/v4.0.2/CMakeLists.txt#L144
|
||||
# Impossible since php was dropped in net-irc/weechat-3.5.r1.ebuild. bug #705702
|
||||
-DENABLE_DOC=OFF
|
||||
-DENABLE_DOC_INCOMPLETE=$(usex doc)
|
||||
-DENABLE_ENCHANT=$(usex enchant)
|
||||
-DENABLE_EXEC=$(usex exec)
|
||||
-DENABLE_FIFO=$(usex fifo)
|
||||
-DENABLE_FSET=$(usex fset)
|
||||
-DENABLE_GUILE=$(usex guile)
|
||||
-DENABLE_IRC=$(usex irc)
|
||||
-DENABLE_LOGGER=$(usex logger)
|
||||
-DENABLE_LUA=$(usex lua)
|
||||
-DENABLE_MAN=$(usex man)
|
||||
-DENABLE_NLS=$(usex nls)
|
||||
-DENABLE_PERL=$(usex perl)
|
||||
-DENABLE_PYTHON=$(usex python)
|
||||
-DENABLE_RELAY=$(usex relay)
|
||||
-DENABLE_CJSON=$(usex relay-api)
|
||||
-DENABLE_RUBY=$(usex ruby)
|
||||
-DENABLE_SCRIPT=$(usex scripts)
|
||||
-DENABLE_SCRIPTS=$(usex scripts)
|
||||
-DENABLE_SPELL=$(usex spell)
|
||||
-DENABLE_TCL=$(usex tcl)
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DENABLE_TRIGGER=$(usex trigger)
|
||||
-DENABLE_TYPING=$(usex typing)
|
||||
-DENABLE_XFER=$(usex xfer)
|
||||
-DENABLE_ZSTD=$(usex zstd)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if $(locale -a | grep -iq "en_US\.utf.*8"); then
|
||||
cmake_src_test -V
|
||||
else
|
||||
eerror "en_US.UTF-8 locale is required to run ${PN}'s ${FUNCNAME}"
|
||||
die "required locale missing"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
}
|
||||
@@ -3,10 +3,11 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
LUA_COMPAT=( lua5-{1..4} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit cmake lua-single python-single-r1 xdg
|
||||
inherit cmake guile-single lua-single python-single-r1 xdg
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
@@ -36,6 +37,7 @@ IUSE="doc enchant man nls relay-api selinux test +zstd ${SCRIPT_LANGS} ${PLUGINS
|
||||
|
||||
REQUIRED_USE="
|
||||
enchant? ( spell )
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
test? ( nls )
|
||||
@@ -49,7 +51,7 @@ RDEPEND="
|
||||
sys-libs/zlib:=
|
||||
net-misc/curl[ssl]
|
||||
charset? ( virtual/libiconv )
|
||||
guile? ( >=dev-scheme/guile-2.0:12= )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
lua? ( ${LUA_DEPS} )
|
||||
nls? ( virtual/libintl )
|
||||
perl? (
|
||||
@@ -90,6 +92,7 @@ DOCS="AUTHORS.md CHANGELOG.md CONTRIBUTING.md UPGRADING.md README.md"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
@@ -97,6 +100,8 @@ pkg_setup() {
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
# install only required translations
|
||||
local i
|
||||
for i in ${LANGS} ; do
|
||||
@@ -185,3 +190,9 @@ src_test() {
|
||||
die "required locale missing"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit autotools elisp-common flag-o-matic guile-single python-single-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="A useful collection of mail servers, clients, and filters"
|
||||
HOMEPAGE="https://mailutils.org/"
|
||||
SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos"
|
||||
IUSE="berkdb bidi +clients emacs gdbm sasl guile kerberos kyotocabinet \
|
||||
ldap mysql nls pam postgres python servers split-usr ssl static-libs test +threads tcpd \
|
||||
tokyocabinet"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
!mail-filter/libsieve
|
||||
!mail-client/mailx
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/readline:=
|
||||
dev-libs/libltdl:0
|
||||
virtual/libcrypt:=
|
||||
virtual/mta
|
||||
berkdb? ( sys-libs/db:= )
|
||||
bidi? ( dev-libs/fribidi )
|
||||
emacs? ( >=app-editors/emacs-23.1:* )
|
||||
gdbm? ( sys-libs/gdbm:= )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
kerberos? ( virtual/krb5 )
|
||||
kyotocabinet? ( dev-db/kyotocabinet )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
nls? ( sys-devel/gettext )
|
||||
pam? ( sys-libs/pam:= )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
sasl? ( >=net-misc/gsasl-2.0.0 )
|
||||
servers? ( virtual/libiconv dev-libs/libunistring:= )
|
||||
ssl? ( net-libs/gnutls:= )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
tokyocabinet? ( dev-db/tokyocabinet )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? ( dev-util/dejagnu )
|
||||
"
|
||||
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
servers? ( tcpd ldap )"
|
||||
|
||||
DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.5-add-include.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use guile; then
|
||||
guile_bump_sources
|
||||
sed -i -e "s|guile|${GUILE}|" libmu_scm/tests/testsuite || die
|
||||
fi
|
||||
if use mysql; then
|
||||
sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
|
||||
sql/Makefile.am || die
|
||||
fi
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
if use guile; then
|
||||
export GUILE_SNARF="${GUILESNARF}"
|
||||
export GUILE_TOOLS="${GUILE/guile/guile-tools}"
|
||||
fi
|
||||
|
||||
# maildir is the Gentoo default
|
||||
econf \
|
||||
MU_DEFAULT_SCHEME=maildir \
|
||||
CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
|
||||
$(use_with berkdb berkeley-db) \
|
||||
$(use_with bidi fribidi) \
|
||||
$(use_with gdbm) \
|
||||
$(use_with sasl gsasl) \
|
||||
$(use_with guile) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with mysql) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable pam) \
|
||||
$(use_with postgres) \
|
||||
$(use_enable python) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable threads pthread) \
|
||||
$(use_with tokyocabinet) \
|
||||
$(use_with kyotocabinet) \
|
||||
$(use_with tcpd tcp-wrappers) \
|
||||
$(use_enable servers build-servers) \
|
||||
$(use_with servers unistring ) \
|
||||
$(use_enable clients build-clients) \
|
||||
EMACS=$(usex emacs emacs no) \
|
||||
--with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
|
||||
--with-mail-spool=/var/spool/mail \
|
||||
--with-readline \
|
||||
--enable-ipv6 \
|
||||
--enable-sendmail \
|
||||
--disable-debug
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc
|
||||
# bug 613112
|
||||
newins "${FILESDIR}/mailutils.rc" mailutils.conf
|
||||
keepdir /etc/mailutils.d/
|
||||
insinto /etc/mailutils.d
|
||||
doins "${FILESDIR}/mail"
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
if use python; then
|
||||
python_optimize
|
||||
if use static-libs; then
|
||||
rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
|
||||
fi
|
||||
fi
|
||||
|
||||
if use servers; then
|
||||
newinitd "${FILESDIR}"/imap4d.initd imap4d
|
||||
newinitd "${FILESDIR}"/pop3d.initd pop3d
|
||||
newinitd "${FILESDIR}"/comsatd.initd comsatd
|
||||
fi
|
||||
|
||||
# compatibility link
|
||||
if use clients && use split-usr; then
|
||||
dosym ../usr/bin/mail /bin/mail
|
||||
fi
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
fi
|
||||
}
|
||||
@@ -356,6 +356,49 @@ dev-scheme/guile-commonmark
|
||||
dev-scheme/guile:2.2
|
||||
dev-scheme/guile:3.0
|
||||
>=dev-build/make-4.4.1-r100
|
||||
>=app-office/gnucash-5.8-r100
|
||||
>=app-shells/gash-0.3.0-r100
|
||||
>=dev-build/remake-4.3.1.1.6-r100
|
||||
>=dev-debug/gdb-15.1-r100
|
||||
>=dev-scheme/akku-1.1.0-r100
|
||||
>=dev-scheme/bytestructures-2.0.2-r100
|
||||
>=dev-scheme/fibers-1.2.0_p20230522-r100
|
||||
>=dev-scheme/goosh-1.3-r100
|
||||
>=dev-scheme/guile-colorized-0.1_p20191205-r100
|
||||
>=dev-scheme/guile-config-0.5.1-r100
|
||||
>=dev-scheme/guile-dbi-2.1.9
|
||||
>=dev-scheme/guile-dbd-postgresql-2.1.9
|
||||
>=dev-scheme/guile-dbd-sqlite3-2.1.9
|
||||
>=dev-scheme/guile-gcrypt-0.4.0-r100
|
||||
>=dev-scheme/guile-git-0.7.0-r100
|
||||
>=dev-scheme/guile-gnutls-4.0.0-r100
|
||||
>=dev-scheme/guile-hall-0.4.1-r100
|
||||
>=dev-scheme/guile-json-4.7.3-r100
|
||||
>=dev-scheme/guile-lib-0.2.7-r100
|
||||
>=dev-scheme/guile-libyaml-20211124-r100
|
||||
>=dev-scheme/guile-lzlib-0.0.2-r100
|
||||
>=dev-scheme/guile-ncurses-3.1-r100
|
||||
>=dev-scheme/guile-nyacc-1.06.7-r100
|
||||
>=dev-scheme/guile-sqlite3-0.1.3-r100
|
||||
>=dev-scheme/guile-ssh-0.16.4-r100
|
||||
>=dev-scheme/guile-zlib-0.1.0-r100
|
||||
>=dev-scheme/guile-zstd-0.1.1-r100
|
||||
>=dev-scheme/xdgdirs-2.2-r100
|
||||
>=media-gfx/graphviz-12.0.0-r100
|
||||
>=media-sound/lilypond-2.24.4-r100
|
||||
>=net-analyzer/alive-2.0.5-r100
|
||||
>=net-irc/weechat-4.3.4-r100
|
||||
>=net-mail/mailutils-3.17-r100
|
||||
>=sci-electronics/geda-1.10.2-r100
|
||||
>=sci-electronics/gwave-20190116-r100
|
||||
>=sci-libs/linux-gpib-4.3.6-r100
|
||||
>=sci-libs/nlopt-2.7.1-r100
|
||||
>=sys-devel/autogen-5.18.16-r100
|
||||
>=www-client/elinks-0.16.1.1-r100
|
||||
>=x11-misc/xbindkeys-1.8.7-r100
|
||||
>=dev-scheme/guile-gi-0.3.2-r100
|
||||
>=media-sound/denemo-2.6.0-r100
|
||||
>=dev-scheme/skribilo-0.10.0-r100
|
||||
|
||||
# Eli Schwartz <eschwartz@gentoo.org> (2024-08-15)
|
||||
# Abandoned upstream since 2011, unmaintained in gentoo since 2017. Tons of
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_DEPEND="
|
||||
media-gfx/graphviz
|
||||
media-gfx/imagemagick
|
||||
virtual/latex-base
|
||||
"
|
||||
GUILE_COMPAT=( 2-2 )
|
||||
inherit autotools docs guile-single xdg
|
||||
|
||||
MY_PN=${PN}-gaf
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="GPL Electronic Design Automation (gEDA):gaf core package"
|
||||
HOMEPAGE="http://geda-project.org/ http://wiki.geda-project.org/geda:gaf"
|
||||
SRC_URI="http://ftp.geda-project.org/${MY_PN}/stable/v$(ver_cut 1-2)/${PV}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="debug fam nls"
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/glib:2
|
||||
sci-electronics/electronics-menu
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango
|
||||
nls? ( virtual/libintl )
|
||||
fam? ( app-admin/gamin )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/desktop-file-utils
|
||||
x11-misc/shared-mime-info"
|
||||
BDEPEND="
|
||||
sys-apps/groff
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Xorn requires python2
|
||||
"${FILESDIR}/${P}-drop-xorn.patch"
|
||||
|
||||
"${FILESDIR}/${PN}-1.10.2-fix-gtk-sheet.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
guile-single_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
rm -r xorn || die
|
||||
|
||||
# remove compressed files, compressed by portage in install phase
|
||||
rm docs/wiki/media/geda/gsch2pcb-libs.tar.gz || die
|
||||
rm docs/wiki/media/geda/pcb_plugin_template.tar.gz || die
|
||||
rm docs/wiki/media/pcb/plugin_debug_window.tar.gz || die
|
||||
|
||||
# -Wmaybe-uninitialized is made fatal, which is not ideal for building
|
||||
# releases. Upstream is working on fixing these anyway.
|
||||
sed -i '/Werror_maybe_uninitialized_IF_SUPPORTED/d' configure.ac || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-rpath
|
||||
--disable-update-xdg-database
|
||||
$(use_enable doc doxygen)
|
||||
$(use_enable debug assert)
|
||||
$(use_enable nls)
|
||||
$(use_with fam libfam)
|
||||
)
|
||||
|
||||
local -x GUILE_SNARF="${GUILESNARF}"
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile_src_install
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
https://bugs.gentoo.org/886139
|
||||
|
||||
--- a/spicefile/sp2sp.c
|
||||
+++ b/spicefile/sp2sp.c
|
||||
@@ -234,7 +234,7 @@
|
||||
}
|
||||
of = stdout;
|
||||
} else {
|
||||
- of = (FILE *)fopen64(outfilename, "w"); /* DJW: why is the cast needed? */
|
||||
+ of = fopen(outfilename, "w");
|
||||
if(!of) {
|
||||
if(errno)
|
||||
perror(outfilename);
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="networking"
|
||||
GUILE_COMPAT=( 2-2 )
|
||||
inherit autotools desktop flag-o-matic guile-single xdg
|
||||
|
||||
DESCRIPTION="Analog waveform viewer for SPICE-like simulations"
|
||||
HOMEPAGE="http://gwave.sourceforge.net"
|
||||
SRC_URI="https://downloads.sourceforge.net/${PN}/gwave3/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gnuplot plotutils"
|
||||
SLOT="0"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${GUILE_DEPS}
|
||||
>=x11-libs/gtk+-2.8.0:2=
|
||||
sys-libs/readline:0=
|
||||
sys-libs/ncurses:0="
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
sci-electronics/electronics-menu
|
||||
gnuplot? ( sci-visualization/gnuplot )
|
||||
plotutils? ( media-libs/plotutils )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-multiple-little-bugfixes.patch
|
||||
"${FILESDIR}"/${P}-as-needed.patch
|
||||
"${FILESDIR}"/${P}-fix-configure.patch
|
||||
"${FILESDIR}"/${P}-lfs-shim.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
sed -i \
|
||||
-e "s|guile-snarf|${GUILESNARF}|" \
|
||||
-e "s|guile-tools|${GUILE/guile/guile-tools}|" \
|
||||
src/Makefile.am || die
|
||||
sed -i \
|
||||
-e "s|guile-tools|${GUILE/guile/guile-tools}|" \
|
||||
scheme/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://bugs.gentoo.org/886139
|
||||
append-lfs-flags
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile-single_src_install
|
||||
newicon icons/wave-drag-ok.xpm gwave.xpm
|
||||
make_desktop_entry gwave "Gwave" gwave "Electronics"
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit readme.gentoo-r1 autotools guile-single perl-functions python-single-r1 udev
|
||||
|
||||
# Check for latest firmware version on bump
|
||||
FW_PV="2008-08-10"
|
||||
|
||||
DESCRIPTION="Driver library for GPIB (IEEE 488.2) hardware"
|
||||
HOMEPAGE="https://linux-gpib.sourceforge.io/"
|
||||
SRC_URI="https://downloads.sourceforge.net/linux-gpib/${P}.tar.gz
|
||||
firmware? ( https://linux-gpib.sourceforge.io/firmware/gpib_firmware-${FW_PV}.tar.gz )
|
||||
"
|
||||
S="${WORKDIR}/${PN}-user-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="pcmcia static guile perl php python tcl doc firmware"
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
COMMONDEPEND="
|
||||
sys-libs/readline:=
|
||||
tcl? ( dev-lang/tcl:0= )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
perl? ( dev-lang/perl:= )
|
||||
php? ( dev-lang/php:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
firmware? ( sys-apps/fxload )
|
||||
"
|
||||
RDEPEND="${COMMONDEPEND}
|
||||
acct-group/gpib
|
||||
~sci-libs/linux-gpib-modules-${PV}
|
||||
"
|
||||
DEPEND="${COMMONDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( app-text/docbook-sgml-utils )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.3.0-perl.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use perl && perl_set_version
|
||||
use python && python_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
unpack "${WORKDIR}/${P}/${PN}-user-${PV}.tar.gz"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
# We have to use --root instead of --prefix for setup.py.
|
||||
# Otherwise the python files are not installed properly into site-packages.
|
||||
sed -i -e \
|
||||
's/--prefix=$(DESTDIR)$(prefix)/--root=$(DESTDIR)/g' \
|
||||
language/python/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static) \
|
||||
$(use_enable guile guile-binding) \
|
||||
$(use_enable perl perl-binding) \
|
||||
$(use_enable php php-binding) \
|
||||
$(use_enable python python-binding) \
|
||||
$(use_enable tcl tcl-binding) \
|
||||
$(use_enable doc documentation)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# PYTHONDONTWRITEBYTECODE=0 is required, otherwise
|
||||
# installation of the python files is skipped
|
||||
FIRM_DIR="${EPREFIX}"/usr/share/usb
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
INSTALL_MOD_PATH="${ED}" \
|
||||
HOTPLUG_USB_CONF_DIR=/etc/hotplug/usb \
|
||||
UDEV_RULES_DIR="$(get_udevdir)"/rules.d \
|
||||
USB_FIRMWARE_DIR=${FIRM_DIR} \
|
||||
PYTHONDONTWRITEBYTECODE=0 \
|
||||
docdir="/usr/share/doc/${PF}/html" install
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
|
||||
if use perl; then
|
||||
einfo "Installing perl module"
|
||||
cd "${S}"/language/perl || die
|
||||
emake DESTDIR="${ED}" install
|
||||
perl_fix_packlist
|
||||
perl_delete_emptybsdir
|
||||
cd "${S}" || die
|
||||
fi
|
||||
|
||||
echo "KERNEL==\"gpib[0-9]*\", MODE=\"0660\", GROUP=\"gpib\"" >> 99-gpib.rules || die
|
||||
udev_dorules 99-gpib.rules
|
||||
|
||||
dodoc doc/linux-gpib.pdf ChangeLog AUTHORS README* NEWS
|
||||
|
||||
insinto /etc
|
||||
newins util/templates/gpib.conf gpib.conf
|
||||
newins util/templates/gpib.conf gpib.conf.example
|
||||
|
||||
if use pcmcia; then
|
||||
insinto /etc/pcmcia
|
||||
doins "${S}"/etc/pcmcia/*
|
||||
fi
|
||||
|
||||
# remove .la files
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
DOC_CONTENTS="
|
||||
As the udev rules were changed and refactored in this release it is
|
||||
necessary to remove any manually installed pre-4.3.0 gpib udev rules files
|
||||
in /etc/udev/rules.d/. The files to remove are:
|
||||
\n
|
||||
99-agilent_82357a.rules\n
|
||||
99-gpib-generic.rules\n
|
||||
99-ni_usb_gpib.rules\n
|
||||
\n
|
||||
You need to run the 'gpib_config' utility to setup the driver before
|
||||
you can use it. In order to do it automatically you can add to your
|
||||
start script something like this (supposing the appropriate driver
|
||||
is loaded on the startup):
|
||||
\n
|
||||
gpib_config --minor 0
|
||||
\n
|
||||
To give a user access to the computer's gpib board you will have to add
|
||||
them to the group 'gpib' or, you could change the permissions on the device
|
||||
files /dev/gpib[0-15] to something you like better, using 'chmod'
|
||||
\n
|
||||
Edit /etc/gpib.conf to match your interface board, and any devices you wish
|
||||
to open via ibfind(). See the documentation in /usr/share/linux-gpib/html for
|
||||
more information.
|
||||
\n
|
||||
"
|
||||
|
||||
if use pcmcia; then
|
||||
DOC_CONTENTS+='
|
||||
For PCMCIA cards:\n
|
||||
All files needed for a PCMCIA board were copied to /etc/pcmcia.
|
||||
You may wish to edit the options passed to the gpib_config call in the
|
||||
/etc/pcmcia/linux-gpib-pcmcia script.
|
||||
You may need to send a SIGHUP signal to the cardmgr daemon to force it
|
||||
to reload the files in /etc/pcmcia \(alternatively you could use your
|
||||
pcmcia init.d script to restart the cardmgr, or you could just reboot\).
|
||||
The driver module will be loaded as needed by the cardmgr.
|
||||
|
||||
'
|
||||
fi
|
||||
|
||||
if use firmware; then
|
||||
DOC_CONTENTS+='
|
||||
For Agilent \(HP\) 82341C and 82341D cards:
|
||||
The firmware for these boards is uploaded by passing the appropriate
|
||||
firmware file from /usr/share/linux-gpib/hp_82341 directory to
|
||||
gpib_config using the -I or --init-data command line option. Example:\n
|
||||
gpib_config --minor 0 --init-data /usr/share/linux-gpib/hp_82341/hp_82341c_fw.bin
|
||||
'
|
||||
fi
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
FORTRAN_NEEDED="test"
|
||||
|
||||
inherit python-r1 cmake guile-single fortran-2
|
||||
|
||||
DESCRIPTION="Non-linear optimization library"
|
||||
HOMEPAGE="https://github.com/stevengj/nlopt"
|
||||
SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1 MIT"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
IUSE="cxx guile octave python test"
|
||||
REQUIRED_USE="guile? ( ${GUILE_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
octave? ( >=sci-mathematics/octave-6:= )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="python? ( dev-lang/swig )"
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
use guile && guile_bump_sources
|
||||
use python && python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# MATLAB detection causes problems (as in bug 826774) if we don't
|
||||
# explicitly disable it.
|
||||
local mycmakeargs=(
|
||||
-DNLOPT_CXX=$(usex cxx)
|
||||
-DNLOPT_FORTRAN=$(usex test)
|
||||
-DNLOPT_GUILE=$(usex guile)
|
||||
-DNLOPT_OCTAVE=$(usex octave)
|
||||
-DNLOPT_MATLAB=OFF
|
||||
-DNLOPT_PYTHON=OFF
|
||||
-DNLOPT_SWIG=$(usex python)
|
||||
-DNLOPT_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
|
||||
if use python; then
|
||||
python_configure() {
|
||||
local mycmakeargs=(
|
||||
${mycmakeargs[@]}
|
||||
-DNLOPT_PYTHON=ON
|
||||
-DINSTALL_PYTHON_DIR="$(python_get_sitedir)"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
python_foreach_impl run_in_build_dir python_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl run_in_build_dir cmake_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
do_test() {
|
||||
local a f
|
||||
cd "${BUILD_DIR}"/test
|
||||
for a in {1..$(usex cxx 9 7)}; do
|
||||
for f in {5..9}; do
|
||||
./testopt -a $a -o $f || die "algorithm $a function $f failed"
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
do_test
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl run_in_build_dir do_test
|
||||
fi
|
||||
}
|
||||
|
||||
nlopt_install() {
|
||||
cmake_src_install
|
||||
python_optimize
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
guile_unstrip_ccache
|
||||
if use python; then
|
||||
python_foreach_impl run_in_build_dir nlopt_install
|
||||
fi
|
||||
|
||||
local r
|
||||
for r in */README; do
|
||||
newdoc ${r} README.$(dirname ${r})
|
||||
done
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit flag-o-matic autotools guile-single toolchain-funcs
|
||||
|
||||
DESCRIPTION="Program and text file generation"
|
||||
HOMEPAGE="https://www.gnu.org/software/autogen/"
|
||||
SRC_URI="
|
||||
mirror://gnu/${PN}/rel${PV}/${P}.tar.xz
|
||||
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/verify.h;h=3b57ddee0acffd23cc51bc8910a15cf879f90619;hb=537a5511ab0b1326e69b32f87593a50aedb8a589 -> ${P}-gnulib-3b57ddee0acffd23cc51bc8910a15cf879f90619-lib-verify.h
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="libopts static-libs"
|
||||
|
||||
REQUIRED_USE="${GUILE_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${GUILE_DEPS}
|
||||
dev-libs/libxml2
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# We don't pass the flag explicitly, bug #796776.
|
||||
# Let's fix it upstream after next autogen release if it happens.
|
||||
QA_CONFIGURE_OPTIONS+=" --enable-snprintfv-convenience"
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP+=(
|
||||
# libgen.h is legacy and linux doesn't include -lgen nor nonstandard
|
||||
# functions. bug #924961
|
||||
pathfind
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.18.16-no-werror.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-rpath.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-respect-TMPDIR.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-make-4.3.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-guile-3.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-configure-c99.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-FORTIFY_SOURCE.patch
|
||||
"${FILESDIR}"/${PN}-5.18.16-no-which.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
guile-single_src_prepare
|
||||
|
||||
# missing tarball file
|
||||
cp "${DISTDIR}"/${P}-gnulib-3b57ddee0acffd23cc51bc8910a15cf879f90619-lib-verify.h autoopts/verify.h || die
|
||||
|
||||
# May be able to drop this on next release (>5.18.16)
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# suppress possibly incorrect -R flag
|
||||
export ag_cv_test_ldflags=
|
||||
|
||||
# autogen requires run-time sanity of regex and string functions.
|
||||
# Use defaults of linux-glibc until we need somethig more advanced.
|
||||
if tc-is-cross-compiler ; then
|
||||
export ag_cv_run_strcspn=no
|
||||
export libopts_cv_with_libregex=yes
|
||||
fi
|
||||
|
||||
# bug 920174
|
||||
use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE
|
||||
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
guile-single_src_install
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
|
||||
if ! use libopts ; then
|
||||
rm "${ED}"/usr/share/autogen/libopts-*.tar.gz || die
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="deprecated"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
LUA_COMPAT=( lua5-{1,2,3,4} luajit )
|
||||
|
||||
inherit flag-o-matic guile-single meson lua-single python-single-r1
|
||||
|
||||
DESCRIPTION="Advanced and well-established text-mode web browser"
|
||||
HOMEPAGE="http://elinks.or.cz/"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/rkd77/felinks"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/rkd77/elinks/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="bittorrent brotli bzip2 debug finger ftp gopher gpm gnutls guile idn"
|
||||
IUSE+=" javascript lua lzma +mouse nls nntp perl python samba ssl test tre unicode X xml zlib zstd"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-libs/ncurses-5.2:=[unicode(+)]
|
||||
brotli? ( app-arch/brotli:= )
|
||||
bzip2? ( >=app-arch/bzip2-1.0.2 )
|
||||
gpm? (
|
||||
>=sys-libs/gpm-1.20.0-r5
|
||||
)
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
idn? ( net-dns/libidn:= )
|
||||
javascript? (
|
||||
dev-cpp/libxmlpp:5.0
|
||||
dev-lang/mujs:=
|
||||
)
|
||||
lua? ( ${LUA_DEPS} )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
perl? ( dev-lang/perl:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
samba? ( net-fs/samba )
|
||||
ssl? (
|
||||
!gnutls? ( dev-libs/openssl:= )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
)
|
||||
tre? ( dev-libs/tre )
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
)
|
||||
xml? ( >=dev-libs/expat-1.95.4 )
|
||||
zlib? ( >=sys-libs/zlib-1.1.4 )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-base/xorg-proto )"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
test? (
|
||||
net-dns/libidn
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.16.1.1-ecmascript-implicit-declaration.patch
|
||||
"${FILESDIR}"/${PN}-0.16.1.1-perl-5.38.patch
|
||||
"${FILESDIR}"/${PN}-0.16.1.1-python-3.12.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use guile && guile_bump_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# This file is severely broken w.r.t. strict-aliasing and upstream acknowledges it:
|
||||
# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/util/lists.h#L14
|
||||
# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/meson.build#L44
|
||||
#
|
||||
# Although they force fno-strict-aliasing, they do so inconsistently and not for the testsuite (!!!).
|
||||
# Just add it again.
|
||||
#
|
||||
# DO not trust the LTO either.
|
||||
append-flags -fno-strict-aliasing
|
||||
filter-lto
|
||||
|
||||
local emesonargs=(
|
||||
-Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
|
||||
-Dhtmldoc=false
|
||||
-Dpdfdoc=false
|
||||
-Dapidoc=false
|
||||
-D88-colors=true
|
||||
-D256-colors=true
|
||||
$(meson_use bittorrent)
|
||||
$(meson_use brotli)
|
||||
$(meson_use bzip2 bzlib)
|
||||
$(usex debug '-Ddebug=true' '-Dfastmem=true')
|
||||
$(meson_use finger)
|
||||
$(meson_use ftp)
|
||||
-Dfsp=false
|
||||
-Dgemini=false
|
||||
$(meson_use nls gettext)
|
||||
$(meson_use gopher)
|
||||
$(meson_use gpm)
|
||||
$(meson_use guile)
|
||||
-Dgssapi=false
|
||||
-Dhtml-highlight=true
|
||||
$(meson_use idn)
|
||||
$(meson_use javascript mujs)
|
||||
-Dipv6=true
|
||||
-Dleds=true
|
||||
-Dlibev=false
|
||||
-Dlibevent=false
|
||||
-Dluapkg=$(usex lua ${ELUA:-0} '')
|
||||
$(meson_use lzma)
|
||||
$(meson_use mouse)
|
||||
#-Dmujs=false
|
||||
$(meson_use nls)
|
||||
$(meson_use nntp)
|
||||
$(meson_use perl)
|
||||
$(meson_use python)
|
||||
-Dquickjs=false
|
||||
-Druby=false
|
||||
$(meson_use samba smb)
|
||||
-Dsm-scripting=false
|
||||
-Dspidermonkey=false
|
||||
-Dterminfo=true
|
||||
$(meson_use test)
|
||||
$(meson_use tre)
|
||||
-Dtrue-color=true
|
||||
$(meson_use xml xbel)
|
||||
$(meson_use X x)
|
||||
$(meson_use zlib)
|
||||
$(meson_use zstd)
|
||||
)
|
||||
|
||||
if use ssl ; then
|
||||
if use gnutls ; then
|
||||
emesonargs+=( -Dgnutls=true )
|
||||
else
|
||||
emesonargs+=( -Dopenssl=true)
|
||||
fi
|
||||
else
|
||||
emesonargs+=( -Dgnutls=false -Dopenssl=false )
|
||||
fi
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
insinto /etc/elinks
|
||||
newins contrib/keybind-full.conf keybind-full.sample
|
||||
newins contrib/keybind.conf keybind.conf.sample
|
||||
|
||||
dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README SITES THANKS TODO doc/*.*
|
||||
docinto contrib ; dodoc contrib/{README,colws.diff,elinks[-.]vim*}
|
||||
docinto contrib/lua ; dodoc contrib/lua/{*.lua,elinks-remote}
|
||||
docinto contrib/conv ; dodoc contrib/conv/*.*
|
||||
docinto contrib/guile ; dodoc contrib/guile/*.scm
|
||||
|
||||
# elinks uses an internal copy of gettext which ships files that may
|
||||
# collide with the system's gettext (https://bugs.gentoo.org/635090)
|
||||
rm -f "${ED}"/usr/{share/locale/locale,lib/charset}.alias || die
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You may want to convert your html.cfg and links.cfg of"
|
||||
elog "Links or older ELinks versions to the new ELinks elinks.conf"
|
||||
elog "using ${EROOT}/usr/share/doc/${PF}/contrib/conv/conf-links2elinks.pl"
|
||||
elog
|
||||
elog "Please have a look at ${EROOT}/etc/elinks/keybind-full.sample and"
|
||||
elog "${EROOT}/etc/elinks/keybind.conf.sample for some bindings examples."
|
||||
elog
|
||||
elog "You will have to set your TERM variable to 'xterm-256color'"
|
||||
elog "to be able to use 256 colors in elinks."
|
||||
}
|
||||
@@ -3,10 +3,12 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="deprecated"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
LUA_COMPAT=( lua5-{1,2,3,4} luajit )
|
||||
|
||||
inherit flag-o-matic meson lua-single python-single-r1
|
||||
inherit flag-o-matic guile-single meson lua-single python-single-r1
|
||||
|
||||
DESCRIPTION="Advanced and well-established text-mode web browser"
|
||||
HOMEPAGE="http://elinks.or.cz/"
|
||||
@@ -26,6 +28,7 @@ IUSE="bittorrent brotli bzip2 debug finger ftp gopher gpm gnutls guile idn"
|
||||
IUSE+=" javascript lua lzma +mouse nls nntp perl python samba ssl test tre unicode X xml zlib zstd"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
guile? ( ${GUILE_REQUIRED_USE} )
|
||||
lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
@@ -37,7 +40,7 @@ RDEPEND="
|
||||
gpm? (
|
||||
>=sys-libs/gpm-1.20.0-r5
|
||||
)
|
||||
guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated] )
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
idn? ( net-dns/libidn2:= )
|
||||
javascript? (
|
||||
dev-cpp/libxmlpp:5.0
|
||||
@@ -72,11 +75,16 @@ BDEPEND="
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use guile && guile-single_pkg_setup
|
||||
use lua && lua-single_pkg_setup
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use guile && guile_bump_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# This file is severely broken w.r.t. strict-aliasing and upstream acknowledges it:
|
||||
# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/util/lists.h#L14
|
||||
@@ -168,6 +176,8 @@ src_install() {
|
||||
# elinks uses an internal copy of gettext which ships files that may
|
||||
# collide with the system's gettext (https://bugs.gentoo.org/635090)
|
||||
rm -f "${ED}"/usr/{share/locale/locale,lib/charset}.alias || die
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
GUILE_REQ_USE="deprecated"
|
||||
GUILE_COMPAT=( 2-2 3-0 )
|
||||
inherit autotools guile-single
|
||||
|
||||
DESCRIPTION="Tool for launching commands on keystrokes"
|
||||
SRC_URI="https://www.nongnu.org/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="https://www.nongnu.org/xbindkeys/xbindkeys.html"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="guile tk"
|
||||
|
||||
REQUIRED_USE="guile? ( ${GUILE_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/libX11
|
||||
guile? ( ${GUILE_DEPS} )
|
||||
tk? ( dev-lang/tk )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog README TODO xbindkeysrc )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use guile && guile_bump_sources
|
||||
|
||||
# Regenerate to pick up newer versions of Guile macros
|
||||
# bug #828532
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable guile) \
|
||||
$(use_enable tk)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use guile && guile_unstrip_ccache
|
||||
}
|
||||
Reference in New Issue
Block a user