sci-electronics/gerbv - 2.13.0 (gentoo)

Search

Install

Install this version:

emerge -a =sci-electronics/gerbv-2.13.0

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

autounmask =sci-electronics/gerbv-2.13.0

Or alternatively:

emerge --autounmask-write -a =sci-electronics/gerbv-2.13.0

Package Information

Description:
A RS-274X (Gerber) and NC drill (Excellon) file viewer
Homepage:
https://gerbv.github.io/
License:
GPL-2

Ebuild Details

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

EAPI=8

inherit cmake xdg

DESCRIPTION="A RS-274X (Gerber) and NC drill (Excellon) file viewer"
HOMEPAGE="https://gerbv.github.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc examples unit-mm"
RESTRICT="test"

RDEPEND="
	sys-devel/gettext
	x11-libs/gtk+:2
	x11-libs/cairo
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${PN}-2.13.0-no_compress_man.patch
	"${FILESDIR}"/${PN}-2.13.0-main_c_glib_strncasecmp.patch
	"${FILESDIR}"/${PN}-2.13.0-cmake_canonicalize_file_name.patch
	"${FILESDIR}"/${PN}-2.13.0-release_version.patch
)

src_configure() {
	# We're manually installing examples if desired
	sed -i 's/install(DIRECTORY example/#install(DIRECTORY example/' "${S}"/CMakeLists.txt || die
	cmake_src_configure
}

src_install() {
	rm README-{git,release}.txt || die
	cmake_src_install
	rm "${ED}/usr/$(get_libdir)/libgerbv.a" || die

	dodoc CONTRIBUTORS HACKING

	rm doc/Doxyfile.nopreprocessing || die
	if use doc; then
		find doc -name 'Makefile*' -delete || die
		dodoc -r doc/.
	fi

	if use examples; then
		find example -name 'Makefile*' -delete || die
		dodoc -r example/.
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p sci-electronics/gerbv | euse -E <flag> -p sci-electronics/gerbv | euse -D <flag> -p sci-electronics/gerbv

Global/Standard Flags

doc

Inherited Eclasses

xdg

Dependencies

DEPEND

	sys-devel/gettext
	x11-libs/gtk+:2
	x11-libs/cairo

RDEPEND

	sys-devel/gettext
	x11-libs/gtk+:2
	x11-libs/cairo

BDEPEND

virtual/pkgconfig

Manifest for 2.13.0

Type File Size Source URLs
DIST gerbv-2.13.0.tar.gz 4900124 bytes https://github.com/gerbv/gerbv/archive/refs/tags/v2.13.0.tar.gz