mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
42 lines
906 B
Bash
42 lines
906 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
|
|
inherit cmake-utils versionator
|
|
|
|
AVC=( $(get_version_components) )
|
|
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"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~x86 ~amd64"
|
|
IUSE="debug"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
|
|
DOCS=( AUTHORS CHANGES COPYING README doc )
|
|
|
|
src_prepare() {
|
|
sed -i -e 's:"README_v${PKGVERSIONMAJOR}_${PKGVERSIONMINOR}.txt"::g' CMakeLists.txt || die
|
|
default
|
|
}
|
|
|
|
src_configure() {
|
|
CMAKE_BUILD_TYPE=Release
|
|
use debug && CMAKE_BUILD_TYPE=Debug
|
|
|
|
local mycmakeargs=(
|
|
-DDBUILDGUI=ON
|
|
-DUSE_RCFILE=ON -DUSE_INIFILE=ON
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|