Compare commits
2 Commits
bb07e4e80e
...
PR/add-cqu
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c1e762eb6 | |||
| 3322636ed3 |
@@ -8,5 +8,7 @@ Random exheres.
|
|||||||
|
|
||||||
You have these possibilities:
|
You have these possibilities:
|
||||||
|
|
||||||
1. git patch via email to: hasufell `ä` hasufell.de
|
1. use https://gitlab.exherbo.org/exherbo-unofficial/hasufell
|
||||||
2. create an account [here](https://gogs.hasufell.de/user/sign_up) and fork+PR
|
2. use the patchbot on irc.freenode.net in `#exherbo`: https://exherbo.org/docs/patchbot.html
|
||||||
|
3. git patch via email to: hasufell `ä` hasufell.de
|
||||||
|
4. ask for an account on https://gogs.hasufell.de and fork+PR
|
||||||
|
|||||||
@@ -105,12 +105,6 @@ find_desktop_file_category() {
|
|||||||
local subcat=
|
local subcat=
|
||||||
|
|
||||||
case ${CATEGORY} in
|
case ${CATEGORY} in
|
||||||
app*) maincat="Utility"
|
|
||||||
case ${CATEGORY##*-} in
|
|
||||||
editors) subcat="TextEditor";;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
dev*) maincat="Development"
|
dev*) maincat="Development"
|
||||||
case ${CATEGORY##*-} in
|
case ${CATEGORY##*-} in
|
||||||
db) subcat="Database";;
|
db) subcat="Database";;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
app-admin
|
app-admin
|
||||||
app-arch
|
app-arch
|
||||||
app-benchmarks
|
|
||||||
app-crypt
|
app-crypt
|
||||||
app-editors
|
app-editors
|
||||||
app-ergonomics
|
app-ergonomics
|
||||||
@@ -9,13 +8,11 @@ dev-cpp
|
|||||||
dev-db
|
dev-db
|
||||||
dev-dotnet
|
dev-dotnet
|
||||||
dev-games
|
dev-games
|
||||||
dev-haskell
|
|
||||||
dev-lang
|
dev-lang
|
||||||
dev-libs
|
dev-libs
|
||||||
dev-ocaml
|
dev-ocaml
|
||||||
dev-perl
|
dev-perl
|
||||||
dev-python
|
dev-python
|
||||||
dev-ruby
|
|
||||||
dev-tcl
|
dev-tcl
|
||||||
dev-util
|
dev-util
|
||||||
games-action
|
games-action
|
||||||
@@ -36,7 +33,6 @@ media-libs
|
|||||||
media-plugins
|
media-plugins
|
||||||
media-sound
|
media-sound
|
||||||
media-video
|
media-video
|
||||||
monitor
|
|
||||||
net-firewall
|
net-firewall
|
||||||
net-im
|
net-im
|
||||||
net-libs
|
net-libs
|
||||||
@@ -45,7 +41,6 @@ net-p2p
|
|||||||
net-www
|
net-www
|
||||||
sci-mathematics
|
sci-mathematics
|
||||||
sys-apps
|
sys-apps
|
||||||
sys-boot
|
|
||||||
sys-process
|
sys-process
|
||||||
voip
|
voip
|
||||||
www-apps
|
www-apps
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
(
|
(
|
||||||
app-editors/neovim-gtk[~scm]
|
|
||||||
dev-lang/fsharp[~scm]
|
dev-lang/fsharp[~scm]
|
||||||
dev-lang/fstar[~scm]
|
dev-lang/fstar[~scm]
|
||||||
dev-python/pytype[~scm]
|
dev-python/pytype[~scm]
|
||||||
@@ -8,21 +7,18 @@
|
|||||||
games-engines/OpenJK[~scm]
|
games-engines/OpenJK[~scm]
|
||||||
games-engines/flare[~scm]
|
games-engines/flare[~scm]
|
||||||
games-fps/eduke32[~scm]
|
games-fps/eduke32[~scm]
|
||||||
games-rpg/flare[~scm]
|
|
||||||
games-rpg/valyriatear[~scm]
|
games-rpg/valyriatear[~scm]
|
||||||
|
games-rpg/flare[~scm]
|
||||||
games-strategy/freesynd[~scm]
|
games-strategy/freesynd[~scm]
|
||||||
media-gfx/pinta[~scm]
|
|
||||||
media-sound/pnmixer-rs[~scm]
|
|
||||||
media-sound/pnmixer[~scm]
|
|
||||||
media/livestreamer[~scm]
|
media/livestreamer[~scm]
|
||||||
|
media-gfx/pinta[~scm]
|
||||||
|
media-sound/pnmixer[~scm]
|
||||||
|
media-sound/pnmixer-rs[~scm]
|
||||||
net-im/gajim-omemo[~scm]
|
net-im/gajim-omemo[~scm]
|
||||||
net-im/lurch[~scm]
|
net-im/lurch[~scm]
|
||||||
net-im/pidgin-opensteamworks[~scm]
|
net-im/pidgin-opensteamworks[~scm]
|
||||||
net-misc/remmina[~scm]
|
net-misc/remmina[~scm]
|
||||||
net-misc/trickle[~scm]
|
net-misc/trickle[~scm]
|
||||||
sys-apps/fd[~scm]
|
|
||||||
sys-apps/lenovo-throttling-fix[~scm]
|
|
||||||
sys-apps/ripgrep[~scm]
|
|
||||||
x11-apps/terminator[~scm]
|
x11-apps/terminator[~scm]
|
||||||
x11-misc/cbatticon[~scm]
|
x11-misc/cbatticon[~scm]
|
||||||
x11-wm/i3[~scm]
|
x11-wm/i3[~scm]
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
SUMMARY="Imposes stressful loads on different aspects of the system"
|
|
||||||
HOMEPAGE="https://people.seas.harvard.edu/~apw/stress"
|
|
||||||
DOWNLOADS="https://people.seas.harvard.edu/~apw/stress/${PNV}.tar.gz"
|
|
||||||
|
|
||||||
LICENCES="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require neovim-gtk
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
app-editors/neovim
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gtk+:3[>=3.10.0]
|
|
||||||
x11-libs/pango
|
|
||||||
"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
ecargo_install
|
|
||||||
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins desktop/*.desktop
|
|
||||||
|
|
||||||
insinto /usr/share/icons/hicolor/128x128/apps
|
|
||||||
doins desktop/nvim-gtk.png
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require neovim-gtk
|
|
||||||
|
|
||||||
DOWNLOADS=""
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
app-editors/neovim
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gtk+:3[>=3.22.0]
|
|
||||||
x11-libs/pango[>=1.38]
|
|
||||||
"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
cargo_src_unpack
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
ecargo_install
|
|
||||||
|
|
||||||
insinto /usr/share/nvim-gtk
|
|
||||||
doins -r runtime
|
|
||||||
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins desktop/*.desktop
|
|
||||||
|
|
||||||
insinto /usr/share/icons/hicolor/48x48/apps
|
|
||||||
doins desktop/org.daa.NeovimGtk.png
|
|
||||||
|
|
||||||
insinto /usr/share/icons/hicolor/scalable/apps
|
|
||||||
doins desktop/org.daa.NeovimGtk.svg
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require freedesktop-desktop gtk-icon-cache
|
|
||||||
require cargo [ channel=stable ]
|
|
||||||
require github [ user=daa84 tag="v${PV}" ]
|
|
||||||
|
|
||||||
SUMMARY="Gtk ui for neovim"
|
|
||||||
HOMEPAGE="https://github.com/daa84/neovim-gtk ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="GPL-3.0"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
export PREFIX=/usr
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
freedesktop-desktop_update_desktop_database
|
|
||||||
gtk-icon-cache_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
freedesktop-desktop_update_desktop_database
|
|
||||||
gtk-icon-cache_pkg_postrm
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require desktop-utils gtk-icon-cache freedesktop-desktop
|
|
||||||
|
|
||||||
SUMMARY="An IDE powered by Neovim"
|
|
||||||
HOMEPAGE="https://www.onivim.io/"
|
|
||||||
DOWNLOADS="
|
|
||||||
platform:amd64? ( https://github.com/onivim/oni/releases/download/v${PV}/Oni-${PV}-x64-linux.tar.gz )
|
|
||||||
https://aur.archlinux.org/cgit/aur.git/plain/icons.tar.gz?h=oni -> oni-icons.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64"
|
|
||||||
MYOPTIONS="
|
|
||||||
( platform: amd64 )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
run:
|
|
||||||
app-editors/neovim
|
|
||||||
dev-libs/atk
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
gnome-platform/GConf:2
|
|
||||||
media-libs/fontconfig
|
|
||||||
net-print/cups
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-sound/alsa-lib
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gdk-pixbuf:2.0
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXScrnSaver
|
|
||||||
x11-libs/libXcomposite
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXdamage
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXfixes
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libxcb
|
|
||||||
x11-libs/libxkbfile
|
|
||||||
x11-libs/pango
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
REMOTE_IDS="github:onivim/${PN}"
|
|
||||||
UPSTREAM_DOCUMENTATION="https://onivim.github.io/oni-docs/"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}/Oni-${PV}-x64-linux
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
exdirectory --allow /opt
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /opt/${PN}
|
|
||||||
doins -r *
|
|
||||||
chmod +x "${IMAGE}"/opt/${PN}/oni
|
|
||||||
|
|
||||||
herebin ${PN} <<EOF
|
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cd /opt/${PN}
|
|
||||||
exec ./oni "\$@"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
install_desktop_entry \
|
|
||||||
"MimeType=text/english;text/plain;text/markdown;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-ruby;text/x-python;" \
|
|
||||||
"Categories=Utility;TextEditor;" \
|
|
||||||
"Keywords=Text;Editor;Neovim;" \
|
|
||||||
"GenericName=Text Editor"
|
|
||||||
|
|
||||||
for i in 16x16 32x32 64x64 128x128 256x256 512x512 1024x1024; do
|
|
||||||
insinto /usr/share/icons/hicolor/${i}/apps
|
|
||||||
newins "${WORKBASE}"/icons/${i}.png oni.png
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
freedesktop-desktop_pkg_postinst
|
|
||||||
gtk-icon-cache_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
freedesktop-desktop_pkg_postrm
|
|
||||||
gtk-icon-cache_pkg_postrm
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ the job for you! This software reunites the concepts of entity-relationship
|
|||||||
diagrams and the features that PostgreSQL implements as extensions of SQL
|
diagrams and the features that PostgreSQL implements as extensions of SQL
|
||||||
standards.
|
standards.
|
||||||
"
|
"
|
||||||
HOMEPAGE="https://pgmodeler.io/ ${HOMEPAGE}"
|
HOMEPAGE="https://www.pgmodeler.com.br ${HOMEPAGE}"
|
||||||
|
|
||||||
LICENCES="GPL-3"
|
LICENCES="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
SUMMARY="cabal-install is the command line interface to Cabal and hackage"
|
|
||||||
HOMEPAGE="https://www.haskell.org/cabal/"
|
|
||||||
DOWNLOADS="https://www.haskell.org/cabal/release/cabal-install-${PV}/cabal-install-${PV}-x86_64-unknown-linux.tar.gz"
|
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="-* ~amd64"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
run:
|
|
||||||
dev-lang/ghc-bin
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
|
||||||
!dev-haskell/cabal-install [[
|
|
||||||
description = [ Both install the same binary ]
|
|
||||||
resolution = uninstall-blocked-after
|
|
||||||
]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin cabal
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
SUMMARY="The Haskell Tool Stack"
|
|
||||||
DESCRIPTION="
|
|
||||||
Stack is a cross-platform program for developing Haskell projects.
|
|
||||||
It is intended for Haskellers both new and experienced.
|
|
||||||
"
|
|
||||||
HOMEPAGE="http://haskellstack.org/"
|
|
||||||
DOWNLOADS="https://github.com/commercialhaskell/stack/releases/download/v${PV}/stack-${PV}-linux-x86_64.tar.gz"
|
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="-* ~amd64"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
run:
|
|
||||||
dev-lang/ghc-bin
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}/stack-${PV}-linux-x86_64
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
dobin stack
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,218 +0,0 @@
|
|||||||
# ghc-pkg command line completion for bash
|
|
||||||
#
|
|
||||||
# Copyright 2006-2007 Lennart Kolmodin <kolmodin@dtek.chalmers.se>
|
|
||||||
|
|
||||||
_ghc-pkg-get-ghc-pkg()
|
|
||||||
{
|
|
||||||
echo ghc-pkg
|
|
||||||
}
|
|
||||||
|
|
||||||
_ghc-pkg-pkg-fields()
|
|
||||||
{
|
|
||||||
# usage: _ghc-pkg-pkg-fields pkg-id
|
|
||||||
#
|
|
||||||
# list all fields of the pkg-id
|
|
||||||
|
|
||||||
# same fields for all packages but different in different versions of
|
|
||||||
# ghc-pkg? this can probably be done better/faster
|
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
|
||||||
echo "usage: _ghc-pkg-pkg-fields pkg-id"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local fields
|
|
||||||
|
|
||||||
fields="$( $(_ghc-pkg-get-ghc-pkg) describe $1 )"
|
|
||||||
|
|
||||||
#if [[ fields != *"cannot find package"* ]]; then
|
|
||||||
echo "$fields" | grep ".*:.*" | sed "s/^\(.*\):.*\$/\1/"
|
|
||||||
#fi
|
|
||||||
}
|
|
||||||
|
|
||||||
_ghc-pkg-pkg-ids()
|
|
||||||
{
|
|
||||||
# usage: _ghc-pkg-pkg-ids
|
|
||||||
#
|
|
||||||
# simply lists all package ids known by ghc-pkg.
|
|
||||||
$(_ghc-pkg-get-ghc-pkg) list --simple-output
|
|
||||||
}
|
|
||||||
|
|
||||||
_ghc-pkg-pkgs()
|
|
||||||
{
|
|
||||||
# usage: _ghc-pkg-pkgs [include-pkgs] [include-ids]
|
|
||||||
#
|
|
||||||
# with optional parameter include-pkgs it will list all packages known
|
|
||||||
# to ghc-pkg.
|
|
||||||
# with optional parameter include-ids it will list all package-ids known
|
|
||||||
# to ghc-pkg.
|
|
||||||
local pkgs
|
|
||||||
local result
|
|
||||||
pkgs=( $( _ghc-pkg-pkg-ids ) )
|
|
||||||
result=( )
|
|
||||||
|
|
||||||
local withPkgs="no" withIds="no"
|
|
||||||
while [[ -n "$1" ]]; do
|
|
||||||
case "$1" in
|
|
||||||
include-pkgs)
|
|
||||||
withPkgs="yes" ;;
|
|
||||||
include-ids)
|
|
||||||
withIds="yes" ;;
|
|
||||||
*)
|
|
||||||
echo "unknown parameter '$1' to _ghc-pkg-pkgs"
|
|
||||||
return 1 ;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
# user must supply either include-pkgs, include-ids or both
|
|
||||||
if [[ $withPkgs != "yes" && $withIds != "yes" ]]; then
|
|
||||||
echo "usage: _ghc-pkg-pkgs [include-pkgs] [include-ids]"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# find all packages if the user requested them
|
|
||||||
if [[ $withPkgs == "yes" ]]; then
|
|
||||||
# O(n^2) algorithm to exclude duplicates
|
|
||||||
for p in ${pkgs[*]}; do
|
|
||||||
p="${p//-[0-9.]*/}"
|
|
||||||
for existing in ${result[*]}; do
|
|
||||||
if [[ "$existing" == "$p" ]]; then
|
|
||||||
continue 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
result=( "${result[@]}" "${p}" )
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# include all pkg-ids if requested
|
|
||||||
if [[ $withIds == "yes" ]]; then
|
|
||||||
result=( "${result[@]}" "${pkgs[@]}" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# we are finished, echo the result
|
|
||||||
echo "${result[*]}"
|
|
||||||
|
|
||||||
# happy ending
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
_ghc-pkg()
|
|
||||||
{
|
|
||||||
local cur
|
|
||||||
cur=${COMP_WORDS[COMP_CWORD]}
|
|
||||||
|
|
||||||
COMPREPLY=()
|
|
||||||
|
|
||||||
local actions flags
|
|
||||||
actions='register update unregister expose hide list latest describe field'
|
|
||||||
dbflags="--user \
|
|
||||||
--global \
|
|
||||||
-f --package-conf= \
|
|
||||||
--global-conf="
|
|
||||||
registerflags="--force \
|
|
||||||
-g --auto-ghci-libs \
|
|
||||||
-D --define-name="
|
|
||||||
listflags="--simple-output"
|
|
||||||
flags="$dbflags \
|
|
||||||
$registerflags \
|
|
||||||
$listflags \
|
|
||||||
-? --help \
|
|
||||||
-V --version"
|
|
||||||
|
|
||||||
# if it's the users first word; complete it and return
|
|
||||||
if (($COMP_CWORD == 1)); then
|
|
||||||
COMPREPLY=( $( compgen -W "$actions $flags" -- $cur ) )
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# now we know we have at least one word written
|
|
||||||
|
|
||||||
local action="unknown" \
|
|
||||||
prev numwords \
|
|
||||||
cword act
|
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
|
||||||
numwords=${#COMP_WORDS[@]}
|
|
||||||
|
|
||||||
# find the action with O(n*m) algorithm
|
|
||||||
# where n = ${#COMP_WORDS[*]}
|
|
||||||
# m = number of actions
|
|
||||||
for cword in ${COMP_WORDS[*]}; do
|
|
||||||
for act in $actions; do
|
|
||||||
if [[ "$cword" == "$act" ]]; then
|
|
||||||
action=$cword
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
case $action in
|
|
||||||
register|update)
|
|
||||||
# we want to complete both flags and paths, how?
|
|
||||||
# we do it by checking if the user has started to write a flag
|
|
||||||
# or a path, and then decide what to complete.
|
|
||||||
# that is, to complete a flag, the user must start to write a '-'
|
|
||||||
if [[ "$cur" == -* ]]; then
|
|
||||||
# (we assume) it's the start of a flag
|
|
||||||
# set COMPREPLY to flags relevant to these actions
|
|
||||||
COMPREPLY=( $( compgen -W "$dbflags $registerflags" -- $cur ) )
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
unregister|expose|hide|list|describe)
|
|
||||||
# all these actions can be completed with exactly one argument,
|
|
||||||
# a pkg-id.
|
|
||||||
COMPREPLY=( $( compgen -W "$dbflags" -- $cur ) )
|
|
||||||
|
|
||||||
# add special flags for some actions
|
|
||||||
if [[ "$action" == "list" ]]; then
|
|
||||||
COMPREPLY+=( $( compgen -W "$listflags" -- $cur ) )
|
|
||||||
fi
|
|
||||||
|
|
||||||
COMPREPLY+=( $( compgen -W "$( _ghc-pkg-pkgs include-ids )" -- $cur ) )
|
|
||||||
;;
|
|
||||||
latest)
|
|
||||||
# complete only packages, not package ids
|
|
||||||
COMPREPLY=( $( compgen -W "$( _ghc-pkg-pkgs include-pkgs )" -- $cur ) )
|
|
||||||
;;
|
|
||||||
field)
|
|
||||||
# we should always complete on the flags...
|
|
||||||
COMPREPLY=( $( compgen -W "$dbflags" -- $cur ) )
|
|
||||||
|
|
||||||
# then, we should either complete the package name or the field
|
|
||||||
# lets find out which one
|
|
||||||
|
|
||||||
# find the number of words in COMP_WORDS before COMP_CWORD that
|
|
||||||
# isn't flags. it should be 2 or 3 for us to complete it,
|
|
||||||
# exactly 2 if we should complete the package name
|
|
||||||
# exactly 3 if we should complete the field name
|
|
||||||
# otherwise, don't do any additional completion except the
|
|
||||||
# flags
|
|
||||||
|
|
||||||
# count the number of non flags up till the current word
|
|
||||||
local numnonflags=0 lastword i
|
|
||||||
for (( i=0 ; $i < $COMP_CWORD ; i++ )); do
|
|
||||||
if [[ ${COMP_WORDS[$i]} != -* ]]; then
|
|
||||||
lastword=${COMP_WORDS[$i]}
|
|
||||||
numnonflags=$(( ++numnonflags ))
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
case $numnonflags in
|
|
||||||
2)
|
|
||||||
# complete on pkg-ids
|
|
||||||
COMPREPLY+=( $( compgen -W "$( _ghc-pkg-pkgs include-ids )" -- $cur ) ) ;;
|
|
||||||
3)
|
|
||||||
# complete on fields
|
|
||||||
COMPREPLY+=( $( compgen -W "$( _ghc-pkg-pkg-fields $lastword )" -- $cur ) ) ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# unknown action, not yet given by the user
|
|
||||||
# return all possible completions
|
|
||||||
COMPREPLY=( $( compgen -W "$actions $flags" -- $cur ) )
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
complete -F _ghc-pkg -o default ghc-pkg
|
|
||||||
|
|
||||||
# vim: set ft=sh tw=80 sw=4 et :
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require bash-completion alternatives
|
|
||||||
|
|
||||||
SUMMARY="The Glorious Glasgow Haskell Compilation System"
|
|
||||||
DESCRIPTION="
|
|
||||||
GHC is a state-of-the-art, open source, compiler and interactive environment for the functional
|
|
||||||
language Haskell."
|
|
||||||
HOMEPAGE="https://www.haskell.org/ghc/"
|
|
||||||
DOWNLOADS="https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-deb7-linux.tar.xz"
|
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
|
||||||
SLOT="${PV}"
|
|
||||||
PLATFORMS="-* ~amd64"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-lang/perl:*[>=5.6.1]
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
|
||||||
!dev-lang/ghc [[
|
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
|
||||||
resolution = uninstall-blocked-before
|
|
||||||
]]
|
|
||||||
suggestion:
|
|
||||||
dev-haskell/cabal-install-bin [[ description = [ the cabal binary for installing packages ] ]]
|
|
||||||
dev-lang/llvm[>=2.7] [[ description = [ LLVM can be used for code generation and linking ] ]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
REMOTE_IDS="freecode:${PN}"
|
|
||||||
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}/ghc-${PV}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# we are not building, shut up already
|
|
||||||
edo mkdir "${TEMP}"/bin
|
|
||||||
edo ln -s /usr/$(exhost --target)/bin/$(exhost --tool-prefix)ar "${TEMP}/bin/ar"
|
|
||||||
edo ln -s /usr/$(exhost --target)/bin/true "${TEMP}"/bin/strip
|
|
||||||
export PATH="${TEMP}/bin:$PATH"
|
|
||||||
edo ./configure \
|
|
||||||
--prefix=/usr/x86_64-pc-linux-gnu \
|
|
||||||
--datadir=/usr/share \
|
|
||||||
--datarootdir=/usr/share \
|
|
||||||
--docdir=/usr/share/doc/ghc-bin-${PV}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# bashcomp
|
|
||||||
dobashcompletion "${FILES}/ghc-bash-completion"
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/share/bash-completion/completions/ghc-bin{,-${SLOT}}
|
|
||||||
|
|
||||||
# some scripts are not versioned, move
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hp2ps,hp2ps-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hpc,hpc-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hsc2hs,hsc2hs-${SLOT}}
|
|
||||||
|
|
||||||
# remove unversioned symlinks, we create alternatives later
|
|
||||||
local ghc_bin
|
|
||||||
for ghc_bin in ghc ghci ghc-pkg haddock runghc runhaskell ; do
|
|
||||||
edo rm "${IMAGE}"/usr/$(exhost --target)/bin/${ghc_bin}
|
|
||||||
done
|
|
||||||
unset ghc_bin
|
|
||||||
|
|
||||||
# create alternatives for scripts/binaries
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghci{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc-pkg{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/haddock{,-ghc-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hp2ps{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hpc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hsc2hs{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runhaskell /usr/$(exhost --target)/bin/runghc-${SLOT}
|
|
||||||
}
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require bash-completion alternatives
|
|
||||||
|
|
||||||
SUMMARY="The Glorious Glasgow Haskell Compilation System"
|
|
||||||
DESCRIPTION="
|
|
||||||
GHC is a state-of-the-art, open source, compiler and interactive environment for the functional
|
|
||||||
language Haskell."
|
|
||||||
HOMEPAGE="https://www.haskell.org/ghc/"
|
|
||||||
DOWNLOADS="https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-deb7-linux.tar.xz"
|
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
|
||||||
SLOT="${PV}"
|
|
||||||
PLATFORMS="-* ~amd64"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-lang/perl:*[>=5.6.1]
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
|
||||||
!dev-lang/ghc [[
|
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
|
||||||
resolution = uninstall-blocked-before
|
|
||||||
]]
|
|
||||||
suggestion:
|
|
||||||
dev-haskell/cabal-install-bin [[ description = [ the cabal binary for installing packages ] ]]
|
|
||||||
dev-lang/llvm[>=2.7] [[ description = [ LLVM can be used for code generation and linking ] ]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
REMOTE_IDS="freecode:${PN}"
|
|
||||||
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}/ghc-${PV}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# we are not building, shut up already
|
|
||||||
edo mkdir "${TEMP}"/bin
|
|
||||||
edo ln -s /usr/$(exhost --target)/bin/$(exhost --tool-prefix)ar "${TEMP}/bin/ar"
|
|
||||||
edo ln -s /usr/$(exhost --target)/bin/true "${TEMP}"/bin/strip
|
|
||||||
export PATH="${TEMP}/bin:$PATH"
|
|
||||||
econf \
|
|
||||||
--target=$(exhost --target)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# bashcomp
|
|
||||||
dobashcompletion "${FILES}/ghc-bash-completion"
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/share/bash-completion/completions/ghc-bin{,-${SLOT}}
|
|
||||||
|
|
||||||
# some scripts are not versioned, move
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hp2ps,hp2ps-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hpc,hpc-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hsc2hs,hsc2hs-${SLOT}}
|
|
||||||
|
|
||||||
# remove unversioned symlinks, we create alternatives later
|
|
||||||
local ghc_bin
|
|
||||||
for ghc_bin in ghc ghci ghc-pkg haddock runghc runhaskell ; do
|
|
||||||
edo rm "${IMAGE}"/usr/$(exhost --target)/bin/${ghc_bin}
|
|
||||||
done
|
|
||||||
unset ghc_bin
|
|
||||||
|
|
||||||
# create alternatives for scripts/binaries
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghci{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc-pkg{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/haddock{,-ghc-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hp2ps{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hpc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hsc2hs{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runhaskell /usr/$(exhost --target)/bin/runghc-${SLOT}
|
|
||||||
}
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require bash-completion alternatives
|
|
||||||
|
|
||||||
SUMMARY="The Glorious Glasgow Haskell Compilation System"
|
|
||||||
DESCRIPTION="
|
|
||||||
GHC is a state-of-the-art, open source, compiler and interactive environment for the functional
|
|
||||||
language Haskell."
|
|
||||||
HOMEPAGE="https://www.haskell.org/ghc/"
|
|
||||||
DOWNLOADS="https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz"
|
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
|
||||||
SLOT="${PV}"
|
|
||||||
PLATFORMS="-* ~amd64"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-lang/perl:*[>=5.6.1]
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
|
||||||
!dev-lang/ghc [[
|
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
|
||||||
resolution = uninstall-blocked-before
|
|
||||||
]]
|
|
||||||
suggestion:
|
|
||||||
dev-haskell/cabal-install-bin [[ description = [ the cabal binary for installing packages ] ]]
|
|
||||||
dev-lang/llvm[>=2.7] [[ description = [ LLVM can be used for code generation and linking ] ]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
REMOTE_IDS="freecode:${PN}"
|
|
||||||
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}/ghc-${PV}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--target=$(exhost --target)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# bashcomp
|
|
||||||
dobashcompletion "${FILES}/ghc-bash-completion"
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/share/bash-completion/completions/ghc-bin{,-${SLOT}}
|
|
||||||
|
|
||||||
# some scripts are not versioned, move
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hp2ps,hp2ps-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hpc,hpc-${SLOT}}
|
|
||||||
edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{hsc2hs,hsc2hs-${SLOT}}
|
|
||||||
|
|
||||||
# remove unversioned symlinks, we create alternatives later
|
|
||||||
local ghc_bin
|
|
||||||
for ghc_bin in ghc ghci ghc-pkg haddock runghc runhaskell ; do
|
|
||||||
edo rm "${IMAGE}"/usr/$(exhost --target)/bin/${ghc_bin}
|
|
||||||
done
|
|
||||||
unset ghc_bin
|
|
||||||
|
|
||||||
# create alternatives for scripts/binaries
|
|
||||||
alternatives_for ghc ${SLOT} ${SLOT} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghci{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/ghc-pkg{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/haddock{,-ghc-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hp2ps{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hpc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/hsc2hs{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runghc{,-${SLOT}} \
|
|
||||||
/usr/$(exhost --target)/bin/runhaskell /usr/$(exhost --target)/bin/runghc-${SLOT}
|
|
||||||
|
|
||||||
# alternatives for manpages
|
|
||||||
local file alternatives=()
|
|
||||||
for file in "${IMAGE}"/usr/share/man/*/*; do
|
|
||||||
alternatives+=(
|
|
||||||
${file#${IMAGE}}
|
|
||||||
${file#${IMAGE}}-${SLOT}
|
|
||||||
)
|
|
||||||
done
|
|
||||||
alternatives_for \
|
|
||||||
ghc ${SLOT} ${SLOT} \
|
|
||||||
"${alternatives[@]}"
|
|
||||||
}
|
|
||||||
@@ -30,9 +30,14 @@ src_install() {
|
|||||||
# utterly broken shit, doesn't honour INSTALLMAN1DIR etc
|
# utterly broken shit, doesn't honour INSTALLMAN1DIR etc
|
||||||
# no, I'm not hacking on perl build systems
|
# no, I'm not hacking on perl build systems
|
||||||
dodir /usr/share/man
|
dodir /usr/share/man
|
||||||
|
edo mv "${IMAGE%/}"/usr/$(exhost --target)/man/man1 \
|
||||||
|
"${IMAGE%/}"/usr/share/man/man1
|
||||||
|
edo mv "${IMAGE%/}"/usr/$(exhost --target)/man/man3 \
|
||||||
|
"${IMAGE%/}"/usr/share/man/man3
|
||||||
edo mv "${IMAGE%/}"/usr/$(exhost --target)/share/man/man5 \
|
edo mv "${IMAGE%/}"/usr/$(exhost --target)/share/man/man5 \
|
||||||
"${IMAGE%/}"/usr/share/man/man5
|
"${IMAGE%/}"/usr/share/man/man5
|
||||||
edo rmdir "${IMAGE%/}"/usr/$(exhost --target)/share/man \
|
edo rmdir "${IMAGE%/}"/usr/$(exhost --target)/man \
|
||||||
|
"${IMAGE%/}"/usr/$(exhost --target)/share/man \
|
||||||
"${IMAGE%/}"/usr/$(exhost --target)/share
|
"${IMAGE%/}"/usr/$(exhost --target)/share
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,25 +24,14 @@ MYOPTIONS=""
|
|||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
dev-python/typed-ast[>=1.1.0&<1.2.0][python_abis:*(-)?]
|
dev-python/typed-ast[>=1.1.0&<1.2.0][python_abis:*(-)?]
|
||||||
|
dev-python/psutil[>=5.4.0&<5.5.0][python_abis:*(-)?]
|
||||||
python_abis:3.4? (
|
python_abis:3.4? (
|
||||||
dev-python/typing[>=3.5.3][python_abis:3.4]
|
dev-python/typing[>=3.5.3][python_abis:3.4]
|
||||||
)
|
)
|
||||||
test:
|
|
||||||
dev-python/py[>=1.5.2][python_abis:*(-)?]
|
|
||||||
dev-python/pytest[>=3.0][python_abis:*(-)?]
|
|
||||||
dev-python/pytest-cov[>=2.4.0][python_abis:*(-)?]
|
|
||||||
dev-python/pytest-xdist[>=1.18][python_abis:*(-)?]
|
|
||||||
suggestion:
|
|
||||||
dev-python/psutil[>=5.4.0&<5.5.0][python_abis:*(-)?] [[
|
|
||||||
description = [ Show memory stats in 'dmypy status -v' ] ]]
|
|
||||||
"
|
"
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
# Require upstream release with https://github.com/python/mypy/pull/5191 included
|
|
||||||
# Require unpackaged: flake8-bugbear, flake8-pyi
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
prepare_one_multibuild() {
|
prepare_one_multibuild() {
|
||||||
edo sed -i \
|
edo sed -i \
|
||||||
-e "/target = /s|lib|$(exhost --target)/lib|" \
|
-e "/target = /s|lib|$(exhost --target)/lib|" \
|
||||||
@@ -51,7 +40,3 @@ prepare_one_multibuild() {
|
|||||||
setup-py_prepare_one_multibuild
|
setup-py_prepare_one_multibuild
|
||||||
}
|
}
|
||||||
|
|
||||||
test_one_multibuild() {
|
|
||||||
PYTHONPATH="${PWD}" edo ${PYTHON} -B runtests.py -x lint
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user="vsergeev" ]
|
|
||||||
require pypi
|
|
||||||
require setup-py [ import=setuptools test=pytest ]
|
|
||||||
|
|
||||||
SUMMARY="A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux"
|
|
||||||
HOMEPAGE="https://github.com/vsergeev/python-periphery ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
test:
|
|
||||||
dev-python/pytest-runner[python_abis:*(-)?]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Upstream: https://github.com/AGProjects/python-sipsimple/pull/3
|
|
||||||
|
|
||||||
From f96d1e8637f817dc76188742d2e0e1b7b2776581 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Benjamin Lamowski <benjamin@lamowski.net>
|
|
||||||
Date: Tue, 22 May 2018 10:11:06 -0400
|
|
||||||
Subject: [PATCH] pjsip: fix compilation error with FFmpeg 2.8.14
|
|
||||||
|
|
||||||
---
|
|
||||||
deps/pjsip/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/deps/pjsip/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c b/deps/pjsip/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
|
|
||||||
index cf859408..097479f6 100644
|
|
||||||
--- a/deps/pjsip/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
|
|
||||||
+++ b/deps/pjsip/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c
|
|
||||||
@@ -1684,12 +1684,12 @@ static pj_status_t ffmpeg_codec_decode_whole(pjmedia_vid_codec *codec,
|
|
||||||
avpacket.size = (int)input->size;
|
|
||||||
|
|
||||||
/* ffmpeg warns:
|
|
||||||
- * - input buffer padding, at least FF_INPUT_BUFFER_PADDING_SIZE
|
|
||||||
+ * - input buffer padding, at least AV_INPUT_BUFFER_PADDING_SIZE
|
|
||||||
* - null terminated
|
|
||||||
* Normally, encoded buffer is allocated more than needed, so lets just
|
|
||||||
* bzero the input buffer end/pad, hope it will be just fine.
|
|
||||||
*/
|
|
||||||
- pj_bzero(avpacket.data+avpacket.size, FF_INPUT_BUFFER_PADDING_SIZE);
|
|
||||||
+ pj_bzero(avpacket.data+avpacket.size, AV_INPUT_BUFFER_PADDING_SIZE);
|
|
||||||
|
|
||||||
output->bit_info = 0;
|
|
||||||
output->timestamp = input->timestamp;
|
|
||||||
@@ -1,173 +0,0 @@
|
|||||||
Upstream: https://trac.pjsip.org/repos/changeset/5405/pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp
|
|
||||||
Reason: Support for OpenH264 v1.6.0 codec
|
|
||||||
|
|
||||||
Index: deps/pjsip/pjmedia/src/pjmedia-codec/openh264.cpp
|
|
||||||
===================================================================
|
|
||||||
--- deps/pjsip/pjmedia/src/pjmedia-codec/openh264.cpp (revision 5045)
|
|
||||||
+++ deps/pjsip/pjmedia/src/pjmedia-codec/openh264.cpp (revision 5405)
|
|
||||||
@@ -164,6 +164,6 @@
|
|
||||||
struct SLayerPEncCtx
|
|
||||||
{
|
|
||||||
- pj_int32_t iDLayerQp;
|
|
||||||
- SSliceConfig sSliceCfg;
|
|
||||||
+ pj_int32_t iDLayerQp;
|
|
||||||
+ SSliceArgument sSliceArgument;
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -471,16 +471,17 @@
|
|
||||||
|
|
||||||
/* Init encoder parameters */
|
|
||||||
- pj_bzero(&eprm, sizeof(eprm));
|
|
||||||
- eprm.iInputCsp = videoFormatI420;
|
|
||||||
+ oh264_data->enc->GetDefaultParams (&eprm);
|
|
||||||
+ eprm.iComplexityMode = MEDIUM_COMPLEXITY;
|
|
||||||
eprm.sSpatialLayers[0].uiProfileIdc = PRO_BASELINE;
|
|
||||||
eprm.iPicWidth = param->enc_fmt.det.vid.size.w;
|
|
||||||
+ eprm.iUsageType = CAMERA_VIDEO_REAL_TIME;
|
|
||||||
eprm.iPicHeight = param->enc_fmt.det.vid.size.h;
|
|
||||||
eprm.fMaxFrameRate = (param->enc_fmt.det.vid.fps.num *
|
|
||||||
1.0f /
|
|
||||||
param->enc_fmt.det.vid.fps.denum);
|
|
||||||
- eprm.uiFrameToBeCoded = (unsigned int) -1;
|
|
||||||
eprm.iTemporalLayerNum = 1;
|
|
||||||
eprm.uiIntraPeriod = 0; /* I-Frame interval in frames */
|
|
||||||
- eprm.bEnableSpsPpsIdAddition = (oh264_data->whole? false : true);
|
|
||||||
+ eprm.eSpsPpsIdStrategy = (oh264_data->whole ? CONSTANT_ID :
|
|
||||||
+ INCREASING_ID);
|
|
||||||
eprm.bEnableFrameCroppingFlag = true;
|
|
||||||
eprm.iLoopFilterDisableIdc = 0;
|
|
||||||
@@ -505,16 +506,17 @@
|
|
||||||
pj_bzero(&elayer_ctx, sizeof (SLayerPEncCtx));
|
|
||||||
elayer_ctx.iDLayerQp = 24;
|
|
||||||
- elayer_ctx.sSliceCfg.uiSliceMode = (oh264_data->whole ?
|
|
||||||
- SM_SINGLE_SLICE : SM_DYN_SLICE);
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceSizeConstraint = param->enc_mtu;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceNum = 1;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[0] = 960;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[1] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[2] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[3] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[4] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[5] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[6] = 0;
|
|
||||||
- elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[7] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMode = (oh264_data->whole ?
|
|
||||||
+ SM_SINGLE_SLICE :
|
|
||||||
+ SM_SIZELIMITED_SLICE);
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceSizeConstraint = param->enc_mtu;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceNum = 1;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[0] = 960;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[1] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[2] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[3] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[4] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[5] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[6] = 0;
|
|
||||||
+ elayer_ctx.sSliceArgument.uiSliceMbNum[7] = 0;
|
|
||||||
|
|
||||||
elayer->iVideoWidth = eprm.iPicWidth;
|
|
||||||
@@ -524,12 +526,12 @@
|
|
||||||
elayer->iSpatialBitrate = eprm.iTargetBitrate;
|
|
||||||
elayer->iDLayerQp = elayer_ctx.iDLayerQp;
|
|
||||||
- elayer->sSliceCfg.uiSliceMode = elayer_ctx.sSliceCfg.uiSliceMode;
|
|
||||||
-
|
|
||||||
- memcpy( &elayer->sSliceCfg,
|
|
||||||
- &elayer_ctx.sSliceCfg,
|
|
||||||
- sizeof (SSliceConfig));
|
|
||||||
- memcpy( &elayer->sSliceCfg.sSliceArgument.uiSliceMbNum[0],
|
|
||||||
- &elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum[0],
|
|
||||||
- sizeof (elayer_ctx.sSliceCfg.sSliceArgument.uiSliceMbNum));
|
|
||||||
+ elayer->sSliceArgument.uiSliceMode = elayer_ctx.sSliceArgument.uiSliceMode;
|
|
||||||
+
|
|
||||||
+ memcpy ( &elayer->sSliceArgument,
|
|
||||||
+ &elayer_ctx.sSliceArgument,
|
|
||||||
+ sizeof (SSliceArgument));
|
|
||||||
+ memcpy ( &elayer->sSliceArgument.uiSliceMbNum[0],
|
|
||||||
+ &elayer_ctx.sSliceArgument.uiSliceMbNum[0],
|
|
||||||
+ sizeof (elayer_ctx.sSliceArgument.uiSliceMbNum));
|
|
||||||
|
|
||||||
/* Init input picture */
|
|
||||||
@@ -553,11 +555,18 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
+ int videoFormat = videoFormatI420;
|
|
||||||
+ rc = oh264_data->enc->SetOption (ENCODER_OPTION_DATAFORMAT, &videoFormat);
|
|
||||||
+ if (rc != cmResultSuccess) {
|
|
||||||
+ PJ_LOG(4,(THIS_FILE, "SVC encoder SetOption videoFormatI420 failed, "
|
|
||||||
+ "rc=%d", rc));
|
|
||||||
+ return PJMEDIA_CODEC_EFAILED;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/*
|
|
||||||
* Decoder
|
|
||||||
*/
|
|
||||||
sDecParam.sVideoProperty.size = sizeof (sDecParam.sVideoProperty);
|
|
||||||
- sDecParam.iOutputColorFormat = videoFormatI420;
|
|
||||||
sDecParam.uiTargetDqLayer = (pj_uint8_t) - 1;
|
|
||||||
- sDecParam.uiEcActiveFlag = 1;
|
|
||||||
+ sDecParam.eEcActiveIdc = ERROR_CON_SLICE_COPY;
|
|
||||||
sDecParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;
|
|
||||||
|
|
||||||
@@ -575,12 +584,4 @@
|
|
||||||
PJ_LOG(4,(THIS_FILE, "Decoder initialization failed, rc=%d", rc));
|
|
||||||
return PJMEDIA_CODEC_EFAILED;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- pj_int32_t color_fmt = videoFormatI420;
|
|
||||||
- rc = oh264_data->dec->SetOption (DECODER_OPTION_DATAFORMAT, &color_fmt);
|
|
||||||
- if (rc) {
|
|
||||||
- PJ_LOG(4,(THIS_FILE,
|
|
||||||
- "Warning: SetOption(DECODER_OPTION_DATAFORMAT) failed, rc=%d",
|
|
||||||
- rc));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -662,5 +663,5 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (oh264_data->bsi.eOutputFrameType == videoFrameTypeSkip) {
|
|
||||||
+ if (oh264_data->bsi.eFrameType == videoFrameTypeSkip) {
|
|
||||||
output->size = 0;
|
|
||||||
output->type = PJMEDIA_FRAME_TYPE_NONE;
|
|
||||||
@@ -682,11 +683,11 @@
|
|
||||||
/* Find which layer with biggest payload */
|
|
||||||
oh264_data->ilayer = 0;
|
|
||||||
- payload_size = oh264_data->bsi.sLayerInfo[0].iNalLengthInByte[0];
|
|
||||||
+ payload_size = oh264_data->bsi.sLayerInfo[0].pNalLengthInByte[0];
|
|
||||||
for (i=0; i < (unsigned)oh264_data->bsi.iLayerNum; ++i) {
|
|
||||||
unsigned j;
|
|
||||||
pLayerBsInfo = &oh264_data->bsi.sLayerInfo[i];
|
|
||||||
for (j=0; j < (unsigned)pLayerBsInfo->iNalCount; ++j) {
|
|
||||||
- if (pLayerBsInfo->iNalLengthInByte[j] > (int)payload_size) {
|
|
||||||
- payload_size = pLayerBsInfo->iNalLengthInByte[j];
|
|
||||||
+ if (pLayerBsInfo->pNalLengthInByte[j] > (int)payload_size) {
|
|
||||||
+ payload_size = pLayerBsInfo->pNalLengthInByte[j];
|
|
||||||
oh264_data->ilayer = i;
|
|
||||||
}
|
|
||||||
@@ -704,5 +705,5 @@
|
|
||||||
payload_size = 0;
|
|
||||||
for (int inal = pLayerBsInfo->iNalCount - 1; inal >= 0; --inal) {
|
|
||||||
- payload_size += pLayerBsInfo->iNalLengthInByte[inal];
|
|
||||||
+ payload_size += pLayerBsInfo->pNalLengthInByte[inal];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -761,5 +762,5 @@
|
|
||||||
output->size = payload_len;
|
|
||||||
|
|
||||||
- if (oh264_data->bsi.eOutputFrameType == videoFrameTypeIDR) {
|
|
||||||
+ if (oh264_data->bsi.eFrameType == videoFrameTypeIDR) {
|
|
||||||
output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME;
|
|
||||||
}
|
|
||||||
@@ -783,5 +784,5 @@
|
|
||||||
oh264_data->enc_frame_size = 0;
|
|
||||||
for (int inal = pLayerBsInfo->iNalCount - 1; inal >= 0; --inal) {
|
|
||||||
- oh264_data->enc_frame_size += pLayerBsInfo->iNalLengthInByte[inal];
|
|
||||||
+ oh264_data->enc_frame_size += pLayerBsInfo->pNalLengthInByte[inal];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -810,5 +811,5 @@
|
|
||||||
output->size = payload_len;
|
|
||||||
|
|
||||||
- if (oh264_data->bsi.eOutputFrameType == videoFrameTypeIDR) {
|
|
||||||
+ if (oh264_data->bsi.eFrameType == videoFrameTypeIDR) {
|
|
||||||
output->bit_info |= PJMEDIA_VID_FRM_KEYFRAME;
|
|
||||||
}
|
|
||||||
@@ -48,8 +48,6 @@ DEPENDENCIES="
|
|||||||
|
|
||||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||||
"${FILES}"/${PNV}-fix-build.patch
|
"${FILES}"/${PNV}-fix-build.patch
|
||||||
"${FILES}"/${PNV}-pjmedia-ffmpeg-fix.patch
|
|
||||||
-p0 "${FILES}"/${PNV}-pjmedia-openh264-1.6.patch
|
|
||||||
)
|
)
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require gem
|
|
||||||
|
|
||||||
SUMMARY="Binary-based efficient data interchange format for ruby binding"
|
|
||||||
HOMEPAGE="https://msgpack.org"
|
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require gem [ pn=neovim ]
|
|
||||||
|
|
||||||
SUMMARY="Ruby bindings for Neovim"
|
|
||||||
HOMEPAGE="https://github.com/alexgenco/neovim-ruby"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-ruby/msgpack[~>1.1]
|
|
||||||
dev-ruby/multi_json[~>1.0]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
REMOTE_IDS+=" github:alexgenco/neovim-ruby"
|
|
||||||
|
|
||||||
90
packages/dev-util/cquery/cquery-20180608.exheres-0
Normal file
90
packages/dev-util/cquery/cquery-20180608.exheres-0
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# TODO: no release tag yet, but older releases are not cmake compatible
|
||||||
|
SCM_REPOSITORY="https://github.com/cquery-project/cquery.git"
|
||||||
|
SCM_REVISION="6aa854dbe21d0bf871c452040a45a5c24dd385e3"
|
||||||
|
|
||||||
|
SCM_SECONDARY_REPOSITORIES="
|
||||||
|
doctest
|
||||||
|
loguru
|
||||||
|
msgpack_c
|
||||||
|
pugixml
|
||||||
|
rapidjson
|
||||||
|
sparsepp
|
||||||
|
predef
|
||||||
|
preprocessor
|
||||||
|
gtest
|
||||||
|
"
|
||||||
|
|
||||||
|
SCM_EXTERNAL_REFS="
|
||||||
|
third_party/doctest:doctest
|
||||||
|
third_party/loguru:loguru
|
||||||
|
third_party/msgpack-c:msgpack_c
|
||||||
|
third_party/pugixml:pugixml
|
||||||
|
third_party/rapidjson:rapidjson
|
||||||
|
third_party/sparsepp:sparsepp
|
||||||
|
"
|
||||||
|
|
||||||
|
SCM_doctest_REPOSITORY="https://github.com/onqtam/doctest.git"
|
||||||
|
SCM_loguru_REPOSITORY="https://github.com/emilk/loguru.git"
|
||||||
|
SCM_msgpack_c_REPOSITORY="https://github.com/msgpack/msgpack-c.git"
|
||||||
|
SCM_pugixml_REPOSITORY="https://github.com/zeux/pugixml.git"
|
||||||
|
SCM_rapidjson_REPOSITORY="https://github.com/Tencent/rapidjson.git"
|
||||||
|
SCM_sparsepp_REPOSITORY="https://github.com/greg7mdp/sparsepp.git"
|
||||||
|
SCM_predef_REPOSITORY="https://github.com/boostorg/predef.git"
|
||||||
|
SCM_preprocessor_REPOSITORY="https://github.com/boostorg/preprocessor.git"
|
||||||
|
SCM_gtest_REPOSITORY="https://github.com/google/googletest.git"
|
||||||
|
|
||||||
|
SCM_msgpack_c_EXTERNAL_REFS="
|
||||||
|
external/boost/predef:predef
|
||||||
|
external/boost/preprocessor:preprocessor
|
||||||
|
"
|
||||||
|
|
||||||
|
SCM_rapidjson_EXTERNAL_REFS="
|
||||||
|
thirdparty/gtest:gtest
|
||||||
|
"
|
||||||
|
|
||||||
|
require scm-git
|
||||||
|
require cmake [ api=2 ]
|
||||||
|
|
||||||
|
CLANG_VERSION="6.0.0"
|
||||||
|
CLANG_TARBALL_NAME="clang+llvm-${CLANG_VERSION}-x86_64-linux-gnu-ubuntu-14.04"
|
||||||
|
|
||||||
|
|
||||||
|
SUMMARY="C/C++ language server supporting multi-million line code base"
|
||||||
|
HOMEPAGE="https://github.com/cquery-project/cquery"
|
||||||
|
DOWNLOADS="
|
||||||
|
!system-clang? (
|
||||||
|
platform:amd64? ( https://releases.llvm.org/${CLANG_VERSION}/${CLANG_TARBALL_NAME}.tar.xz )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENCES="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
MYOPTIONS="
|
||||||
|
system-clang [[ description = [ Use system clang, NOT RECOMMENDED! ] ]]
|
||||||
|
platform: amd64
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
dev-libs/ncurses-libtinfo
|
||||||
|
sys-libs/zlib
|
||||||
|
system-clang? ( dev-lang/clang[>=6.0.0] )
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
REMOTE_IDS="github:cquery-project/cquery"
|
||||||
|
UPSTREAM_DOCUMENTATION="https://github.com/cquery-project/cquery/wiki"
|
||||||
|
|
||||||
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||||
|
-DCLANG_DOWNLOAD_LOCATION="${WORKBASE}"
|
||||||
|
)
|
||||||
|
|
||||||
|
CMAKE_SRC_CONFIGURE_OPTIONS=(
|
||||||
|
'system-clang SYSTEM_CLANG'
|
||||||
|
)
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user="amanusk" tag="v${PV}" ]
|
|
||||||
require pypi setup-py [ import=setuptools ]
|
|
||||||
|
|
||||||
SUMMARY="Stress-Terminal UI monitoring tool "
|
|
||||||
HOMEPAGE="https://amanusk.github.io/s-tui/ ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="GPL-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-python/psutil[>=5.2.0][python_abis:*(-)?]
|
|
||||||
dev-python/urwid[>=1.3.1][python_abis:*(-)?]
|
|
||||||
suggestion:
|
|
||||||
app-benchmarks/stress [[ description = [ For running stress tests in s-tui ] ]]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -16,11 +16,6 @@ MYOPTIONS="
|
|||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
|
||||||
!net-im/signal-desktop[<1.15.5] [[
|
|
||||||
description = [ /usr/host/bin/${PN} was accidentially a directory, paludis would refuse to merge ]
|
|
||||||
resolution = uninstall-blocked-before
|
|
||||||
]]
|
|
||||||
run:
|
run:
|
||||||
dev-libs/atk
|
dev-libs/atk
|
||||||
dev-libs/expat
|
dev-libs/expat
|
||||||
@@ -73,8 +68,8 @@ src_install() {
|
|||||||
doins -r usr/share/applications
|
doins -r usr/share/applications
|
||||||
doins -r usr/share/icons
|
doins -r usr/share/icons
|
||||||
edo chmod +x "${IMAGE}"/opt/Signal/signal-desktop
|
edo chmod +x "${IMAGE}"/opt/Signal/signal-desktop
|
||||||
dodir /usr/$(exhost --target)/bin/
|
dodir /usr/$(exhost --target)/bin/${PN}
|
||||||
dosym ../../../opt/Signal/signal-desktop /usr/$(exhost --target)/bin/${PN}
|
dosym ../../../opt/Signal/${MY_PN} /usr/$(exhost --target)/bin/${PN}
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require gtk-icon-cache freedesktop-desktop freedesktop-mime
|
|
||||||
|
|
||||||
SUMMARY="Team collaboration tool"
|
|
||||||
HOMEPAGE="http://www.slack.com/"
|
|
||||||
DOWNLOADS="https://downloads.slack-edge.com/linux_releases/${PN/-bin/}-desktop-${PV}-amd64.deb"
|
|
||||||
|
|
||||||
LICENCES="all-rights-reserved"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 -*"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
run:
|
|
||||||
dev-libs/atk
|
|
||||||
dev-libs/expat
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/libsecret:1
|
|
||||||
dev-libs/nspr
|
|
||||||
dev-libs/nss
|
|
||||||
gnome-platform/GConf:2
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype:2
|
|
||||||
net-misc/curl
|
|
||||||
net-print/cups
|
|
||||||
sys-apps/dbus
|
|
||||||
sys-sound/alsa-lib
|
|
||||||
x11-libs/cairo
|
|
||||||
x11-libs/gdk-pixbuf:2.0
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXScrnSaver
|
|
||||||
x11-libs/libXcomposite
|
|
||||||
x11-libs/libXcursor
|
|
||||||
x11-libs/libXdamage
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXfixes
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrandr
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
x11-libs/libxcb
|
|
||||||
x11-libs/libxkbfile
|
|
||||||
x11-libs/pango
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
WORK=${WORKBASE}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
exdirectory --allow /opt
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
unpack ./data.tar.xz
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/pixmaps
|
|
||||||
doins usr/share/pixmaps/slack.png
|
|
||||||
insinto /usr/share/icons/hicolor/512x512/apps
|
|
||||||
doins usr/share/pixmaps/slack.png
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins usr/share/applications/slack.desktop
|
|
||||||
|
|
||||||
insinto /opt/slack
|
|
||||||
doins -r usr/lib/slack/.
|
|
||||||
edo chmod +x "${IMAGE}"/opt/slack/slack
|
|
||||||
dodir /usr/$(exhost --target)/bin
|
|
||||||
dosym ../../../opt/slack/slack /usr/$(exhost --target)/bin/slack
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
freedesktop-mime_pkg_postinst
|
|
||||||
freedesktop-desktop_pkg_postinst
|
|
||||||
gtk-icon-cache_pkg_postinst
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
freedesktop-mime_pkg_postrm
|
|
||||||
freedesktop-desktop_pkg_postrm
|
|
||||||
gtk-icon-cache_pkg_postrm
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,14 +1,6 @@
|
|||||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
SCM_EXTERNAL_REFS="
|
|
||||||
flatpak/shared-modules:remminafpsm
|
|
||||||
"
|
|
||||||
SCM_SECONDARY_REPOSITORIES="
|
|
||||||
remminafpsm
|
|
||||||
"
|
|
||||||
SCM_remminafpsm_REPOSITORY="https://github.com/flathub/shared-modules.git"
|
|
||||||
|
|
||||||
require remmina
|
require remmina
|
||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ DEPENDENCIES="
|
|||||||
virtual/pkg-config
|
virtual/pkg-config
|
||||||
build+run:
|
build+run:
|
||||||
core/json-glib
|
core/json-glib
|
||||||
dev-libs/glib:2[>=2.30]
|
dev-libs/glib:2
|
||||||
dev-libs/libgcrypt
|
dev-libs/libgcrypt
|
||||||
dev-libs/libsecret:1
|
dev-libs/libsecret:1
|
||||||
gnome-desktop/libsoup:2.4
|
gnome-desktop/libsoup:2.4
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require cargo [ channel=stable ]
|
|
||||||
require github [ user=sharkdp tag="v${PV}" ]
|
|
||||||
|
|
||||||
SUMMARY="A simple, fast and user-friendly alternative to 'find'"
|
|
||||||
HOMEPAGE="http://crates.io/crates/fd ${HOMEPAGE}"
|
|
||||||
|
|
||||||
# not sure if this is choice or both
|
|
||||||
LICENCES="MIT Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user=sharkdp tag="v${PV}" ]
|
|
||||||
require cargo [ channel=stable ]
|
|
||||||
|
|
||||||
SUMMARY="A simple, fast and user-friendly alternative to 'find'"
|
|
||||||
HOMEPAGE="https://github.com/sharkdp/fd ${HOMEPAGE}"
|
|
||||||
|
|
||||||
# not sure if this is choice or both
|
|
||||||
LICENCES="MIT Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/sbin/openrc-run
|
|
||||||
|
|
||||||
description="Workaround for Intel throttling issues on Thinkpads in Linux"
|
|
||||||
|
|
||||||
command="/usr/lib/lenovo-throttling-fix/lenovo_fix.py"
|
|
||||||
pidfile="/run/lenovo-throttling-fix.pid"
|
|
||||||
command_background="yes"
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user="erpalma" tag="v${PV}" ]
|
|
||||||
require python [ blacklist=2 multibuild=false ]
|
|
||||||
require systemd-service [ systemd_files=[ ] ]
|
|
||||||
require openrc-service
|
|
||||||
|
|
||||||
SUMMARY="Workaround for Intel throttling issues on Thinkpads in Linux"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-python/dbus-python[python_abis:*(-)?]
|
|
||||||
dev-python/psutil[python_abis:*(-)?]
|
|
||||||
gnome-bindings/pygobject[python_abis:*(-)?]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins etc/lenovo_fix.conf
|
|
||||||
systemd_files_doins "${SYSTEMDSYSTEMUNITDIR}" systemd/lenovo_fix.service
|
|
||||||
|
|
||||||
edo sed -i -e "s:env python[[:digit:].]*$:env ${PYTHON##*/}:" \
|
|
||||||
lenovo_fix.py
|
|
||||||
insinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
doins mmio.py
|
|
||||||
exeinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
doexe lenovo_fix.py
|
|
||||||
python_bytecompile /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
|
|
||||||
install_openrc_files
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user="erpalma" tag="v${PV}" ]
|
|
||||||
require python [ blacklist=2 multibuild=false ]
|
|
||||||
require systemd-service [ systemd_files=[ ] ]
|
|
||||||
require openrc-service
|
|
||||||
|
|
||||||
SUMMARY="Workaround for Intel throttling issues on Thinkpads in Linux"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
dev-python/dbus-python[python_abis:*(-)?]
|
|
||||||
dev-python/psutil[python_abis:*(-)?]
|
|
||||||
gnome-bindings/pygobject[python_abis:*(-)?]
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
doins etc/lenovo_fix.conf
|
|
||||||
systemd_files_doins "${SYSTEMDSYSTEMUNITDIR}" systemd/lenovo_fix.service
|
|
||||||
|
|
||||||
edo sed -i -e "s:env python[[:digit:].]*$:env ${PYTHON##*/}:" \
|
|
||||||
lenovo_fix.py
|
|
||||||
insinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
doins mmio.py
|
|
||||||
exeinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
doexe lenovo_fix.py
|
|
||||||
python_bytecompile /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
|
||||||
|
|
||||||
install_openrc_files
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require cargo [ channel=nightly ]
|
|
||||||
require github [ user=BurntSushi ]
|
|
||||||
|
|
||||||
SUMMARY="ripgrep recursively searches directories for a regex pattern"
|
|
||||||
HOMEPAGE="https://crates.io/crates/ripgrep ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user=BurntSushi ]
|
|
||||||
require cargo [ channel=stable ]
|
|
||||||
|
|
||||||
SUMMARY="ripgrep recursively searches directories for a regex pattern"
|
|
||||||
HOMEPAGE="https://github.com/BurntSushi/ripgrep ${HOMEPAGE}"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
DEPENDENCIES="
|
|
||||||
"
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
# Copyright 2012 Lasse Brun <bruners@gmail.com>
|
|
||||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
require github [ user=gkovacs ] freedesktop-desktop gtk-icon-cache qmake [ slot=4 ]
|
|
||||||
|
|
||||||
SUMMARY="GUI for making bootable USB drives"
|
|
||||||
DESCRIPTION="UNetbootin allows you to create bootable Live USB drives for
|
|
||||||
most Linux distributions without burning a CD. You can either let
|
|
||||||
UNetbootin download one of the many distributions supported out-of-the-box
|
|
||||||
for you, or supply your own Linux .iso file if you've already downloaded
|
|
||||||
one or your preferred distribution isn't on the list."
|
|
||||||
|
|
||||||
UNETBOOTIN_LINGUAS="am ar ast be bg bn ca cs da de el eo es et eu fi fo fr
|
|
||||||
gl he hr hu id it ja lt lv ml ms nan nb nl nn pl pt pt_BR ro ru sk sl
|
|
||||||
sr sv sw tr uk ur vi zh_CN zh_TW"
|
|
||||||
|
|
||||||
MYOPTIONS="linguas: ( ${UNETBOOTIN_LINGUAS} )"
|
|
||||||
SLOT="0"
|
|
||||||
LICENCES="GPL-2"
|
|
||||||
PLATFORMS="~amd64"
|
|
||||||
DEPENDENCIES="
|
|
||||||
build+run:
|
|
||||||
x11-libs/qt:4
|
|
||||||
|
|
||||||
recommendation:
|
|
||||||
base/syslinux [[
|
|
||||||
description = [ Required for FAT32 and EXT2 formatted USB drive install mode ]
|
|
||||||
]]
|
|
||||||
sys-fs/mtools [[
|
|
||||||
description = [ Required for Arch Linux install mode which depends upon mlabel ]
|
|
||||||
]]
|
|
||||||
"
|
|
||||||
|
|
||||||
WORK="${WORK}/src/${PN}"
|
|
||||||
EQMAKE_SOURCES=( ${WORK}/${PN}.pro )
|
|
||||||
QMAKE4_SRC_CONFIGURE_PARAMS=(
|
|
||||||
"DEFINES += NOSTATIC"
|
|
||||||
"RESOURCES -= unetbootin.qrc"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Configure http://sourceforge.net/apps/trac/unetbootin/wiki/compile
|
|
||||||
edo sed -i '/^RESOURCES/d' unetbootin.pro
|
|
||||||
edo lupdate unetbootin.pro
|
|
||||||
edo lrelease unetbootin.pro
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local size lang
|
|
||||||
|
|
||||||
# Install the binary
|
|
||||||
dobin ${PN}
|
|
||||||
|
|
||||||
# Install the desktop shortcut
|
|
||||||
insinto /usr/share/applications
|
|
||||||
doins ${PN}.desktop
|
|
||||||
|
|
||||||
# Install icons
|
|
||||||
for size in 14 16 22 24 32 48 64 128 256 ; do
|
|
||||||
insinto /usr/share/icons/hicolor/${size}x${size}/apps
|
|
||||||
newins "${WORK}"/${PN}_${size}.png ${PN}.png
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install linguas
|
|
||||||
insinto /usr/share/${PN}
|
|
||||||
for lang in ${UNETBOOTIN_LINGUAS} ; do
|
|
||||||
option "linguas:${lang}" && doins "${WORK}"/${PN}_${lang}.qm
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
* dev-haskell/cabal-install-bin
|
|
||||||
* dev-lang/ghc-bin
|
|
||||||
? dev-haskell/stack-bin
|
|
||||||
Reference in New Issue
Block a user