packaging updates;
This commit is contained in:
parent
7e7bb8978b
commit
bdaad3ec8c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build
|
||||
*~
|
||||
*.o
|
||||
*.a
|
||||
@ -42,3 +43,4 @@ debian/files
|
||||
debian/tmp
|
||||
compile
|
||||
INSTALL
|
||||
|
||||
|
101
packaging/gentoo/libsexpr.ebuild
Normal file
101
packaging/gentoo/libsexpr.ebuild
Normal file
@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
EAPI=8
|
||||
|
||||
# This is an ebuild template
|
||||
# Modify it accordingly
|
||||
DESCRIPTION="S-Expr — simple library to work with S-expressions"
|
||||
HOMEPAGE="https://vapaa.work/public/libsexpr"
|
||||
SRC_URI="https://vapaa.work/public/libsexpr/archive/v1.3.3d.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
# Build-time and run-time dependencies
|
||||
DEPEND="
|
||||
sys-devel/autoconf
|
||||
sys-devel/automake
|
||||
sys-devel/libtool
|
||||
sys-devel/make
|
||||
"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
# If archive extracts into a subdir not equal to ${P%,*}, adjust here.
|
||||
# e.g. mv "${WORKDIR}/${PF}" "${WORKDIR}/${PN}-${PV}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# If project ships autotools files missing, regenerate
|
||||
if ! [[ -x configure ]]; then
|
||||
einfo "Regenerating configure with autoreconf"
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing --copy
|
||||
fi
|
||||
|
||||
# Apply any necessary patches here with epatch or quilt
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local my_cflags="${CFLAGS}"
|
||||
local my_ldflags="${LDFLAGS}"
|
||||
|
||||
export CFLAGS="${my_cflags}"
|
||||
export LDFLAGS="${my_ldflags}"
|
||||
|
||||
econf \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/lib64" \
|
||||
--sysconfdir="${EPREFIX}/etc" \
|
||||
--disable-static \
|
||||
--enable-shared
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j"${MAKEOPTS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# Ensure pkg-config file is installed to /usr/lib/pkgconfig (or multiarch dir)
|
||||
dodir "${EPREFIX}/usr/lib64/pkgconfig"
|
||||
if [[ -f "${D}${EPREFIX}/usr/lib64/pkgconfig/libsexpr.pc" ]]; then
|
||||
# already installed by 'make install'
|
||||
:
|
||||
else
|
||||
# If build created mylib.pc in build dir (mylib.pc.in processed by configure),
|
||||
# install it explicitly
|
||||
if [[ -f "${S}/libsexpr.pc" ]]; then
|
||||
doins -m 0644 "${S}/libsexpr.pc" "${EPREFIX}/usr/lib64/pkgconfig/"
|
||||
elif [[ -f "${S}/libsexpr.pc.in" ]]; then
|
||||
# generate from template using sed substitutions performed by configure
|
||||
# but usually configure already created the .pc in build tree
|
||||
eseinfo "Warning: libsexpr.pc not found after make install"
|
||||
fi
|
||||
fi
|
||||
|
||||
# strip binaries & libs
|
||||
if [[ -n "${STRIP}" ]]; then
|
||||
dodoc COPYING README || true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
elog "Installing ${PF}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Installed ${PF}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
elog "Removed ${PF}"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user