forked from tastytea/overlay
dev-util/qml-lsp: new package, add 0.2.0
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
96b865eadb
commit
a3cb1572c3
2
dev-util/qml-lsp/Manifest
Normal file
2
dev-util/qml-lsp/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST qml-lsp-0.2.0-vendor.tar.xz 205764 BLAKE2B 92d57e5076ce7c47297baee1c5f011ac09ae5f142f3b39ed6875de5ed85de223caa9fa7c601b2be310225c5f1b157d78362b7011db373aa761ceac32b8437b6a SHA512 18d7c7b6f6570005ae2cbda0330d3d00786e149b2a2c2721fe5221d82089bf09b20e60de2e27a98bf89c45610eef706fab28b688b86cd007f6accab48de26685
|
||||
DIST qml-lsp-rjienrlwey-number-two.tar.bz2 95357 BLAKE2B a6262a7133d43e72970eb167facaccfae615c1ba25aa6750a2b16cafcaca8c4b94826c4c2b5859b048d20ae7295255b74fa2b080a6787e4b23095f4fb217720f SHA512 5ed79f2d8debe058bb7ad1d1453d4fb768869ed93d8a1bfef072afe397ee86f8c13f99491ef8ae5c65f8aca6fa39c1135919d3f485b8ef67e10315319231ea71
|
25
dev-util/qml-lsp/files/qml-lsp-0.2.0-find-qmake5.patch
Normal file
25
dev-util/qml-lsp/files/qml-lsp-0.2.0-find-qmake5.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 045d33dfbc714e95464b295be4b5a864db82e7e6 Mon Sep 17 00:00:00 2001
|
||||
From: tastytea <tastytea@tastytea.de>
|
||||
Date: Mon, 29 Aug 2022 19:57:45 +0200
|
||||
Subject: [PATCH] find qmake5
|
||||
|
||||
---
|
||||
qt-libpaths/libpaths.go | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/qt-libpaths/libpaths.go b/qt-libpaths/libpaths.go
|
||||
index bf59118..db1c4ae 100644
|
||||
--- a/qt-libpaths/libpaths.go
|
||||
+++ b/qt-libpaths/libpaths.go
|
||||
@@ -18,7 +18,7 @@ func find(b []byte) string {
|
||||
func get() (string, error) {
|
||||
var err error
|
||||
var output []byte
|
||||
- for _, it := range []string{"qmake", "qmake-qt5"} {
|
||||
+ for _, it := range []string{"qmake5", "qmake", "qmake-qt5"} {
|
||||
output, err = exec.Command(it, "-query").Output()
|
||||
if err != nil {
|
||||
continue
|
||||
--
|
||||
2.35.1
|
||||
|
8
dev-util/qml-lsp/metadata.xml
Normal file
8
dev-util/qml-lsp/metadata.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>Ronny (tastytea) Gutbrod</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
47
dev-util/qml-lsp/qml-lsp-0.2.0.ebuild
Normal file
47
dev-util/qml-lsp/qml-lsp-0.2.0.ebuild
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
# i chose to interpret the version as one = 0.1.0, two = 0.2.0, …
|
||||
MY_V="rjienrlwey-number-two"
|
||||
|
||||
DESCRIPTION="Collection of QML tools, including qml-lsp, qml-dap, and qml-refactor-fairy"
|
||||
HOMEPAGE="https://invent.kde.org/sdk/qml-lsp"
|
||||
SRC_URI="
|
||||
https://invent.kde.org/sdk/${PN}/-/archive/${MY_V}/${PN}-${MY_V}.tar.bz2
|
||||
https://tastytea.de/files/gentoo/${P}-vendor.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_V}"
|
||||
|
||||
# NOTE: Generate vendor tarball like this:
|
||||
# go mod vendor && cd ..
|
||||
# tar -caf ${P}-vendor.tar.xz qml-lsp-rjienrlwey-*/vendor
|
||||
|
||||
LICENSE="GPL-3+ MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-libs/tree-sitter"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
dev-qt/qtcore
|
||||
"
|
||||
BDEPEND=""
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.2.0-find-qmake5.patch )
|
||||
|
||||
src_compile() {
|
||||
ego build -ldflags '-linkmode external'
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
einstalldocs
|
||||
}
|
Loading…
Reference in New Issue
Block a user