sys-fs/efsw - 1.1.0 (junkdrawer)

Search

Package Information

Description:
C++ cross-platform file system watcher and notifier
Homepage:
https://github.com/SpartanJ/efsw

Ebuild Details

Version EAPI Keywords Slot
1.1.0 7 ~amd64 0
View Raw Ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="C++ cross-platform file system watcher and notifier"
HOMEPAGE="https://github.com/SpartanJ/efsw"

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/SpartanJ/efsw"
else
	SRC_URI="https://github.com/SpartanJ/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"
IUSE="debug static-libs"

DEPEND="dev-util/premake:4"

src_prepare() {
	default
	premake4 gmake || die
}

src_compile() {
	local myconf="efsw-shared-lib"
	# config=relwithdbginfo is unstripped release
	use !debug && myconf+=" config=relwithdbginfo"
	use static-libs && myconf+=" efsw-static-lib"
	emake -C make/linux ARCH="" ${myconf}
}

src_install() {
	insinto /usr/include/efsw
	doins include/efsw/*.h

	dolib.so lib/libefsw.so*

	if use static-libs ; then
		dolib.a lib/libefsw.a
	fi
}

USE Flags

Dependencies

DEPEND

dev-util/premake:4

Manifest for 1.1.0

Type File Size Source URLs
DIST efsw-1.1.0.tar.gz 66455 bytes https://github.com/SpartanJ/efsw/archive/refs/tags/1.1.0.tar.gz