overlay/net-misc/expandurl-mastodon/expandurl-mastodon-9999.ebuild

30 lines
716 B
Bash
Raw Normal View History

2018-05-11 07:08:37 +02:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit git-r3 cmake-utils
DESCRIPTION="Mastodon bot that expands a shortened URL."
HOMEPAGE="https://github.com/tastytea/expandurl-mastodon"
EGIT_REPO_URI="https://github.com/tastytea/expandurl-mastodon.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND=">=dev-cpp/mastodon-cpp-9999
>=dev-cpp/curlpp-0.8.1"
DEPEND=">=dev-util/cmake-3.9.6
${RDEPEND}"
src_unpack() {
git-r3_src_unpack
}
2018-05-12 14:43:48 +02:00
src_install() {
emake DESTDIR="${D}" install
dodoc README.md
doinitd init/expandurl-mastodon.openrc expandurl-mastodon
2018-05-12 14:45:56 +02:00
echo "EXPANDURL_USER=\"expandurl\"" | doconfd - expandurl-mastodon
2018-05-12 14:43:48 +02:00
}