Updates
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
AUX inkscape-silhouette-cleanup.patch 1082 BLAKE2B 6d039b79b149468d1b6a677eb5f255bafddc66780c87b24bb53e03c3cdad84a1a7fdb06b892e573f546f43c100aeeb55588a14d54c052849f953c7be193ac471 SHA512 660aadf376f124a1b2f1f3daf24db9b3a998e565f92208e713de7f888601ed852080812120b8c3098dd1d955778d6cf4ba050d8d3254764503d5177026ab3660
|
||||
EBUILD inkscape-silhouette-9999.ebuild 994 BLAKE2B b5d0187e159db11a34cdaa50fe00aa57e2ac2dd9d6ffd80a8231a1852155dd9b1872a1d97cf3aefc4489e593b85a5785fd96019a57e97ea0dfaa243ca56422ed SHA512 fdb3d22ec0de6a2a8a69e08367cbf7dd5f6296012ace98a7a08996da3a5984ff0b1032991242311816a251b9c1c395c57820c6e0fa143a6b4f7e31523cf9ec9c
|
||||
@@ -0,0 +1,23 @@
|
||||
diff -urN inkscape-silhouette-9999.orig/Makefile inkscape-silhouette-9999/Makefile
|
||||
--- inkscape-silhouette-9999.orig/Makefile 2023-05-24 08:56:46.538789895 +0200
|
||||
+++ inkscape-silhouette-9999/Makefile 2023-05-24 08:59:01.493223179 +0200
|
||||
@@ -37,7 +37,6 @@
|
||||
install: mo
|
||||
mkdir -p $(DEST)
|
||||
@# CAUTION: cp -a does not work under fakeroot. Use cp -r instead.
|
||||
- cp -r silhouette $(DEST)
|
||||
install -m 755 *silhouette*.py $(DEST)
|
||||
install -m 644 *.inx $(DEST)
|
||||
cp -r locale $(LOCALE)
|
||||
diff -urN inkscape-silhouette-9999.orig/silhouette/Graphtec.py inkscape-silhouette-9999/silhouette/Graphtec.py
|
||||
--- inkscape-silhouette-9999.orig/silhouette/Graphtec.py 2023-05-24 08:56:46.585456942 +0200
|
||||
+++ inkscape-silhouette-9999/silhouette/Graphtec.py 2023-05-24 08:58:05.419432821 +0200
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
usb_reset_needed = False # https://github.com/fablabnbg/inkscape-silhouette/issues/10
|
||||
|
||||
-sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/pyusb-1.0.2') # have a pyusb fallback
|
||||
-
|
||||
sys_platform = sys.platform.lower()
|
||||
if sys_platform.startswith('win'):
|
||||
import usb.core
|
||||
@@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
inherit python-single-r1 udev
|
||||
|
||||
DESCRIPTION="Drive Silhouette vinyl cutters from within inkscape."
|
||||
HOMEPAGE="https://github.com/fablabnbg/inkscape-silhouette"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/fablabnbg/${PN}.git"
|
||||
KEYWORDS=""
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SRC_URI="https://github.com/fablabnbg/${PN}/archive/refs/tags/v${PV}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=media-gfx/inkscape-1.0
|
||||
dev-python/pyusb
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( Commands.md HISTORY.txt LICENSE README.md )
|
||||
PATCHES=( "${FILESDIR}/${PN}-cleanup.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -r "${S}"/silhouette/pyusb-1.*
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake mo
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_domodule silhouette
|
||||
|
||||
DESTDIR="${D}" emake install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
Reference in New Issue
Block a user