Files
guru/net-dialup/syncterm/syncterm-1.1.ebuild
Seth M. Price 5b84c0f56b net-dialup/syncterm: fix various QA issues
cryptlib’s build system is awful.  Hopefully this is the last
of what I need to do to avoid QA issues on the automated testing
box thingy; I’ll just wait and see.

No revision bump since nothing changed for users who successfully
built it before.

Bug: https://bugs.gentoo.org/933185
Bug: https://bugs.gentoo.org/933184
Signed-off-by: Seth M. Price <sprice623@aol.com>
2024-11-27 17:34:40 -05:00

55 lines
1.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop toolchain-funcs
DESCRIPTION="BBS (bulletin board system) terminal"
HOMEPAGE="https://syncterm.bbsdev.net/"
SRC_URI="https://sourceforge.net/projects/syncterm/files/syncterm/syncterm-${PV}/syncterm-${PV}-src.tgz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="ncurses sdl X"
DEPEND="ncurses? ( sys-libs/ncurses )
sdl? ( media-libs/libsdl2 )
X? ( x11-libs/libX11 )"
RDEPEND="${DEPEND}"
src_prepare() {
tc-export AR STRIP
eapply "${FILESDIR}/${P}_use-sched-yield-instead-of-pthread-yield.patch"
eapply "${FILESDIR}/${P}_do-not-strip-3rdp-test.patch"
eapply "${FILESDIR}/${P}_disable-parallel-build.patch"
eapply "${FILESDIR}/${P}_respect-toolchain-variables.patch"
eapply_user
}
src_compile() {
# FIXME: probably bad form
cd "${S}/src/syncterm"
# NOTE: build system automatically detects whether
# optional dependencies are there, strangely
emake
emake syncterm.man
# doman complains about wrong filename otherwise
cp syncterm.man syncterm.1
}
src_install() {
# Regular emake install violates policy in multiple ways
dobin src/syncterm/gcc.linux.x64.exe.debug/syncterm
doicon src/syncterm/syncterm.png
domenu src/syncterm/syncterm.desktop
doman src/syncterm/syncterm.1
# Things not installed by emake install
dodoc src/syncterm/CHANGES
}