dev-util/cli: New package from nest
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
e1c793b7b9
commit
19432751cf
1
dev-util/cli/Manifest
Normal file
1
dev-util/cli/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST cli-1.2.0_pre20210722.tar.gz 120001 BLAKE2B 1aa33209a75d4531ac69895b3d7d8fd1624a07af7c9787ac2e6efb3333d88ccc44664dfb1745067367698613b1af273d7a7dbea31381dbd5c1379db2dfa3828c SHA512 9c7b00df2f780f1c4bd6fe8fb9782aecad07da008cac75d74f7b60eeabfca96694c57ed1bf8cdd8ac9e63f0b99e4f14b6f67dac6488187a44bcb997db42ba1b2
|
67
dev-util/cli/cli-1.2.0_pre20210722.ebuild
Normal file
67
dev-util/cli/cli-1.2.0_pre20210722.ebuild
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multiprocessing toolchain-funcs vcs-snapshot
|
||||
|
||||
MY_PV="a54c695"
|
||||
|
||||
DESCRIPTION="Command Line Interface compiler for C++"
|
||||
HOMEPAGE="https://www.codesynthesis.com/projects/cli/"
|
||||
SRC_URI="https://git.codesynthesis.com/cgit/${PN}/${PN}/snapshot/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="dev-cpp/libcutl"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-util/build2"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Create files needed for build
|
||||
touch cli/doc/cli.{1,xhtml} || die "touch failed"
|
||||
sed -i -e '/html2ps/d' \
|
||||
-e '/ps2pdf14/d' \
|
||||
cli/doc/doc.sh || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconfigargs=(
|
||||
config.cxx="$(tc-getCXX)"
|
||||
config.cxx.coptions="${CXXFLAGS}"
|
||||
config.cxx.loptions="${LDFLAGS}"
|
||||
config.bin.ar="$(tc-getAR)"
|
||||
config.bin.ranlib="$(tc-getRANLIB)"
|
||||
config.bin.lib="$(usex static-libs both shared)"
|
||||
config.install.lib="exec_root/$(get_libdir)"
|
||||
config.install.doc="data_root/share/doc/${PF}"
|
||||
)
|
||||
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake "${myconfigargs[@]}" configure: cli/
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake cli/
|
||||
# Compile man and docs
|
||||
pushd cli/doc || die "pushd failed"
|
||||
./doc.sh || die "doc.sh failed"
|
||||
popd || die "popd failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
MAKE=b MAKEOPTS="--jobs $(makeopts_jobs) -V" \
|
||||
emake config.install.root="${ED}/usr" install: cli/
|
||||
}
|
21
dev-util/cli/metadata.xml
Normal file
21
dev-util/cli/metadata.xml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Command Line Interface (CLI) definition language is a domain-specific
|
||||
language (DSL) for defining command line interfaces of C++ programs.
|
||||
It allows you to describe the options that your program supports,
|
||||
their types, default values, and documentation.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>mailto:cli-users@codesynthesis.com</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue