net-libs/liblockfile - 1.17 (gentoo)

Search

Package Information

Description:
Implements functions designed to lock the standard mailboxes
Homepage:
https://github.com/miquels/liblockfile
License:
LGPL-2

Ebuild Details

Version EAPI Keywords Slot
1.17 7 ~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools toolchain-funcs

DESCRIPTION="Implements functions designed to lock the standard mailboxes"
HOMEPAGE="https://github.com/miquels/liblockfile"
SRC_URI="https://github.com/miquels/liblockfile/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
IUSE="static-libs"

RDEPEND="acct-group/mail"
BDEPEND="${RDEPEND}"

DOCS=( Changelog README )

PATCHES=(
	"${FILESDIR}/${PN}-1.16-makefile.patch"
)

src_prepare() {
	default

	# I don't feel like making the Makefile portable
	if [[ ${CHOST} == *-darwin* ]] ; then
		cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in || die
	fi

	eautoreconf
}

src_configure() {
	local grp=mail

	if use prefix ; then
		# We never want to use LDCONFIG
		export LDCONFIG=${EPREFIX}/bin/true
		# In unprivileged installs this is "mail"
		grp=$(id -g)
	fi

	local myeconfargs=(
		--with-mailgroup=${grp}
		--enable-shared
	)

	econf "${myeconfargs[@]}"
}

src_compile() {
	emake AR="$(tc-getAR)"
}

src_install() {
	default

	if ! use static-libs ; then
		find "${ED}" -type f -name "*.a" -delete || die
	fi
}

USE Flags

Dependencies

RDEPEND

acct-group/mail

BDEPEND

acct-group/mail

Manifest for 1.17

Type File Size Source URLs
DIST liblockfile-1.17.tar.gz 69834 bytes https://github.com/miquels/liblockfile/archive/v1.17.tar.gz