mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 07:01:08 +00:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
59 lines
1.1 KiB
Bash
59 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MY_P="${PN}-$(ver_rs 2 -)"
|
|
DESCRIPTION="Console S-Lang-based editor"
|
|
HOMEPAGE="https://www.jedsoft.org/jed/"
|
|
SRC_URI="https://www.jedsoft.org/releases/jed/${MY_P}.tar.bz2"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~arm ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
|
|
IUSE="gpm gui xft"
|
|
|
|
RDEPEND=">=sys-libs/slang-2
|
|
gpm? ( sys-libs/gpm )
|
|
gui? (
|
|
x11-libs/libX11
|
|
xft? (
|
|
>=media-libs/freetype-2
|
|
x11-libs/libXft
|
|
)
|
|
)"
|
|
DEPEND="${RDEPEND}
|
|
gui? (
|
|
x11-libs/libXt
|
|
x11-base/xorg-proto
|
|
)"
|
|
|
|
src_prepare() {
|
|
# replace IDE mode with EMACS mode
|
|
sed -i -e 's/\(_Jed_Default_Emulation = \).*/\1"emacs";/' \
|
|
lib/jed.conf || die
|
|
eapply_user
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use_enable gpm) \
|
|
$(usex gui $(use_enable xft) --disable-xft) \
|
|
JED_ROOT="${EPREFIX}"/usr/share/jed
|
|
}
|
|
|
|
src_compile() {
|
|
emake
|
|
use gui && emake xjed
|
|
}
|
|
|
|
src_install() {
|
|
emake -j1 DESTDIR="${D}" install
|
|
|
|
dodoc changes.txt INSTALL{,.unx} README
|
|
doinfo info/jed*
|
|
|
|
insinto /etc
|
|
doins lib/jed.conf
|
|
}
|