Merge updates from master

This commit is contained in:
Repository mirror & CI
2021-04-19 08:19:56 +00:00
36 changed files with 893 additions and 67 deletions

View File

@@ -64,7 +64,9 @@ src_install(){
# I will use only npm provided with package itself
# as nodejs is not required to make it working (and it is really big).
fperms +x /opt/"${PN}"/resources/app/apm/bin/*
fperms +x /opt/"${PN}"/resources/app/apm/bin/apm
fperms +x /opt/"${PN}"/resources/app/apm/bin/node
fperms +x /opt/"${PN}"/resources/app/apm/bin/npm
doicon atom.png
make_desktop_entry "/opt/atom-bin/atom %U" "Atom" "atom" \

View File

@@ -29,6 +29,7 @@ RDEPEND="
x11-libs/gtk+:3
x11-libs/libnotify
x11-libs/libxkbcommon
x11-libs/libxkbfile
x11-libs/libXScrnSaver
x11-libs/libXtst
x11-libs/pango

View File

@@ -29,6 +29,7 @@ RDEPEND="
x11-libs/gtk+:3
x11-libs/libnotify
x11-libs/libxkbcommon
x11-libs/libxkbfile
x11-libs/libXScrnSaver
x11-libs/libXtst
x11-libs/pango

View File

@@ -29,6 +29,7 @@ RDEPEND="
x11-libs/gtk+:3
x11-libs/libnotify
x11-libs/libxkbcommon
x11-libs/libxkbfile
x11-libs/libXScrnSaver
x11-libs/libXtst
x11-libs/pango

View File

@@ -18,3 +18,7 @@ RDEPEND="${BDEPEND}"
SITEFILE="50${PN}-gentoo.el"
DOCS="README.md"
# Running tests requires a lot of external dependencies that don't exist in
# portage
RESTRICT=test

View File

@@ -1,4 +1,4 @@
# Copyright 2020 Gentoo Authors
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -59,6 +59,8 @@ RDEPEND="
dev-vcs/git
"
PATCHES=( "${FILESDIR}/${PN}-6.1.1_remove-failing-tests.patch" )
src_compile() {
local -a mygoargs=(
-ldflags "-X main.version=${PV}"

View File

@@ -0,0 +1,422 @@
From 0030445c7fef2c1fcf6701d77ee1e3400c044dea Mon Sep 17 00:00:00 2001
From: tastytea <tastytea@tastytea.de>
Date: Mon, 19 Apr 2021 09:24:31 +0200
Subject: [PATCH] Remove failing tests.
Remove all tests which require network access. Unused imports make the
tests fail.
---
antibodylib/antibody_test.go | 105 +------------------------------
bundle/bundle_test.go | 59 ------------------
project/git_test.go | 117 -----------------------------------
project/project_test.go | 46 --------------
4 files changed, 2 insertions(+), 325 deletions(-)
diff --git a/antibodylib/antibody_test.go b/antibodylib/antibody_test.go
index 752ca07..ea2d7ee 100644
--- a/antibodylib/antibody_test.go
+++ b/antibodylib/antibody_test.go
@@ -5,40 +5,11 @@ import (
"io/ioutil"
"os"
"runtime"
- "strings"
"testing"
"github.com/stretchr/testify/require"
)
-func TestAntibody(t *testing.T) {
- home := home()
- bundles := []string{
- "# comments also are allowed",
- "caarlos0/ports kind:path # comment at the end of the line",
- "caarlos0/jvm kind:path branch:gh-pages",
- "caarlos0/zsh-open-pr kind:zsh",
- "",
- " ",
- " # trick play",
- "/tmp kind:path",
- }
- sh, err := New(
- home,
- bytes.NewBufferString(strings.Join(bundles, "\n")),
- runtime.NumCPU(),
- ).Bundle()
- require.NoError(t, err)
- files, err := ioutil.ReadDir(home)
- require.NoError(t, err)
- require.Len(t, files, 3)
- require.Contains(t, sh, `export PATH="/tmp:$PATH"`)
- require.Contains(t, sh, `export PATH="`+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-ports:$PATH"`)
- require.Contains(t, sh, `export PATH="`+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-jvm:$PATH"`)
- // nolint: lll
- require.Contains(t, sh, `source `+home+`/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-zsh-open-pr/git-open-pr.plugin.zsh`)
-}
-
func TestAntibodyError(t *testing.T) {
home := home()
bundles := bytes.NewBufferString("invalid-repo")
@@ -47,80 +18,8 @@ func TestAntibodyError(t *testing.T) {
require.Empty(t, sh)
}
-func TestMultipleRepositories(t *testing.T) {
- home := home()
- bundles := []string{
- "# this block is in alphabetic order",
- "caarlos0/git-add-remote kind:path",
- "caarlos0/jvm",
- "caarlos0/ports kind:path",
- "caarlos0/zsh-git-fetch-merge kind:path",
- "caarlos0/zsh-git-sync kind:path",
- "caarlos0/zsh-mkc",
- "caarlos0/zsh-open-pr kind:path",
- "mafredri/zsh-async",
- "rupa/z",
- "Tarrasch/zsh-bd",
- "wbinglee/zsh-wakatime",
- "zsh-users/zsh-completions",
- "zsh-users/zsh-autosuggestions",
- "",
- "robbyrussell/oh-my-zsh path:plugins/asdf",
- "robbyrussell/oh-my-zsh path:plugins/autoenv",
- "# these should be at last!",
- "sindresorhus/pure",
- "zsh-users/zsh-syntax-highlighting",
- "zsh-users/zsh-history-substring-search",
- }
- sh, err := New(
- home,
- bytes.NewBufferString(strings.Join(bundles, "\n")),
- runtime.NumCPU(),
- ).Bundle()
- require.NoError(t, err)
- require.Len(t, strings.Split(sh, "\n"), 31)
-}
-
-// BenchmarkDownload-8 1 2907868713 ns/op 480296 B/op 2996 allocs/op v1
-// BenchmarkDownload-8 1 2708120385 ns/op 475904 B/op 3052 allocs/op v2
-func BenchmarkDownload(b *testing.B) {
- var bundles = strings.Join([]string{
- "robbyrussell/oh-my-zsh path:plugins/aws",
- "caarlos0/git-add-remote kind:path",
- "caarlos0/jvm",
- "caarlos0/ports kind:path",
- "",
- "# comment whatever",
- "caarlos0/zsh-git-fetch-merge kind:path",
- "robbyrussell/oh-my-zsh path:plugins/battery",
- "caarlos0/zsh-git-sync kind:path",
- "caarlos0/zsh-mkc",
- "caarlos0/zsh-open-pr kind:path",
- "robbyrussell/oh-my-zsh path:plugins/asdf",
- "mafredri/zsh-async",
- "rupa/z",
- "Tarrasch/zsh-bd",
- "",
- "Linuxbrew/brew path:completions/zsh kind:fpath",
- "wbinglee/zsh-wakatime",
- "zsh-users/zsh-completions",
- "zsh-users/zsh-autosuggestions",
- "robbyrussell/oh-my-zsh path:plugins/autoenv",
- "# these should be at last!",
- "sindresorhus/pure",
- "zsh-users/zsh-syntax-highlighting",
- "zsh-users/zsh-history-substring-search",
- }, "\n")
- for i := 0; i < b.N; i++ {
- home := home()
- _, err := New(
- home,
- bytes.NewBufferString(bundles),
- runtime.NumCPU(),
- ).Bundle()
- require.NoError(b, err)
- }
-}
+// BenchmarkDownload-8 1 2907868713 ns/op 480296 B/op 2996 allocs/op v1
+// BenchmarkDownload-8 1 2708120385 ns/op 475904 B/op 3052 allocs/op v2
func TestHome(t *testing.T) {
h, err := Home()
diff --git a/bundle/bundle_test.go b/bundle/bundle_test.go
index 78c4b70..4c72d34 100644
--- a/bundle/bundle_test.go
+++ b/bundle/bundle_test.go
@@ -9,57 +9,6 @@ import (
"github.com/stretchr/testify/require"
)
-func TestSuccessfullGitBundles(t *testing.T) {
- table := []struct {
- line, result string
- }{
- {
- "caarlos0/jvm",
- "jvm.plugin.zsh\nfpath+=( ",
- },
- {
- "caarlos0/jvm kind:path",
- "export PATH=\"",
- },
- {
- "caarlos0/jvm kind:path branch:gh-pages",
- "export PATH=\"",
- },
- {
- "caarlos0/jvm kind:dummy",
- "",
- },
- {
- "caarlos0/jvm kind:fpath",
- "fpath+=( ",
- },
- {
- "docker/cli path:contrib/completion/zsh/_docker",
- "contrib/completion/zsh/_docker",
- },
- }
- for _, row := range table {
- row := row
- t.Run(row.line, func(t *testing.T) {
- t.Parallel()
- home := home(t)
- bundle, err := New(home, row.line)
- require.NoError(t, err)
- result, err := bundle.Get()
- require.Contains(t, result, row.result)
- require.NoError(t, err)
- })
- }
-}
-
-func TestZshInvalidGitBundle(t *testing.T) {
- home := home(t)
- bundle, err := New(home, "does not exist")
- require.NoError(t, err)
- _, err = bundle.Get()
- require.Error(t, err)
-}
-
func TestZshLocalBundle(t *testing.T) {
home := home(t)
// nolint: gosec
@@ -79,14 +28,6 @@ func TestZshInvalidLocalBundle(t *testing.T) {
require.Error(t, err)
}
-func TestZshBundleWithNoShFiles(t *testing.T) {
- home := home(t)
- bundle, err := New(home, "getantibody/antibody")
- require.NoError(t, err)
- _, err = bundle.Get()
- require.NoError(t, err)
-}
-
func TestPathInvalidLocalBundle(t *testing.T) {
home := home(t)
bundle, err := New(home, "/asduhasd/asdasda kind:path")
diff --git a/project/git_test.go b/project/git_test.go
index f238317..c014be0 100644
--- a/project/git_test.go
+++ b/project/git_test.go
@@ -3,125 +3,8 @@ package project
import (
"io/ioutil"
"os"
- "path/filepath"
- "strings"
- "testing"
-
- "github.com/stretchr/testify/require"
)
-func TestDownloadAllKinds(t *testing.T) {
- urls := []string{
- "caarlos0/ports",
- "http://github.com/caarlos0/ports",
- "http://github.com/caarlos0/ports.git",
- "https://github.com/caarlos0/ports",
- "https://github.com/caarlos0/ports.git",
- "git://github.com/caarlos0/ports.git",
- "https://gitlab.com/caarlos0/test.git",
- // FIXME: those fail on travis:
- // "git@gitlab.com:caarlos0/test.git",
- // "ssh://git@github.com/caarlos0/ports.git",
- // "git@github.com:caarlos0/ports.git",
- }
- for _, url := range urls {
- home := home()
- require.NoError(
- t,
- NewGit(home, url).Download(),
- "Repo "+url+" failed to download",
- )
- }
-}
-
-func TestDownloadSubmodules(t *testing.T) {
- var home = home()
- var proj = NewGit(home, "fribmendes/geometry branch:master")
- var module = filepath.Join(proj.Path(), "lib/zsh-async")
- require.NoError(t, proj.Download())
- require.NoError(t, proj.Update())
- files, err := ioutil.ReadDir(module)
- require.NoError(t, err)
- require.True(t, len(files) > 1)
-}
-
-func TestDownloadAnotherBranch(t *testing.T) {
- home := home()
- require.NoError(t, NewGit(home, "caarlos0/jvm branch:gh-pages").Download())
-}
-
-func TestUpdateAnotherBranch(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/jvm branch:gh-pages")
- require.NoError(t, repo.Download())
- alreadyClonedRepo := NewClonedGit(home, "https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-jvm")
- require.NoError(t, alreadyClonedRepo.Update())
-}
-
-func TestUpdateExistentLocalRepo(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/ports")
- require.NoError(t, repo.Download())
- alreadyClonedRepo := NewClonedGit(home, "https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-ports")
- require.NoError(t, alreadyClonedRepo.Update())
-}
-
-func TestUpdateNonExistentLocalRepo(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/ports")
- require.Error(t, repo.Update())
-}
-
-func TestDownloadNonExistentRepo(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/not-a-real-repo")
- require.Error(t, repo.Download())
-}
-
-func TestDownloadMalformedRepo(t *testing.T) {
- home := home()
- repo := NewGit(home, "doesn-not-exist-really branch:also-nope")
- require.Error(t, repo.Download())
-}
-
-func TestDownloadMultipleTimes(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/ports")
- require.NoError(t, repo.Download())
- require.NoError(t, repo.Download())
- require.NoError(t, repo.Update())
-}
-
-func TestDownloadFolderNaming(t *testing.T) {
- home := home()
- repo := NewGit(home, "caarlos0/ports")
- require.Equal(
- t,
- home+"/https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-ports",
- repo.Path(),
- )
-}
-
-func TestSubFolder(t *testing.T) {
- home := home()
- repo := NewGit(home, "robbyrussell/oh-my-zsh path:plugins/aws")
- require.True(t, strings.HasSuffix(repo.Path(), "plugins/aws"))
-}
-
-func TestPath(t *testing.T) {
- home := home()
- repo := NewGit(home, "docker/cli path:contrib/completion/zsh/_docker")
- require.True(t, strings.HasSuffix(repo.Path(), "contrib/completion/zsh/_docker"))
-}
-
-func TestMultipleSubFolders(t *testing.T) {
- home := home()
- require.NoError(t, NewGit(home, strings.Join([]string{
- "robbyrussell/oh-my-zsh path:plugins/aws",
- "robbyrussell/oh-my-zsh path:plugins/battery",
- }, "\n")).Download())
-}
-
func home() string {
home, err := ioutil.TempDir(os.TempDir(), "antibody")
if err != nil {
diff --git a/project/project_test.go b/project/project_test.go
index 88c82e3..2fd8a25 100644
--- a/project/project_test.go
+++ b/project/project_test.go
@@ -1,24 +1,12 @@
package project
import (
- "os"
- "path/filepath"
"runtime"
"testing"
"github.com/stretchr/testify/require"
)
-func TestList(t *testing.T) {
- home := home()
- proj, err := New(home, "caarlos0/jvm branch:gh-pages")
- require.NoError(t, err)
- require.NoError(t, proj.Download())
- list, err := List(home)
- require.NoError(t, err)
- require.Len(t, list, 1)
-}
-
func TestListEmptyFolder(t *testing.T) {
home := home()
list, err := List(home)
@@ -32,40 +20,6 @@ func TestListNonExistentFolder(t *testing.T) {
require.Len(t, list, 0)
}
-func TestUpdate(t *testing.T) {
- home := home()
- repo, err := New(home, "caarlos0/ports")
- require.NoError(t, err)
- require.NoError(t, repo.Download())
- require.NoError(t, repo.Update())
-}
-
-func TestUpdateHome(t *testing.T) {
- home := home()
- for _, tt := range []string{
- "caarlos0/jvm",
- "caarlos0/ports",
- "/tmp",
- } {
- tt := tt
- t.Run(tt, func(t *testing.T) {
- proj, err := New(home, tt)
- require.NoError(t, err)
- require.NoError(t, proj.Download())
- require.NoError(t, Update(home, runtime.NumCPU()))
- })
- }
-}
-
func TestUpdateNonExistentHome(t *testing.T) {
require.Error(t, Update("/tmp/asdasdasdasksksksksnopeeeee", runtime.NumCPU()))
}
-
-func TestUpdateHomeWithNoGitProjects(t *testing.T) {
- home := home()
- repo, err := New(home, "caarlos0/jvm")
- require.NoError(t, err)
- require.NoError(t, repo.Download())
- require.NoError(t, os.RemoveAll(filepath.Join(repo.Path(), ".git")))
- require.Error(t, Update(home, runtime.NumCPU()))
-}
--
2.26.3

View File

@@ -1 +1,2 @@
DIST mtxclient-0.4.1.tar.gz 572552 BLAKE2B 4d0facaffb0ce1fadc1011b7d557774bcd9ffcef7349894255b9522bcc4e9228739ad8da5a60b0addf6835cf5de3613bebc19842b6922ab9cf94f88c944d0091 SHA512 246c84bc8bc7dd6fd688c79601d16e931b5aaf5fe967d6ea226f1961df2b74ad70d4e790b7400051e007506f58ecd6594ccead31bd3c6308aa2c6727b122c203
DIST mtxclient-0.5.0.tar.gz 582236 BLAKE2B 5166c32127973e886adadb6ad8a2895ba5ac77f78e9a774f039b0c8d4329078c0b8de965b477ce1c3a7e4cd929de8ba9b8d4f8d8b0452f6c49c873285a4d8b3a SHA512 6e1e9f5ecb1e6911b5bee85569e4477f6ee4c86ef479a3f408c8bbd187750b3b78db1db0337b51e1df9b90fee3b486eaf909bb79b69a97919685074eee3a82cd

View File

@@ -0,0 +1,44 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/boost-1.70.0
dev-libs/olm
>=dev-libs/openssl-1.1.0
dev-cpp/nlohmann_json
"
DEPEND="
${RDEPEND}
dev-libs/spdlog
test? ( dev-cpp/gtest )
"
# remove_failing_tests depends on remove_network_tests.
PATCHES=(
"${FILESDIR}/0.3.0_remove_network_tests.patch"
"${FILESDIR}/0.3.0_remove_failing_tests.patch"
)
src_configure() {
local -a mycmakeargs=(
-DBUILD_LIB_TESTS="$(usex test)"
-DBUILD_LIB_EXAMPLES=OFF
)
cmake_src_configure
}

View File

@@ -33,4 +33,4 @@ DEPEND="
PATCHES=( "${FILESDIR}/no-pytest-runner.patch" )
distutils_enable_tests pytest
distutils_enable_sphinx docs/source
distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio

View File

@@ -1 +1,2 @@
DIST foot-terminfo-1.7.1.tar.gz 390533 BLAKE2B 5eac8041ac5f46b71d8037550bcdd14899071e63fc4a9c6eabe2c44d336e3339e7dbf8b487ff79aa09a6f73378d1faca140fedbf864fdf641a0706c0b9c7912a SHA512 fa6961b24ef7929378c796a77547f509bc2ff319b3b546be8fad31dd02f2686771d2d4a0c72792746e004052fc032f180eb716cb45e2ebbf549859f1b7de7420
DIST foot-terminfo-1.7.2.tar.gz 392748 BLAKE2B effd72665c553fbf3687fdb17776b264a775311503d974d12b5de4f4b7d1b835755824781a345f29f4866a33f449c61990830452bdca101952ff8c490e37b5f2 SHA512 2acb46daca5840b3a9fb0fc7055f9234618d7d6884ce74fee382f3904136a85f5c17f7119449fd7943dba2ccce2dde9a62d13a1b363ee234765b6ab65d95e19b

View File

@@ -0,0 +1,29 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://codeberg.org/dnkl/foot/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/foot"
else
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/dnkl/foot.git"
fi
DESCRIPTION="Terminfo for foot, a great Wayland terminal emulator"
HOMEPAGE="https://codeberg.org/dnkl/foot"
LICENSE="MIT"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="sys-libs/ncurses"
src_install() {
tic -x -o "${S}" -e foot,foot-direct "${S}/foot.info"
dodir /usr/share/terminfo/f/
cp "${S}/f/foot" "${D}/usr/share/terminfo/f/foot"
cp "${S}/f/foot-direct" "${D}/usr/share/terminfo/f/foot-direct"
}

View File

@@ -1 +1,2 @@
DIST foot-1.7.1.tar.gz 390533 BLAKE2B 5eac8041ac5f46b71d8037550bcdd14899071e63fc4a9c6eabe2c44d336e3339e7dbf8b487ff79aa09a6f73378d1faca140fedbf864fdf641a0706c0b9c7912a SHA512 fa6961b24ef7929378c796a77547f509bc2ff319b3b546be8fad31dd02f2686771d2d4a0c72792746e004052fc032f180eb716cb45e2ebbf549859f1b7de7420
DIST foot-1.7.2.tar.gz 392748 BLAKE2B effd72665c553fbf3687fdb17776b264a775311503d974d12b5de4f4b7d1b835755824781a345f29f4866a33f449c61990830452bdca101952ff8c490e37b5f2 SHA512 2acb46daca5840b3a9fb0fc7055f9234618d7d6884ce74fee382f3904136a85f5c17f7119449fd7943dba2ccce2dde9a62d13a1b363ee234765b6ab65d95e19b

View File

@@ -43,6 +43,7 @@ src_configure() {
local emesonargs=(
$(meson_use ime)
"-Dterminfo=disabled"
"-Dwerror=false"
)
meson_src_configure
}

View File

@@ -0,0 +1,54 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson xdg
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://codeberg.org/dnkl/foot/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}"
else
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/dnkl/foot.git"
fi
DESCRIPTION="A fast, lightweight and minimalistic Wayland terminal emulator"
HOMEPAGE="https://codeberg.org/dnkl/foot"
LICENSE="MIT"
SLOT="0"
IUSE="ime"
DEPEND="
dev-libs/wayland
media-libs/fcft
media-libs/fontconfig
media-libs/freetype
x11-libs/libxkbcommon
x11-libs/pixman
"
RDEPEND="
${DEPEND}
gui-apps/foot-terminfo
"
BDEPEND="
app-text/scdoc
dev-libs/tllist
dev-libs/wayland-protocols
sys-libs/ncurses
"
src_configure() {
local emesonargs=(
$(meson_use ime)
"-Dterminfo=disabled"
"-Dwerror=false"
)
meson_src_configure
}
src_install() {
meson_src_install
mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}"
}

View File

@@ -43,6 +43,7 @@ src_configure() {
local emesonargs=(
$(meson_use ime)
"-Dterminfo=disabled"
"-Dwerror=false"
)
meson_src_configure
}

View File

@@ -28,14 +28,25 @@ DEPEND="
${PYTHON_DEPS}
${RDEPEND}
test? (
dev-python/ipdb
dev-python/pillow
$(python_gen_any_dep '
dev-python/ipdb[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
')
)
"
FONT_S="${S}/build"
FONT_SUFFIX="otf ttf pfm woff"
python_check_deps() {
has_version -d "dev-python/ipdb[${PYTHON_USEDEP}]" &&
has_version -d "dev-python/pillow[${PYTHON_USEDEP}]"
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_compile() {
emake font
}

View File

@@ -33,6 +33,7 @@ BDEPEND="app-text/scdoc"
src_configure() {
local emesonargs=(
$(meson_feature text-shaping)
"-Dwerror=false"
)
meson_src_configure
}

View File

@@ -33,6 +33,7 @@ BDEPEND="app-text/scdoc"
src_configure() {
local emesonargs=(
$(meson_feature text-shaping)
"-Dwerror=false"
)
meson_src_configure
}

View File

@@ -53,6 +53,7 @@ S="${WORKDIR}/${P}-${NAME}"
src_prepare() {
mv configure.in configure.ac || die
sed -i 's/configure\.in/configure.ac/g' Makefile.generating Makefile || die
sed -i '/\$(CC)/s/-O2 -g3/$(CFLAGS)/' src/plugins/e-acsl/Makefile.in || die
touch config_file || die
eautoreconf
eapply_user

View File

@@ -39,6 +39,9 @@ src_prepare() {
mv doc/why.1 doc/why3.1 || die
mv configure.in configure.ac || die
sed -i 's/configure\.in/configure.ac/g' Makefile.in || die
sed -e '/^lib\/why3[a-z]*\$(EXE):/{n;s/-Wall/$(CFLAGS) $(LDFLAGS)/}' \
-e '/^%.o: %.c/{n;s/\$(CC).*-o/$(CC) $(CFLAGS) -o/}' \
-i Makefile.in || die
eautoreconf
eapply_user
}

View File

@@ -41,6 +41,9 @@ DOCS=( CHANGES.md README.md )
src_prepare() {
mv configure.in configure.ac || die
sed -i 's/configure\.in/configure.ac/g' Makefile.in || die
sed -e '/^lib\/why3[a-z]*\$(EXE):/{n;s/-Wall/$(CFLAGS) $(LDFLAGS)/}' \
-e '/^%.o: %.c/{n;s/\$(CC).*-o/$(CC) $(CFLAGS) -o/}' \
-i Makefile.in || die
eautoreconf
eapply_user
}

View File

@@ -0,0 +1 @@
DIST extrae-3.8.3.tar.gz 1056317 BLAKE2B 9efe7011ba9474de66deb8c679f10eff37cc3d5699b42cb1b076ed43b539bbc15ecc613b3f17b03df9e93a219ebcafd3e1d56229db9c0d4e7a0a56d5c3edd591 SHA512 3fba66447790e0a1c71c0e5a61f67ad966cdd4e19742799ecc50124a916ef599fff747027ccc803584f0ab2d1d76c29ded7072a70dd0aed5a3be7ff6ecbb8709

View File

@@ -0,0 +1,175 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
inherit autotools java-pkg-opt-2 python-single-r1
DESCRIPTION="Instrumentation framework to generate execution traces of parallel runtimes"
HOMEPAGE="https://github.com/bsc-performance-tools/extrae"
SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
#TODO: correctly install python stuff
IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory +instrument-io +instrument-syscall merge-in-trace opencl openmp +parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib smpss +xml"
#aspectj and aspectj-weaver needs to be enabled both at the same time but the aspectj package in gentoo doesn't have weaver
#TODO: find out which FFT library is used
#TODO: remove some useflags (boost fft elf dwarf)
#TODO: nanos pmapi online dyninst cuda spectral cupti openshmem gm mx synapse memkind sionlib aspectj
#TODO: support llvm libunwind, llvm rt, elftoolchain
CDEPEND="
${PYTHON_DEPS}
dev-libs/icu
sys-libs/libunwind
dev-libs/libxml2
dev-libs/papi
sys-apps/hwloc
sys-libs/glibc
sys-libs/zlib
virtual/mpi
|| ( sys-devel/binutils:* sys-libs/binutils-libs )
boost? ( dev-libs/boost:= )
dwarf? ( dev-libs/libdwarf )
elf? ( virtual/libelf )
opencl? ( dev-util/opencl-headers )
"
DEPEND="
${CDEPEND}
java? ( virtual/jdk:1.8 )
"
RDEPEND="
${CDEPEND}
java? ( virtual/jre:1.8 )
virtual/opencl
"
BDEPEND="
doc? ( dev-python/sphinx )
"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
"
# cupti? ( cuda )
# dyninst? ( boost dwarf elf )
# online? ( synapse )
# aspectj? ( java )
# spectral? ( fft )
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
--datadir="${T}"
--datarootdir="${T}"
--libdir="${EPREFIX}/usr/$(get_libdir)/extrae"
--disable-mic
--disable-nanos
--disable-online
--disable-peruse
--disable-pmapi
--disable-static
--enable-shared
--with-librt="${EPREFIX}/usr"
--with-mpi="${EPREFIX}/usr"
--with-papi="${EPREFIX}/usr"
--with-pic
--with-unwind="${EPREFIX}/usr"
--without-dyninst
--without-cupti
--without-memkind
--without-clustering
--without-java-aspectj
--without-java-aspectj-weaver
--without-synapse
--without-spectral
--without-openshmem
--without-gm
--without-mx
$(use_enable doc)
$(use_enable heterogeneous)
$(use_enable inotify)
$(use_enable instrument-dynamic-memory)
$(use_enable instrument-io)
$(use_enable instrument-syscall)
$(use_enable merge-in-trace)
$(use_enable openmp)
$(use_enable sampling)
$(use_enable parallel-merge)
$(use_enable pebs-sampling)
$(use_enable posix-clock)
$(use_enable pthread)
$(use_enable single-mpi-lib)
$(use_enable smpss)
$(use_enable xml)
)
# $(use_enable nanos)
# --without-sionlib
#--with-pmpi-hook (Choose method to call PMPI (dlsym or pmpi))
if use boost; then
myconf+=( "--with-boost=${EPREFIX}/usr" )
else
myconf+=( "--without-boost" )
fi
if use dwarf; then
myconf+=( "--with-dwarf=${EPREFIX}/usr" )
else
myconf+=( "--without-dwarf" )
fi
if use elf; then
myconf+=( "--with-elf=${EPREFIX}/usr" )
else
myconf+=( "--without-elf" )
fi
if use fft; then
myconf+=( "--with-fft=${EPREFIX}/usr" )
else
myconf+=( "--without-fft" )
fi
if use java; then
myconf+=( "--with-java-jdk=$(java-config -O)" )
else
myconf+=( "--without-java-jdk" )
fi
if use opencl; then
myconf+=( "--with-opencl=${EPREFIX}/usr" )
else
myconf+=( "--without-opencl" )
fi
econf "${myconf[@]}"
}
src_install() {
default
mkdir -p "${D}/$(python_get_sitedir)/" || die
mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
python_optimize "${D}/$(python_get_sitedir)/pyextrae"
#super-duper workaround
mkdir -p "${ED}/usr/share/doc/${PF}" || die
mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
if use doc ; then
mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
mv "${T}/man" "${ED}/usr/share/" || die
docompress -x "/usr/share/doc/${PF}/html"
fi
docompress -x "/usr/share/doc/${PF}/examples"
docompress -x "/usr/share/doc/${PF}/tests"
find "${ED}" -name '*.a' -delete || die
find "${ED}" -name '*.la' -delete || die
}

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription>
A dynamic instrumentation package to trace programs compiled and run with the shared
memory model (like OpenMP and pthreads), the message passing (MPI) programming model or
both programming models (different MPI processes using OpenMP or pthreads within each MPI
process). Extrae generates trace files that can be later visualized with <pkg>sys-cluster/paraver</pkg>.
</longdescription>
<upstream>
<bugs-to>https://github.com/bsc-performance-tools/extrae/issues</bugs-to>
<remote-id type="github">bsc-performance-tools/extrae</remote-id>
</upstream>
<use>
<flag name="boost">Search for boost</flag>
<flag name="doc">Generates the documentation of this instrumentation package</flag>
<!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->
<!--<flag name="cupti">CUPTI is used to instrument CUDA calls</flag>-->
<flag name="dwarf">Build with <pkg>dev-libs/libdwarf</pkg></flag>
<!--<flag name="dyninst">Build with dyninst</flag>-->
<flag name="elf">Build with <pkg>virtual/libelf</pkg></flag>
<flag name="fft">Search for FFT package (which?)</flag>
<flag name="heterogeneous">Enable support for heterogeneous tracing</flag>
<flag name="inotify">Enable inotify support</flag>
<flag name="instrument-dynamic-memory">Enables instrumentation for dynamic memory (malloc, free, realloc) calls</flag>
<flag name="instrument-io">Enables instrumentation for basic I/O (read, write) calls</flag>
<flag name="instrument-syscall">Enables instrumentation for system calls (other than I/O and mallocs)</flag>
<flag name="java">Enable support for tracing Java. This is necessary to create the connectors between |TRACE| and Java applications.</flag>
<flag name="merge-in-trace">Embed the merging process in the tracing library so the final tracefile can be generated automatically from the application run</flag>
<!--<flag name="nanos">Enable support for tracing <pkg>sys-cluster/nanos</pkg> run-time</flag>-->
<!--<flag name="online">Enable on-line analysis</flag>-->
<flag name="opencl">Enable support for tracing OpenCL</flag>
<flag name="openmp">Enable support for tracing OpenMP</flag>
<flag name="parallel-merge">Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI</flag>
<flag name="pebs-sampling">enable PEBS sampling</flag>
<!--<flag name="pmapi">Enable PMAPI library to gather CPU performance counters</flag>-->
<flag name="posix-clock">Use POSIX clock (clock_gettime call) instead of low level timing routines. Use this option if the system where you install the instrumentation package modifies the frequency of its processors at runtime.</flag>
<flag name="pthread">Enable support for tracing pthread library</flag>
<flag name="sampling">Enable PAPI sampling support</flag>
<!--<flag name="spectral">This package enables support for on-line spectral analysis.</flag>-->
<flag name="single-mpi-lib">Produces a single instrumentation library for MPI that contains both Fortran and C wrappers. Applications that call the MPI library from both C and Fortran languages need this flag to be enabled.</flag>
<flag name="smpss">Enable support for tracing SMP-superscalar</flag>
<!--<flag name="synapse">This library is a front-end of the MRNet library</flag>-->
<flag name="xml">Enable support for XML configuration</flag>
</use>
</pkgmetadata>

View File

@@ -85,11 +85,14 @@ src_install() {
fi
cd "${S}-lib" || die
# wcsstr towupper towlower manpages collide with sys-apps/man-pages
# what to do?
default
einstalldocs
use doc && dodoc -r doc/.
# wcsstr towupper towlower manpages collide with sys-apps/man-pages
rm "${ED}/usr/share/man/man3/towlower.3" || die
rm "${ED}/usr/share/man/man3/towupper.3" || die
rm "${ED}/usr/share/man/man3/wcsstr.3" || die
}
src_test() {

View File

@@ -0,0 +1,10 @@
[Unit]
Description=hinsightd is a http/1.1 webserver
After=syslog.target network.target
[Service]
ExecStart=/usr/bin/hinsightd --config /etc/hinsightd/hinsightd.lua
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,14 @@
/var/log/hinsightd/*.log {
daily
missingok
rotate 7
compress
delaycompress
minsize 1M
notifempty
sharedscripts
postrotate
test -e /run/openrc/softlevel && /etc/init.d/hinsightd reload 1>/dev/null || true
test -e /run/systemd/system && systemctl reload hinsightd.service || true
endscript
}

View File

@@ -15,6 +15,10 @@ SLOT="0"
KEYWORDS=""
IUSE="" #+openssl
BDEPEND="
dev-util/ninja
"
RDEPEND="
acct-user/hinsightd
acct-group/hinsightd
@@ -26,14 +30,8 @@ dev-libs/openssl
DEPEND="${RDEPEND}"
BDEPEND="
acct-user/hinsightd
acct-group/hinsightd
dev-util/ninja
"
PATCHES=(
"${FILESDIR}/gentoo.patch"
"${FILESDIR}/hinsightd-redefine-directories.patch"
)
#src_configure() {
@@ -41,16 +39,21 @@ PATCHES=(
src_compile() {
cd build
ninja
ninja || die
}
src_install() {
newbin "${S}/build/hin9" hinsightd
newinitd "${FILESDIR}/init.d.sh" hinsightd
#systemd_dounit "${FILESDIR}/hinsightd.service" # not tested
insinto /etc/hinsightd
newins "${S}/workdir/main.lua" hinsightd.lua
# logrotate
insinto /etc/logrotate.d
newins "${FILESDIR}"/logrotate.d.sh hinsightd
keepdir /var/www/localhost/htdocs
keepdir /var/log/hinsightd
keepdir /var/tmp/hinsightd

View File

@@ -1,3 +1,2 @@
DIST gammy-0.9.58a.tar.gz 208411 BLAKE2B 1681f5bbe49d8645a5f55be338c82fe6728bd2b643d5cff1343a3c3bc00ba06c7a903a1c4c6d8ca21f1e2e2991ecec79c392f17aeacb75f1b17f0994cc05b1f6 SHA512 fced7b742e15a70933146901dc07c8375bd7fffc6e000e8fa323029366e09d090c9c9c3e5d783fc5ad923259abf798649652af40e1a9bc83f6c60cbb81ee53a8
DIST gammy-0.9.59.tar.gz 209514 BLAKE2B 948bc841361217cde846288e93e67ed944d99fdf682f56a42e85036fe2455ba900f3c80bda712012116280bd2f2a6038f2cb4d783fcc7e2037f2df096c486b6e SHA512 1fd1255f9681b1b59457ad817e604cf73cc81397e927db62d3f53a1c39f7b634544c50931ece71f116f2f01c7fb7d7dc33696e0400fe23785b2a23b112bd8aa5
DIST gammy-0.9.60.tar.gz 211249 BLAKE2B 00082c1dd7f9dce26b43fa4a3172e7399a4c8c18743c455fec222b33ca55ecb0b2a3d0483f3e83c58843ef6d47a0ceb52ff38185d0e34649fa634b475a845b88 SHA512 2167a14e579575d5d185a62fae93762f30dbb3396a66f99e4affb7ce710f076c119dfe4cd9a2432fd031dcfbe6548b4fbfe91dd854a6152768017c40596209f9
DIST gammy-0.9.64.tar.gz 242282 BLAKE2B 3f1e1400eb00d15163843231e8d9907d68946d6347473db905413fe151611fa69239d7d5fe9763e54e5c7806e144604f596dca745973900ecddbe74bde2731d3 SHA512 80f43ca8ca0644b8b01cf299db21332f5f508196d0ba63e7e835e7e36b7e0d4f4dc3c78617523c36c52f8220a78ae42103605ffb93526f54a2bc5dccc7dab3b5

View File

@@ -1,50 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop qmake-utils xdg
DESCRIPTION="Adaptive screen brightness/temperature"
HOMEPAGE="https://getgammy.com/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Fushko/${PN}.git"
else
SRC_URI="https://github.com/Fushko/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtdbus:5
dev-qt/qtwidgets:5
x11-libs/libXxf86vm
"
DEPEND="
${RDEPEND}
media-gfx/imagemagick
"
src_configure() {
eqmake5 PREFIX="${EPREFIX}/usr"
}
src_install() {
default
local sizes="128 16 32 64"
cd ./icons || die
for size in ${sizes}; do
convert "${size}x${size}ball.ico" "${size}x${size}ball.png" || die
newicon -s "${size}" "${size}x${size}ball.png" "${PN}.png"
done
make_desktop_entry "${PN}" "${PN^}" "${PN}" "Graphics;Settings"
}

View File

@@ -0,0 +1 @@
DIST materia-theme-20210322.tar.gz 515881 BLAKE2B b48b61d4636b1f3953b18618f2e11e37904563e0837f6f14329be82ff20a5864e8d6ed0c54a051ba941ab67b4d5aa1bb44b2179ef9f0ea1ad33579a7122a4fdb SHA512 c384a1afd5cf72f7ccfc0d1af8fd7efbe66027aa6e293899d57e46d8e572822ec6070785e957b07464cf0b3b73a302b9344920af361a9e8ab582565b7cedba71

View File

@@ -0,0 +1,24 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson
DESCRIPTION="A Material Design theme for GNOME/GTK based desktop environments"
HOMEPAGE="https://github.com/nana-4/materia-theme"
SRC_URI="https://github.com/nana-4/materia-theme/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="GPL-2"
SLOT="0"
RDEPEND="
x11-libs/gdk-pixbuf
x11-themes/gnome-themes-standard
x11-themes/gtk-engines-murrine
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-lang/sassc
"

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>octiabrina@myrvogna.net</email>
<name>Octiabrina Terrien-Puig</name>
</maintainer>
<upstream>
<remote-id type="github">nana-4/materia-theme</remote-id>
</upstream>
</pkgmetadata>