unitas/media-gfx/gd-captcha/gd-captcha-20150810.ebuild

32 lines
736 B
Bash

# 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
}