diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-20 12:05:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-20 12:05:24 +0100 |
commit | da7ae1dd1fccb6b3c0e4763ab983ad96d57bf463 (patch) | |
tree | 0a7a1b7b3ad60c3b21c697e75908b256fc9ed6b1 /app-misc/boxes/boxes-2.3.0.ebuild | |
parent | b6cfc0c19effe2d9f7b8ab303cd00636f16da253 (diff) |
gentoo auto-resync : 20:04:2024 - 12:05:23
Diffstat (limited to 'app-misc/boxes/boxes-2.3.0.ebuild')
-rw-r--r-- | app-misc/boxes/boxes-2.3.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-misc/boxes/boxes-2.3.0.ebuild b/app-misc/boxes/boxes-2.3.0.ebuild new file mode 100644 index 000000000000..5315f2592d7e --- /dev/null +++ b/app-misc/boxes/boxes-2.3.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Draw any kind of boxes around your text" +HOMEPAGE="https://boxes.thomasjensen.com/ https://github.com/ascii-boxes/boxes" +SRC_URI="https://github.com/ascii-boxes/boxes/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre2:=[pcre32] + dev-libs/libunistring:= + sys-libs/ncurses:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + app-alternatives/yacc + app-alternatives/lex + test? ( app-editors/vim-core ) +" + +PATCHES=( "${FILESDIR}/${P}-ncurses-gentoo.patch" ) + +src_prepare() { + default + + sed \ + -e 's:STRIP=true:STRIP=false:g' \ + -i src/Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS_ADDTL="${CFLAGS}" LDFLAGS_ADDTL="${LDFLAGS}" +} + +src_install() { + dobin out/boxes + doman doc/boxes.1 + insinto /usr/share + newins boxes-config boxes + einstalldocs +} |