2022-07-09 19:36:54 +02:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2021-08-13 00:14:34 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
2022-07-09 19:36:54 +02:00
|
|
|
|
2021-08-13 00:14:34 +02:00
|
|
|
NEED_EMACS="26.3"
|
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
inherit elisp
|
2021-08-13 00:14:34 +02:00
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
DESCRIPTION="An HTTP library for Emacs"
|
2021-08-13 00:14:34 +02:00
|
|
|
HOMEPAGE="https://github.com/alphapapa/plz.el"
|
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/alphapapa/plz.el.git"
|
|
|
|
else
|
|
|
|
MY_PN="${PN}.el"
|
|
|
|
SRC_URI="https://github.com/alphapapa/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
2021-08-13 00:14:34 +02:00
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
# Tests find files git and patching them to work without is too burdensome
|
|
|
|
RESTRICT="test"
|
|
|
|
fi
|
2021-08-13 00:14:34 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
RDEPEND="net-misc/curl"
|
|
|
|
|
2021-10-04 23:04:08 +02:00
|
|
|
SITEFILE="50${PN}-gentoo.el"
|
|
|
|
|
2022-07-09 19:36:54 +02:00
|
|
|
src_install() {
|
|
|
|
elisp_src_install
|
|
|
|
doinfo plz.info
|
|
|
|
}
|
2021-08-13 00:14:34 +02:00
|
|
|
|
|
|
|
src_test() {
|
|
|
|
emake test
|
|
|
|
}
|