new: media-gfx/gd-captcha (simple captcha for ejabberd)

This commit is contained in:
Joerg Deckert 2020-04-17 19:58:21 +02:00
parent 5d34c60b0b
commit b0369d568a
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST gd-captcha-20150810.tar.gz 196911 BLAKE2B d764f3121738e07a19092d3109948766ed1889a4b651695c0901df970faba2e9ac3087909b8a1c283984a75193eea2c61550b6b690da8615b066f4a5e014f35e SHA512 b879cf18cdb02f699d5ed794779b82b355db4ea91bb52089f3a9916a15f4e445633787a784f724479b0b69876e3b121ccc7febe2e9ad8176a544afb385b68af0
EBUILD gd-captcha-20150810.ebuild 736 BLAKE2B 23e3f4903e423c9fc750d4dc7b13a165093355fb000dfad3bcf9ce7d09cbef0a4fd099405514a7ca962184475130aa3872f069015394edcca4998be9d7e7e2b2 SHA512 ef8ee71c4daa02f6d7d11779d4949835a5801c9b49bc36429e4ba2a2a89e4766a6500d2a923446e315a15e7deaef1c58a4330a330ee4876cfaf24e2efd2d8db2

View File

@ -0,0 +1,32 @@
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_COMMIT="e704b9b62c263506852c4c876010414691d95873"
DESCRIPTION="Very simple CAPTCHA generator in C using GD, compatible with ejabberd"
HOMEPAGE="https://github.com/dotdoom/${PN}"
SRC_URI="${HOMEPAGE}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="media-libs/gd[png,truetype]"
DEPEND="${RDEPEND}
media-fonts/dejavu"
S=${WORKDIR}/${PN}-${MY_COMMIT}
src_prepare() {
rm captcha.ttf
ln -sf /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf captcha.ttf
eapply_user
}
src_install() {
dobin captcha
dodoc README.md
}