games-util/pmap - 1.2 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =games-util/pmap-1.2

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

autounmask =games-util/pmap-1.2

Or alternatively:

emerge --autounmask-write -a =games-util/pmap-1.2

Package Information

Description:
PlayStation 2 Mechacon Adjustment Program, for CD/DVD subsystem maintenance.
Homepage:
https://github.com/ps2homebrew/PMAP
License:
all-rights-reserved

Ebuild Details

Version EAPI Keywords Slot
1.2 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

MY_PN="PMAP"

DESCRIPTION="PlayStation 2 Mechacon Adjustment Program, for CD/DVD subsystem maintenance."
HOMEPAGE="https://github.com/ps2homebrew/PMAP"
SRC_URI="https://github.com/ps2homebrew/${MY_PN}/archive/refs/tags/v${PV}.tar.gz
	-> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"

# Upstream ships no licence file and states no terms anywhere in the repository.
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist mirror"

PATCHES=( "${FILESDIR}/${P}-linux-debug-stubs.patch" )

src_prepare() {
	default

	# Upstream never passes LDFLAGS when linking.
	# shellcheck disable=SC2016
	sed -i -e 's|$(CC) -o $(ELF)|$(CC) $(LDFLAGS) -o $(ELF)|' \
		PMAP-linux/Makefile || die
}

src_compile() {
	emake -C PMAP-linux CC="$(tc-getCC)" CFLAGS="${CFLAGS} -I."
}

src_install() {
	# sys-process/procps already owns /usr/bin/pmap.
	newbin PMAP-linux/pmap "${PN}-ps2"
	dodoc README.txt Changelog.txt
}

pkg_postinst() {
	elog "The executable is installed as ${PN}-ps2 because sys-process/procps"
	elog "already owns /usr/bin/${PN}."
}

Inherited Eclasses

Manifest for 1.2

Type File Size Source URLs
DIST pmap-1.2.tar.gz 73209 bytes https://github.com/ps2homebrew/PMAP/archive/refs/tags/v1.2.tar.gz