tkurbad-overlay/sci-electronics/pcb2gcode/pcb2gcode-9999.ebuild

62 lines
1.1 KiB
Bash
Raw Normal View History

2016-11-03 10:59:33 +01:00
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2020-02-15 17:47:19 +01:00
EAPI=7
2016-11-03 10:59:33 +01:00
inherit multilib
DESCRIPTION="Calculate GCode from given PCB layouts"
HOMEPAGE="http://sourceforge.net/apps/mediawiki/pcb2gcode/"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/pcb2gcode/pcb2gcode.git"
KEYWORDS=""
2020-02-15 17:47:19 +01:00
inherit autotools eutils git-r3
2016-11-03 10:59:33 +01:00
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
fi
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND=">=sci-electronics/gerbv-2.1.0"
2020-02-15 17:47:19 +01:00
DEPEND="dev-cpp/gtkmm:2.4
dev-libs/boost
${RDEPEND}"
2016-11-03 10:59:33 +01:00
src_prepare() {
2022-01-13 17:39:35 +01:00
#eapply "${FILESDIR}/${P}-gcc-11.patch"
2021-05-19 10:41:18 +02:00
2016-11-03 10:59:33 +01:00
if [[ ${PV} == "9999" ]] ; then
eautoreconf
2016-11-03 10:59:33 +01:00
fi
2020-02-15 17:47:19 +01:00
default
2016-11-03 10:59:33 +01:00
}
src_configure() {
default
# Workaround for GCC 10.2 / Boost 1.75
sed -i "${S}"/Makefile \
-e "/BOOST_CPPFLAGS_SYSTEM =/d" \
-e "/GEOS_CFLAGS_SYSTEM =/d" || die
}
2016-11-03 10:59:33 +01:00
src_install() {
cd "${BUILD_DIR}"
exeinto /usr/bin
doexe pcb2gcode
cd "${S}"
doman man/pcb2gcode.1
dodoc AUTHORS COPYING
}