app-misc/freediag - 1.08 (pentoo)

Search

Install

Install this version:

emerge -a =app-misc/freediag-1.08

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

autounmask =app-misc/freediag-1.08

Or alternatively:

emerge --autounmask-write -a =app-misc/freediag-1.08

Package Information

Description:
Free diagnostic software for OBD-II compliant motor vehicles
Homepage:
https://github.com/fenugrec/freediag
License:
GPL-3

Ebuild Details

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

EAPI=8

inherit cmake

AVC=( $(ver_rs 1- ' ') )
MY_PV="R${AVC[0]}_${AVC[1]}"

DESCRIPTION="Free diagnostic software for OBD-II compliant motor vehicles"
HOMEPAGE="https://github.com/fenugrec/freediag"
SRC_URI="https://github.com/fenugrec/freediag/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
IUSE="gui"

DEPEND="gui? ( x11-libs/fltk:* )"
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}/${P}_fix_scangui_compiling.patch" )

DOCS=( AUTHORS CHANGES COPYING README doc )

S="${WORKDIR}/${PN}-${MY_PV}"

src_prepare() {
	sed -i \
		-e 's:"README_v${PKGVERSIONMAJOR}_${PKGVERSIONMINOR}.txt"::g' \
		CMakeLists.txt || die

	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DBUILDGUI="$(usex gui)"
		-DUSE_RCFILE=ON
		-DUSE_INIFILE=ON
	)

	cmake_src_configure
}

USE Flags

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

Global/Standard Flags

gui

Inherited Eclasses

Dependencies

DEPEND

gui? ( x11-libs/fltk:* )

RDEPEND

gui? ( x11-libs/fltk:* )