net-misc/drawterm - 9999 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =net-misc/drawterm-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/drawterm-9999

Or alternatively:

emerge --autounmask-write -a =net-misc/drawterm-9999

Package Information

Description:
Connect to Plan 9 CPU servers from other operating systems
Homepage:
https://drawterm.9front.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~arm ~arm64 ~mips ~ppc ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

if [ "${PV}" == "9999" ]; then
	inherit git-r3
	EGIT_REPO_URI="git://git.9front.org/plan9front/drawterm"
else
	EGIT_COMMIT="45ab4d2ce7fd2443ad7264bd0ce14bf294d8b9e6"
	SRC_URI="http://git.9front.org/git/plan9front/drawterm/${EGIT_COMMIT}/snap.tar.gz -> drawterm-${EGIT_COMMIT}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~riscv ~sparc ~x86"
	S="${WORKDIR}/drawterm"
fi

DESCRIPTION="Connect to Plan 9 CPU servers from other operating systems"
HOMEPAGE="https://drawterm.9front.org/"
LICENSE="MIT"
SLOT="0"
USE_AUDIO="alsa pipewire sndio"
USE_GUI="fbdev wayland X"
IUSE="${USE_AUDIO} ${USE_GUI}"
REQUIRED_USE="?? ( ${USE_AUDIO} ) ^^ ( ${USE_GUI} )"

RDEPEND="
	alsa? ( media-libs/alsa-lib )
	pipewire? ( media-video/pipewire:= )
	sndio? ( media-sound/sndio:= )
	wayland? (
		dev-libs/wayland
		dev-libs/wayland-protocols
		x11-libs/libxkbcommon[wayland]
		gui-libs/libdecor
	)
	X? ( x11-libs/libX11 )
"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	wayland? ( dev-util/wayland-scanner )
"

src_prepare() {
	default

	sed -i \
		-e '1iPKG_CONFIG ?= pkg-config' \
		-e 's,pkg-config,$(PKG_CONFIG),' \
		gui-wl/Makefile || die
}

src_configure() {
	export CONF=linux

	export CFLAGS="${CFLAGS}"' -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -D_THREAD_SAFE -DPTHREAD $(PTHREAD) -D_REENTRANT'
	export LDFLAGS="${LDFLAGS} -pthread"
	export LDADD="-ggdb -lm"

	local deps=( )

	if use alsa; then
		export AUDIO="alsa"
		deps+=( alsa )
	elif use pipewire; then
		export AUDIO="pipewire"
		deps+=( libpipewire-0.3 )
	elif use sndio; then
		export AUDIO="sndio"
		deps+=( sndio )
	else
		export AUDIO="none"
	fi

	if use fbdev; then
		export GUI="fbdev"
	elif use wayland; then
		export GUI="wl"
		deps+=( wayland-client xkbcommon libdecor-0 )
	elif use X; then
		export GUI="x11"
		deps+=( x11 )
	fi

	export CFLAGS="${CFLAGS} $(pkg-config --cflags "${deps[@]}")"
	export LDADD="${LDADD} $(pkg-config --libs "${deps[@]}")"
}

src_compile() {
	emake \
		AS="$(tc-getAS)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
		CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
		LDADD="${LDADD}" GUI="${GUI}" AUDIO="${AUDIO}"
}

src_install() {
	dobin drawterm
	doman drawterm.1
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-misc/drawterm | euse -E <flag> -p net-misc/drawterm | euse -D <flag> -p net-misc/drawterm

Global/Standard Flags

X

Inherited Eclasses

Dependencies

DEPEND

	alsa? ( media-libs/alsa-lib )
	pipewire? ( media-video/pipewire:= )
	sndio? ( media-sound/sndio:= )
	wayland? (
		dev-libs/wayland
		dev-libs/wayland-protocols
		x11-libs/libxkbcommon[wayland]
		gui-libs/libdecor
	)
	X? ( x11-libs/libX11 )

RDEPEND

	alsa? ( media-libs/alsa-lib )
	pipewire? ( media-video/pipewire:= )
	sndio? ( media-sound/sndio:= )
	wayland? (
		dev-libs/wayland
		dev-libs/wayland-protocols
		x11-libs/libxkbcommon[wayland]
		gui-libs/libdecor
	)
	X? ( x11-libs/libX11 )

BDEPEND

	virtual/pkgconfig
	wayland? ( dev-util/wayland-scanner )

Manifest for 9999

Type File Size Source URLs
DIST drawterm-45ab4d2ce7fd2443ad7264bd0ce14bf294d8b9e6.tar.gz 616510 bytes http://git.9front.org/git/plan9front/drawterm/45ab4d2ce7fd2443ad7264bd0ce14bf294d8b9e6/snap.tar.gz
http://git.9front.org/plan9front/drawterm/45ab4d2ce7fd2443ad7264bd0ce14bf294d8b9e6/snap.tar.gz