mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
sci-electronics/dsview: fix version representation
Closes: https://bugs.gentoo.org/848402 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST dsview-1.12.tar.gz 8150237 BLAKE2B 0f746d0691f006d368cf9f40bf0c1b91223a7f6011d0ce55bdded7924ef940ecb18eec4bfe4cf842eea7eda85e97f3516a6f07e7e361eff991191e6d8bf7628c SHA512 a0b90d654ea64121540815627e8559c147a0b3bb77d10b65d98587b1f67dc3c0ed4d1c022cd686c31aab2879ee602eade69a02f32c5c9947a3bbdf1e7ab475dd
|
||||
DIST dsview-1.1.2.tar.gz 8150237 BLAKE2B 0f746d0691f006d368cf9f40bf0c1b91223a7f6011d0ce55bdded7924ef940ecb18eec4bfe4cf842eea7eda85e97f3516a6f07e7e361eff991191e6d8bf7628c SHA512 a0b90d654ea64121540815627e8559c147a0b3bb77d10b65d98587b1f67dc3c0ed4d1c022cd686c31aab2879ee602eade69a02f32c5c9947a3bbdf1e7ab475dd
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
GITHUB_PN="DSView"
|
||||
MY_PV="$(ver_rs 2 '')" # 'a.b.c' -> 'a.bc'
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit cmake python-r1 toolchain-funcs udev xdg
|
||||
|
||||
@@ -18,9 +19,9 @@ if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/DreamSourceLab/${GITHUB_PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/DreamSourceLab/${GITHUB_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/DreamSourceLab/${GITHUB_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${GITHUB_PN}-${PV}"
|
||||
S="${WORKDIR}/${GITHUB_PN}-${MY_PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
@@ -106,6 +107,11 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
udev_reload
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
xdg_pkg_postrm
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9} )
|
||||
GITHUB_PN="DSView"
|
||||
MY_PV="$(ver_rs 2 '')" # 'a.b.c' -> 'a.bc'
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit cmake python-r1 toolchain-funcs udev xdg
|
||||
inherit cmake python-r1 udev xdg
|
||||
|
||||
DESCRIPTION="An open source multi-function instrument"
|
||||
HOMEPAGE="
|
||||
@@ -18,9 +19,9 @@ if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/DreamSourceLab/${GITHUB_PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/DreamSourceLab/${GITHUB_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/DreamSourceLab/${GITHUB_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${GITHUB_PN}-${PV}"
|
||||
S="${WORKDIR}/${GITHUB_PN}-${MY_PV}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
@@ -46,57 +47,24 @@ DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
export CC="$(tc-getCC)"
|
||||
export AR="$(tc-getAR)"
|
||||
|
||||
default
|
||||
|
||||
local LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
grep -rl "/usr/local/lib" "${S}" | xargs sed -i "s@/usr/local/lib@${LIBDIR}@g" || die
|
||||
grep -rl "/usr/local" "${S}" | xargs sed -i "s@/usr/local@/usr@g" || die
|
||||
cd "${S}/libsigrok4DSL" || die
|
||||
sh ./autogen.sh || die
|
||||
cd "${S}/libsigrokdecode4DSL" || die
|
||||
sh ./autogen.sh || die
|
||||
}
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local LIBDIR="/usr/$(get_libdir)"
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
cd "${S}/libsigrok4DSL" || die
|
||||
sh ./configure --libdir=${LIBDIR} --prefix=/usr || die
|
||||
cd "${S}/libsigrokdecode4DSL" || die
|
||||
sh ./configure --libdir=${LIBDIR} --prefix=/usr || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}/libsigrok4DSL" || die
|
||||
emake
|
||||
cd "${S}/libsigrokdecode4DSL" || die
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
cd "${S}/libsigrok4DSL" || die
|
||||
emake DESTDIR="${D}" install
|
||||
cd "${S}/libsigrokdecode4DSL" || die
|
||||
emake DESTDIR="${D}" install
|
||||
cd "${S}/DSView" || die
|
||||
|
||||
DESTDIR="${D}" \
|
||||
PKG_CONFIG_PATH="${D}${LIBDIR}/pkgconfig" \
|
||||
CFLAGS="-I${D}/usr/include" \
|
||||
CXXFLAGS="-I${D}/usr/include" \
|
||||
LDFLAGS="-L${D}${LIBDIR}" \
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr . || die
|
||||
emake DESTDIR="${D}" install
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
udev_reload
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
xdg_pkg_postrm
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/DSView/pv/view/viewport.cpp
|
||||
+++ b/DSView/pv/view/viewport.cpp
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include <QMouseEvent>
|
||||
#include <QStyleOption>
|
||||
-
|
||||
+#include <QPainterPath>
|
||||
|
||||
#include <math.h>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
|
||||
Reference in New Issue
Block a user