diff --git a/media-gfx/ansilove/Manifest b/media-gfx/ansilove/Manifest new file mode 100644 index 0000000000..a37ef74384 --- /dev/null +++ b/media-gfx/ansilove/Manifest @@ -0,0 +1 @@ +DIST ansilove-4.1.5.tar.gz 41325 BLAKE2B fa0943406b5a905f30fd114ed9760a37da1bcb7bd8bb7575272d1cffadaf0302650c65af64e97f911cff7b9eb4283bedd6fc0fc13c9aa5be88c582c44925c30b SHA512 a84253b07d82b4d0598cf6936115476933636a978805fe243a671bbdbe15d0e589b45f9e4d7b6137e5f7ab22559b9d1a84a0508db5226ccc17e20687e190e553 diff --git a/media-gfx/ansilove/ansilove-4.1.5.ebuild b/media-gfx/ansilove/ansilove-4.1.5.ebuild new file mode 100644 index 0000000000..2aafc65c61 --- /dev/null +++ b/media-gfx/ansilove/ansilove-4.1.5.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="ANSI and ASCII art to PNG converter (using libansilove)" +HOMEPAGE="https://github.com/ansilove/ansilove/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ansilove/${PN}.git" +else + SRC_URI="https://github.com/ansilove/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="-seccomp" + +RDEPEND="dev-libs/libansilove" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DENABLE_SECCOMP=$(usex seccomp) + ) + cmake_src_configure +} + +pkg_postinst() { + if use seccomp; then + ewarn "Experimental seccomp support is enabled." + fi +} diff --git a/media-gfx/ansilove/ansilove-9999.ebuild b/media-gfx/ansilove/ansilove-9999.ebuild new file mode 100644 index 0000000000..2aafc65c61 --- /dev/null +++ b/media-gfx/ansilove/ansilove-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="ANSI and ASCII art to PNG converter (using libansilove)" +HOMEPAGE="https://github.com/ansilove/ansilove/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ansilove/${PN}.git" +else + SRC_URI="https://github.com/ansilove/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="-seccomp" + +RDEPEND="dev-libs/libansilove" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DENABLE_SECCOMP=$(usex seccomp) + ) + cmake_src_configure +} + +pkg_postinst() { + if use seccomp; then + ewarn "Experimental seccomp support is enabled." + fi +} diff --git a/media-gfx/ansilove/metadata.xml b/media-gfx/ansilove/metadata.xml new file mode 100644 index 0000000000..15ced110b6 --- /dev/null +++ b/media-gfx/ansilove/metadata.xml @@ -0,0 +1,29 @@ + + + + + + xgqt@riseup.net + Maciej Barć + + + AnsiLove is an ANSI and ASCII art to PNG converter, allowing to convert + ANSI and artscene-related file formats into PNG images, supporting ANSI + (.ANS), PCBoard (.PCB), Binary (.BIN), Artworx (.ADF), iCE Draw (.IDF), + Tundra (.TND) and XBin (.XB) formats. + It creates size optimized 4-bit PNG files and supports SAUCE (Standard + Architecture for Universal Comment Extensions), 80x25 and 80x50 PC fonts + (including all the 14 MS-DOS charsets), Amiga fonts, and iCE colors. + This is a complete rewrite of AnsiLove/PHP in the C programming language. + + + enable experimental seccomp support + + + + https://github.com/ansilove/ansilove/blob/master/ChangeLog + + https://github.com/ansilove/ansilove + ansilove/ansilove + +