forked from hasufell/hasufell-repository
Compare commits
99 Commits
Author | SHA1 | Date |
---|---|---|
Julian Ospald | 2b40b9260b | |
Julian Ospald | 14b5db8dab | |
Julian Ospald | 4fc6ed1325 | |
Julian Ospald | 0d526c1d80 | |
Julian Ospald | 17395d0216 | |
Alexander Kapshuna | 54067cb343 | |
Alexander Kapshuna | 8ed852e56d | |
Julian Ospald | a79ebcd9dc | |
Julian Ospald | d4c7c8d9b9 | |
Tom Briden | 5e699d1726 | |
Tom Briden | b41ebb0721 | |
Tom Briden | 4e1a8a1068 | |
Tom Briden | 8a523372f8 | |
Julian Ospald | e3f6a57f40 | |
Tom Briden | b2dad547cc | |
Tom Briden | 27b0739571 | |
Tom Briden | 9c33cb1f66 | |
Tom Briden | b49b02a3e6 | |
Tom Briden | e4a06a0485 | |
Tom Briden | c8dcc6d55c | |
Tom Briden | 95e0219d20 | |
Tom Briden | 25a1476a63 | |
Julian Ospald | 8b94e41e86 | |
Alexander Kapshuna | ec357b2a55 | |
Julian Ospald | 3cd1d614e6 | |
Julian Ospald | ff1bba2534 | |
Julian Ospald | 4a78042076 | |
Julian Ospald | 47dd44960b | |
Julian Ospald | bd562c50ee | |
Tom Briden | dbdd912967 | |
Tom Briden | cbfe44c5be | |
Heiko Becker | 202a8fd01b | |
Heiko Becker | 0e8300cc25 | |
Heiko Becker | b88462c4c0 | |
Julian Ospald | 25c4021803 | |
Julian Ospald | d1d63cb4ed | |
Julian Ospald | 34c4e07240 | |
Mykola Orliuk | 44e2869a1d | |
Julian Ospald | 690e124c2d | |
Julian Ospald | bc28586ce1 | |
Julian Ospald | 909af2e2d8 | |
Julian Ospald | 7d30376303 | |
Julian Ospald | ff107e0cb4 | |
Julian Ospald | 06e051c936 | |
Julian Ospald | bf95a7808c | |
Julian Ospald | 439d7cac7a | |
Julian Ospald | ef0cc90bc5 | |
Alexander Kapshuna | c1628f8d2c | |
Alexander Kapshuna | 68441dab0a | |
Julian Ospald | f510f794cf | |
Alexander Kapshuna | 78fad033e5 | |
Julian Ospald | 26761cd859 | |
Julian Ospald | 4cc2eb403f | |
Julian Ospald | 1745296905 | |
Tom Briden | 7e9f4bf7c5 | |
Heiko Becker | d0bdc1b926 | |
Heiko Becker | 69856c6391 | |
Julian Ospald | 6dd4e0f8ea | |
Julian Ospald | a749d5efb3 | |
Tom Briden | 81afc50f2b | |
Tom Briden | a4ea000d0c | |
Tom Briden | b586e42edf | |
Julian Ospald | 006ff009ed | |
Julian Ospald | 7cdc48baa2 | |
Julian Ospald | e67b8f8e09 | |
Julian Ospald | 59d48f5815 | |
Julian Ospald | ab54bf85de | |
Julian Ospald | b14860cebf | |
Tom Briden | 13d8406bd3 | |
Julian Ospald | 41d42bb715 | |
Alexander Kapshuna | 4152cb1e6b | |
Julian Ospald | 1322e7f9e3 | |
Julian Ospald | 0c9cc0b012 | |
Julian Ospald | c83f773c70 | |
Julian Ospald | 2cb534ada2 | |
Julian Ospald | 89270c2e37 | |
Julian Ospald | c920cd46d8 | |
Julian Ospald | 46664464fd | |
Julian Ospald | ac4cd3ffac | |
Alexander Kapshuna | 4b0958bf38 | |
Alexander Kapshuna | 157ce5f5a4 | |
Julian Ospald | e0df2ad168 | |
Alexander Kapshuna | 61bc976426 | |
Alexander Kapshuna | 1ffcd771bc | |
Alexander Kapshuna | 6370389a0b | |
Julian Ospald | 3e69a618a9 | |
Julian Ospald | 92a0bcce82 | |
Julian Ospald | 5578c3c81c | |
Julian Ospald | a8aeaf6e85 | |
Julian Ospald | b8752b6986 | |
Julian Ospald | fbb5d28eb4 | |
Julian Ospald | 476aa72a93 | |
Julian Ospald | 01d4e4f6b1 | |
Julian Ospald | a538f37eb8 | |
Julian Ospald | 09c6107d61 | |
Julian Ospald | 8cfc6c559a | |
Julian Ospald | 8e4512bfab | |
Julian Ospald | bfdcf8cb1d | |
Julian Ospald | f22c6853e2 |
|
@ -5,6 +5,7 @@ app-crypt
|
||||||
app-diagram
|
app-diagram
|
||||||
app-editors
|
app-editors
|
||||||
app-ergonomics
|
app-ergonomics
|
||||||
|
app-misc
|
||||||
app-office
|
app-office
|
||||||
dev-cpp
|
dev-cpp
|
||||||
dev-db
|
dev-db
|
||||||
|
@ -18,6 +19,7 @@ dev-ocaml
|
||||||
dev-perl
|
dev-perl
|
||||||
dev-python
|
dev-python
|
||||||
dev-ruby
|
dev-ruby
|
||||||
|
dev-scm
|
||||||
dev-tcl
|
dev-tcl
|
||||||
dev-util
|
dev-util
|
||||||
games-action
|
games-action
|
||||||
|
@ -49,6 +51,7 @@ sci-mathematics
|
||||||
sys-apps
|
sys-apps
|
||||||
sys-boot
|
sys-boot
|
||||||
sys-process
|
sys-process
|
||||||
|
virtual
|
||||||
voip
|
voip
|
||||||
www-apps
|
www-apps
|
||||||
www-servers
|
www-servers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(
|
(
|
||||||
app-editors/neovim-gtk[~scm]
|
app-editors/neovim-gtk[~scm]
|
||||||
|
dev-haskell/ghcup[~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]
|
||||||
|
@ -22,8 +23,10 @@
|
||||||
net-misc/trickle[~scm]
|
net-misc/trickle[~scm]
|
||||||
sys-apps/fd[~scm]
|
sys-apps/fd[~scm]
|
||||||
sys-apps/lenovo-throttling-fix[~scm]
|
sys-apps/lenovo-throttling-fix[~scm]
|
||||||
|
sys-apps/lsd[~scm]
|
||||||
x11-apps/terminator[~scm]
|
x11-apps/terminator[~scm]
|
||||||
x11-misc/cbatticon[~scm]
|
x11-misc/cbatticon[~scm]
|
||||||
|
x11-misc/fsearch[~scm]
|
||||||
x11-wm/i3[~scm]
|
x11-wm/i3[~scm]
|
||||||
) [[
|
) [[
|
||||||
*author = [ Julian Ospald <hasufell@posteo.de> ]
|
*author = [ Julian Ospald <hasufell@posteo.de> ]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
require openrc-service [ openrc_confd_files=[ "${FILES}"/openrc/confd ] ]
|
require openrc-service [ openrc_confd_files=[ "${FILES}"/openrc/confd ] ]
|
||||||
require setup-py [ import=setuptools blacklist="3" ]
|
require setup-py [ import=setuptools test=pytest ]
|
||||||
require pypi
|
require pypi
|
||||||
|
|
||||||
SUMMARY="A system for controlling process state under UNIX"
|
SUMMARY="A system for controlling process state under UNIX"
|
||||||
|
@ -17,7 +17,8 @@ DEPENDENCIES="
|
||||||
run:
|
run:
|
||||||
dev-python/meld3[python_abis:*(-)?]
|
dev-python/meld3[python_abis:*(-)?]
|
||||||
test:
|
test:
|
||||||
dev-python/mock[python_abis:*(-)?]
|
dev-python/pexpect[python_abis:*(-)?]
|
||||||
|
python_abis:2.7? ( dev-python/mock[python_abis:2.7] )
|
||||||
"
|
"
|
||||||
|
|
||||||
RESTRICT="test" # sydbox violations
|
RESTRICT="test" # sydbox violations
|
|
@ -21,6 +21,7 @@ SLOT="0"
|
||||||
PLATFORMS="~amd64 ~x86"
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
||||||
MYOPTIONS="
|
MYOPTIONS="
|
||||||
|
gconf [[ description = [ compile with Gnome gconf2 support ] ]]
|
||||||
gnome [[ description = [ Add support for gnome panel ] ]]
|
gnome [[ description = [ Add support for gnome panel ] ]]
|
||||||
pulseaudio
|
pulseaudio
|
||||||
xfce4-panel [[ description = [ Add support for XFCE panel ] ]]
|
xfce4-panel [[ description = [ Add support for XFCE panel ] ]]
|
||||||
|
@ -35,21 +36,26 @@ DEPENDENCIES="
|
||||||
virtual/pkg-config
|
virtual/pkg-config
|
||||||
x11-proto/xorgproto
|
x11-proto/xorgproto
|
||||||
build+run:
|
build+run:
|
||||||
|
dev-cpp/cairomm:1.0
|
||||||
dev-cpp/libsigc++:2
|
dev-cpp/libsigc++:2
|
||||||
|
dev-libs/atk
|
||||||
dev-libs/glib:2
|
dev-libs/glib:2
|
||||||
|
gnome-bindings/atkmm:1.6
|
||||||
gnome-bindings/glibmm:2.4
|
gnome-bindings/glibmm:2.4
|
||||||
gnome-bindings/gtkmm:3
|
gnome-bindings/gtkmm:3
|
||||||
|
gnome-bindings/pangomm:1.4
|
||||||
gnome-desktop/gobject-introspection:=
|
gnome-desktop/gobject-introspection:=
|
||||||
media-libs/gstreamer:1.0[gobject-introspection]
|
media-libs/gstreamer:1.0[gobject-introspection]
|
||||||
media-plugins/gst-plugins-base:1.0[gobject-introspection]
|
media-plugins/gst-plugins-base:1.0[gobject-introspection]
|
||||||
media-plugins/gst-plugins-good:1.0
|
media-plugins/gst-plugins-good:1.0
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gdk-pixbuf:2.0
|
||||||
x11-libs/gtk+:3[gobject-introspection]
|
x11-libs/gtk+:3[gobject-introspection]
|
||||||
x11-libs/libSM
|
|
||||||
x11-libs/libX11
|
x11-libs/libX11
|
||||||
x11-libs/libXScrnSaver
|
x11-libs/libXScrnSaver
|
||||||
x11-libs/libXmu
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/libXtst
|
x11-libs/libXtst
|
||||||
|
x11-libs/pango:0
|
||||||
|
gconf? ( gnome-platform/GConf:2 )
|
||||||
gnome? ( gnome-base/gnome-shell )
|
gnome? ( gnome-base/gnome-shell )
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
xfce4-panel? (
|
xfce4-panel? (
|
||||||
|
@ -65,7 +71,6 @@ DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||||
--disable-distribution
|
--disable-distribution
|
||||||
--enable-exercises
|
--enable-exercises
|
||||||
--disable-experimental
|
--disable-experimental
|
||||||
--disable-gnome2
|
|
||||||
--disable-static
|
--disable-static
|
||||||
--disable-xml
|
--disable-xml
|
||||||
--disable-indicator
|
--disable-indicator
|
||||||
|
@ -77,6 +82,7 @@ DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||||
)
|
)
|
||||||
|
|
||||||
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
||||||
|
'gconf gconf'
|
||||||
'gnome gnome3'
|
'gnome gnome3'
|
||||||
'pulseaudio pulse'
|
'pulseaudio pulse'
|
||||||
'xfce4-panel xfce'
|
'xfce4-panel xfce'
|
|
@ -0,0 +1,36 @@
|
||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user="jarun" tag="v${PV}" ]
|
||||||
|
require bash-completion zsh-completion
|
||||||
|
|
||||||
|
SUMMARY="Lean, fast, zero-config, full-featured file manager with batteries "
|
||||||
|
|
||||||
|
LICENCES="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
virtual/pkg-config
|
||||||
|
build+run:
|
||||||
|
sys-libs/ncurses:=
|
||||||
|
sys-libs/readline:=
|
||||||
|
suggestion:
|
||||||
|
app-arch/libarchive [[ description = [ create, list and extract archives ] ]]
|
||||||
|
media/mediainfo [[ description = [ multimedia file details ] ]]
|
||||||
|
sys-auth/vlock [[ description = [ terminal locker ] ]]
|
||||||
|
sys-fs/sshfs-fuse [[ description = [ mount, unmount over SSHFS ] ]]
|
||||||
|
x11-apps/xdg-utils [[ description = [ desktop opener ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake PREFIX="/usr/$(exhost --target)" MANPREFIX="/usr/share/man" DESTDIR="${IMAGE}" install
|
||||||
|
emagicdocs
|
||||||
|
|
||||||
|
dobashcompletion scripts/auto-completion/bash/*
|
||||||
|
dozshcompletion scripts/auto-completion/zsh/*
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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://downloads.haskell.org/~debian/pool/main/c/cabal-install-2.4/cabal-install-2.4_2.4%2Bgit20180920.1.60e200d-6~deb9_amd64.deb"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
run:
|
||||||
|
virtual/GHC
|
||||||
|
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_unpack() {
|
||||||
|
default
|
||||||
|
unpack ./data.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin opt/cabal/2.4/bin/cabal
|
||||||
|
doman opt/cabal/2.4/share/man/man1/*
|
||||||
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
SUMMARY="cabal-install is the command line interface to Cabal and hackage"
|
SUMMARY="cabal-install is the command line interface to Cabal and hackage"
|
||||||
HOMEPAGE="https://www.haskell.org/cabal/"
|
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"
|
DOWNLOADS="https://downloads.haskell.org/~cabal/cabal-install-${PV}/cabal-install-${PV}-x86_64-unknown-linux.tar.xz"
|
||||||
|
|
||||||
LICENCES="BSD-3"
|
LICENCES="BSD-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -12,7 +12,7 @@ MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
run:
|
run:
|
||||||
dev-lang/ghc-bin
|
virtual/GHC
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||||
!dev-haskell/cabal-install [[
|
!dev-haskell/cabal-install [[
|
||||||
description = [ Both install the same binary ]
|
description = [ Both install the same binary ]
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user=haskell ]
|
||||||
|
|
||||||
|
SUMMARY="Painless installation of GHC toolchain"
|
||||||
|
HOMEPAGE="https://www.haskell.org/ghcup/ ${HOMEPAGE}"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
run:
|
||||||
|
app-arch/gzip
|
||||||
|
app-arch/tar
|
||||||
|
app-arch/xz
|
||||||
|
net-misc/curl
|
||||||
|
sys-apps/coreutils
|
||||||
|
virtual/awk
|
||||||
|
suggestion:
|
||||||
|
net-misc/wget [[ description = [ alternative downloader ] ]]
|
||||||
|
recommendation:
|
||||||
|
(
|
||||||
|
dev-lang/llvm[>=2.7]
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
) [[ *description = [ Dependency for GHC ] *group-name = [ ghc-deps ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ghcup
|
||||||
|
emagicdocs
|
||||||
|
}
|
|
@ -16,8 +16,8 @@ MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
run:
|
run:
|
||||||
dev-lang/ghc-bin
|
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||||
|
virtual/GHC
|
||||||
"
|
"
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
BUGS_TO="hasufell@posteo.de"
|
|
@ -0,0 +1,182 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://hawkings.mailstation.de/~hasufell/ghc-${PV}-x86_64-unknown-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-unknown-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
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
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
PATH="${TEMP}/bin:$PATH" edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
PATH="${TEMP}/bin:$PATH" emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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}
|
||||||
|
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,179 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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}
|
||||||
|
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,179 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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}
|
||||||
|
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -46,12 +46,10 @@ RESTRICT="test"
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build:
|
build:
|
||||||
dev-libs/libxslt[>=1.1.2]
|
|
||||||
dev-python/Sphinx
|
dev-python/Sphinx
|
||||||
build+run:
|
build+run:
|
||||||
dev-lang/perl:*[>=5.6.1]
|
dev-lang/perl:*[>=5.6.1]
|
||||||
dev-libs/gmp:=[>=5]
|
dev-libs/gmp:=[>=5]
|
||||||
dev-libs/libedit
|
|
||||||
dev-libs/libffi
|
dev-libs/libffi
|
||||||
llvm? ( dev-lang/llvm[>=2.7] )
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
@ -161,13 +159,19 @@ src_install() {
|
||||||
/usr/$(exhost --target)/bin/runhaskell /usr/$(exhost --target)/bin/runghc-${SLOT}
|
/usr/$(exhost --target)/bin/runhaskell /usr/$(exhost --target)/bin/runghc-${SLOT}
|
||||||
|
|
||||||
# alternatives for manpages
|
# alternatives for manpages
|
||||||
local file alternatives=()
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
for file in "${IMAGE}"/usr/share/man/*/*; do
|
local file alternatives=()
|
||||||
alternatives+=(
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
${file#${IMAGE}}
|
${file#${IMAGE}}
|
||||||
${file#${IMAGE}}-${SLOT}
|
${file#${IMAGE}}-${SLOT}
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test_expensive() {
|
src_test_expensive() {
|
|
@ -0,0 +1,180 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,180 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,180 @@
|
||||||
|
# Copyright 2008 Santiago M. Mola
|
||||||
|
# Copyright 2008, 2009, 2010, 2011 Ingmar Vanhassel
|
||||||
|
# Copyright 2011 Markus Rothe
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# Based in part upon 'ghc-6.8.2.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
|
||||||
|
MY_PN="ghc"
|
||||||
|
MY_PNV="${MY_PN}-${PV}"
|
||||||
|
MY_PNVR="${MY_PN}-${PVR}"
|
||||||
|
|
||||||
|
require bash-completion flag-o-matic alternatives
|
||||||
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||||
|
|
||||||
|
SUMMARY="The Glorious Glasgow Haskell Compilation System (non-haskell packages version)"
|
||||||
|
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}/${MY_PNV}-src.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/${MY_PNV}-testsuite.tar.xz
|
||||||
|
https://downloads.haskell.org/~ghc/${PV}/ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="-* ~amd64"
|
||||||
|
|
||||||
|
BUGS_TO=""
|
||||||
|
REMOTE_IDS="freecode:${MY_PN}"
|
||||||
|
UPSTREAM_RELEASE_NOTES="http://www.haskell.org/${MY_PN}/docs/${PV}/html/users_guide/release-${PV//./-}.html"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="${PV}"
|
||||||
|
MYOPTIONS="
|
||||||
|
doc
|
||||||
|
llvm [[ description = [ Code generation using LLVM ] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
# `make test` takes really long, so disable it. It also succeeds (i.e. returned value is zero) in
|
||||||
|
# case of unexpected failures. There are always unexpected failures.
|
||||||
|
# If you really want to run the tests, then enable expensive tests in order to run `make fulltest`,
|
||||||
|
# which runs the same tests as `make test`, but includes more test cases per test.
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-python/Sphinx
|
||||||
|
build+run:
|
||||||
|
dev-lang/perl:*[>=5.6.1]
|
||||||
|
dev-libs/gmp:=[>=5]
|
||||||
|
dev-libs/libffi
|
||||||
|
llvm? ( dev-lang/llvm[>=2.7] )
|
||||||
|
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||||
|
!dev-lang/ghc-bin [[ resolution = uninstall-blocked-before ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
WORK=${WORKBASE}/${MY_PNV}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ghc-${PV}-x86_64-fedora27-linux.tar.xz
|
||||||
|
edo mv "${WORK}" "${WORK}-pre"
|
||||||
|
unpack ${MY_PNV}-src.tar.xz
|
||||||
|
unpack ${MY_PNV}-testsuite.tar.xz
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# prepare pre-built ghc
|
||||||
|
edo pushd "${WORK}-pre"
|
||||||
|
edo ./configure \
|
||||||
|
--prefix="${TEMP}/ghc-pre" \
|
||||||
|
--target=$(exhost --target)
|
||||||
|
emake install
|
||||||
|
edo popd
|
||||||
|
|
||||||
|
autotools_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Initialize build.mk
|
||||||
|
echo '# Exherbo changes' > mk/build.mk
|
||||||
|
|
||||||
|
cat <<EOF >> mk/build.mk
|
||||||
|
# Put docs into the right place
|
||||||
|
docdir = /usr/share/doc/${MY_PNVR}
|
||||||
|
htmldir = /usr/share/doc/${MY_PNVR}/html
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if option doc; then
|
||||||
|
echo "BUILD_SPHINX_HTML=YES" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "BUILD_SPHINX_HTML=NO" >> mk/build.mk
|
||||||
|
echo "BUILD_SPHINX_PDF=NO" >> mk/build.mk
|
||||||
|
echo "HADDOCK_DOCS=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=( --with-ghc=${TEMP}/ghc-pre/bin/ghc )
|
||||||
|
export PATH="${WORKBASE}/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
if option llvm; then
|
||||||
|
echo "GhcWithLlvmCodeGen=YES" >> mk/build.mk
|
||||||
|
else
|
||||||
|
echo "GhcWithLlvmCodeGen=NO" >> mk/build.mk
|
||||||
|
fi
|
||||||
|
|
||||||
|
GHC_SRC_CONFIGURE_OPTIONS+=(
|
||||||
|
--with-system-libffi
|
||||||
|
--with-ffi-includes=$(${PKG_CONFIG} --variable includedir libffi)
|
||||||
|
)
|
||||||
|
|
||||||
|
# host and build cause compilation (at least for 7.6.1) to fail, as they're intended for
|
||||||
|
# cross-compilation.
|
||||||
|
econf \
|
||||||
|
AR=${AR} \
|
||||||
|
CC=${CC} \
|
||||||
|
--target=$(exhost --target) \
|
||||||
|
"${GHC_SRC_CONFIGURE_OPTIONS[@]}"
|
||||||
|
|
||||||
|
# don't strip anything. Very useful when stage2 SIGSEGVs on you
|
||||||
|
echo "STRIP_CMD = :" >> mk/build.mk
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# libraries/ is a partial dupe of the html/ dir hierarchy, but
|
||||||
|
# containing only LICENSE files
|
||||||
|
edo rm -rf "${IMAGE}"/usr/share/doc/${MY_PNVR}/{LICENSE,libraries}
|
||||||
|
|
||||||
|
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 $(optionq doc && echo "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}} \
|
||||||
|
$(optionq doc && echo "/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
|
||||||
|
if [[ -d ${IMAGE}/usr/share/man ]]; then
|
||||||
|
local file alternatives=()
|
||||||
|
for file in "${IMAGE}"/usr/share/man/*/*; do
|
||||||
|
alternatives+=(
|
||||||
|
${file#${IMAGE}}
|
||||||
|
${file#${IMAGE}}-${SLOT}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
alternatives_for \
|
||||||
|
ghc ${SLOT} ${SLOT} \
|
||||||
|
"${alternatives[@]}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test_expensive() {
|
||||||
|
emake fulltest
|
||||||
|
}
|
||||||
|
|
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||||
dev-lang/perl:*[>=5.6.1]
|
dev-lang/perl:*[>=5.6.1]
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
||||||
|
!dev-lang/GHC [[
|
||||||
|
description = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
!dev-lang/ghc [[
|
!dev-lang/ghc [[
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
description = [ Both install the same binaries/libs and alternatives ]
|
||||||
resolution = uninstall-blocked-before
|
resolution = uninstall-blocked-before
|
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||||
dev-lang/perl:*[>=5.6.1]
|
dev-lang/perl:*[>=5.6.1]
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
||||||
|
!dev-lang/GHC [[
|
||||||
|
description = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
!dev-lang/ghc [[
|
!dev-lang/ghc [[
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
description = [ Both install the same binaries/libs and alternatives ]
|
||||||
resolution = uninstall-blocked-before
|
resolution = uninstall-blocked-before
|
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||||
dev-lang/perl:*[>=5.6.1]
|
dev-lang/perl:*[>=5.6.1]
|
||||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||||
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
sys-libs/ncurses[>=6.1-r2] [[ note = [ Only these include libtinfo.so symlinks ] ]]
|
||||||
|
!dev-lang/GHC [[
|
||||||
|
description = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
!dev-lang/ghc [[
|
!dev-lang/ghc [[
|
||||||
description = [ Both install the same binaries/libs and alternatives ]
|
description = [ Both install the same binaries/libs and alternatives ]
|
||||||
resolution = uninstall-blocked-before
|
resolution = uninstall-blocked-before
|
|
@ -0,0 +1,96 @@
|
||||||
|
# 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 = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
|
!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[@]}"
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
# 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 = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
|
!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[@]}"
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
# 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 = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
|
!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[@]}"
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
# 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 = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
|
!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[@]}"
|
||||||
|
}
|
|
@ -0,0 +1,96 @@
|
||||||
|
# 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 = [ different provider ]
|
||||||
|
resolution = uninstall-blocked-after
|
||||||
|
]]
|
||||||
|
!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[@]}"
|
||||||
|
}
|
|
@ -23,7 +23,8 @@ MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
dev-python/typed-ast[>=1.1.0&<1.2.0][python_abis:*(-)?]
|
dev-python/typed-ast[>=1.3.1&<1.4.0][python_abis:*(-)?]
|
||||||
|
dev-python/mypy_extensions[>=0.4.0&<0.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]
|
||||||
)
|
)
|
||||||
|
@ -40,7 +41,6 @@ DEPENDENCIES="
|
||||||
|
|
||||||
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
|
# Require unpackaged: flake8-bugbear, flake8-pyi
|
||||||
RESTRICT="test"
|
RESTRICT="test"
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Copyright 2018 Alexander Kapshuna <kapsh@kap.sh>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require pypi setup-py [ import=setuptools ]
|
||||||
|
|
||||||
|
SUMMARY="Experimental type system extensions for programs checked with the mypy typechecker"
|
||||||
|
|
||||||
|
LICENCES="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
python_abis:3.4? ( dev-python/typing[>=3.5.3][python_abis:3.4] )
|
||||||
|
"
|
||||||
|
|
|
@ -7,7 +7,7 @@ SUMMARY="OAuth 2.0 client library"
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
LICENCES="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
PLATFORMS="~amd64 ~armv7 ~x86"
|
PLATFORMS="~amd64 ~armv7 ~armv8 ~x86"
|
||||||
MYOPTIONS=""
|
MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
|
|
|
@ -16,7 +16,6 @@ DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
dev-python/six[>=1.9.0][python_abis:*(-)?]
|
dev-python/six[>=1.9.0][python_abis:*(-)?]
|
||||||
dev-python/wcwidth[python_abis:*(-)?]
|
dev-python/wcwidth[python_abis:*(-)?]
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
BUGS_TO="hasufell@posteo.de"
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Copyright 2012-2016 Wulf C. Krueger <philantrop@exherbo.org>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require psutil
|
||||||
|
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
# Copyright 2012-2016 Wulf C. Krueger <philantrop@exherbo.org>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require pypi setup-py [ import=setuptools test=nose blacklist="none" ]
|
||||||
|
|
||||||
|
SUMMARY="Cross-platform lib for process and system monitoring in Python"
|
||||||
|
|
||||||
|
BUGS_TO="philantrop@exherbo.org"
|
||||||
|
|
||||||
|
LICENCES="BSD-3"
|
||||||
|
SLOT="0"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
# The tests are broken; they try to mess with mount points, devices & other funny
|
||||||
|
# stuff. (last checked: 5.0.0)
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
python_abis:2.7? (
|
||||||
|
dev-python/enum34[python_abis:2.7]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
From: Julian Ospald <hasufell@gentoo.org>
|
|
||||||
Date: Tue Sep 8 01:22:40 UTC 2015
|
|
||||||
Subject: fix compatibility with libressl
|
|
||||||
Upstream: not yet
|
|
||||||
|
|
||||||
--- a/eventlib/green/socket.py
|
|
||||||
+++ b/eventlib/green/socket.py
|
|
||||||
@@ -89,7 +89,6 @@
|
|
||||||
else:
|
|
||||||
# some constants the SSL module exports but not in __all__
|
|
||||||
from eventlib.green.ssl import (RAND_add,
|
|
||||||
- RAND_egd,
|
|
||||||
RAND_status,
|
|
||||||
SSL_ERROR_ZERO_RETURN,
|
|
||||||
SSL_ERROR_WANT_READ,
|
|
|
@ -1,11 +1,11 @@
|
||||||
# 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
|
||||||
|
|
||||||
require setup-py [ import=distutils blacklist="3" ]
|
require github [ user="AGProjects" tag="release-${PV}" ]
|
||||||
|
require setup-py [ import=distutils blacklist="3" work="${PN}-release-${PV}" ]
|
||||||
|
|
||||||
SUMMARY="Coroutine-based networking library"
|
SUMMARY="Coroutine-based networking library"
|
||||||
HOMEPAGE="http://sipsimpleclient.org"
|
HOMEPAGE="http://sipsimpleclient.org"
|
||||||
DOWNLOADS="http://download.ag-projects.com/SipClient/${PNV}.tar.gz"
|
|
||||||
|
|
||||||
LICENCES="MIT"
|
LICENCES="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -16,8 +16,6 @@ MYOPTIONS=""
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
run:
|
run:
|
||||||
dev-python/greenlet[python_abis:*(-)?]
|
dev-python/greenlet[python_abis:*(-)?]
|
||||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
net-twisted/Twisted[python_abis:*(-)?]
|
||||||
"
|
"
|
||||||
|
|
||||||
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PNV}-libressl.patch" )
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# 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
|
||||||
|
|
||||||
require setup-py [ import=distutils blacklist="3" ]
|
require github [ user="AGProjects" tag="release-${PV}" ]
|
||||||
|
require setup-py [ import=distutils blacklist="3" work="${PN}-release-${PV}" ]
|
||||||
|
|
||||||
SUMMARY="Client library for MSRP protocol and its relay extension"
|
SUMMARY="Client library for MSRP protocol and its relay extension"
|
||||||
HOMEPAGE="http://sipsimpleclient.org"
|
HOMEPAGE="http://sipsimpleclient.org"
|
||||||
DOWNLOADS="http://download.ag-projects.com/MSRP/${PNV}.tar.gz"
|
|
||||||
|
|
||||||
LICENCES="LGPL-2"
|
LICENCES="LGPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -17,7 +17,6 @@ DEPENDENCIES="
|
||||||
dev-python/python-application[python_abis:*(-)?]
|
dev-python/python-application[python_abis:*(-)?]
|
||||||
dev-python/python-eventlib[python_abis:*(-)?]
|
dev-python/python-eventlib[python_abis:*(-)?]
|
||||||
dev-python/python-gnutls[>=3.0.0][python_abis:*(-)?]
|
dev-python/python-gnutls[>=3.0.0][python_abis:*(-)?]
|
||||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
net-twisted/Twisted[python_abis:*(-)?]
|
||||||
net-twisted/TwistedNames[python_abis:*(-)?]
|
|
||||||
"
|
"
|
||||||
|
|
|
@ -13,10 +13,10 @@ MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
dev-python/cryptography[python_abis:*(-)?]
|
dev-python/cryptography[>=1.6][python_abis:*(-)?]
|
||||||
dev-python/enum34[python_abis:*(-)?]
|
dev-python/enum34[python_abis:*(-)?]
|
||||||
dev-python/gmpy2[python_abis:*(-)?]
|
dev-python/gmpy2[python_abis:*(-)?]
|
||||||
dev-python/python-application[python_abis:*(-)?]
|
dev-python/python-application[>=2.0.0][python_abis:*(-)?]
|
||||||
dev-python/zopeinterface[python_abis:*(-)?]
|
dev-python/zopeinterface[python_abis:*(-)?]
|
||||||
net-libs/libotr
|
net-libs/libotr
|
||||||
"
|
"
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -21,7 +21,8 @@ DEPENDENCIES="
|
||||||
virtual/pkg-config
|
virtual/pkg-config
|
||||||
build+run:
|
build+run:
|
||||||
dev-db/sqlite:3
|
dev-db/sqlite:3
|
||||||
dev-python/python-application[>=2.0.0][python_abis:*(-)?]
|
dev-libs/icu:=
|
||||||
|
dev-python/python-application[>=2.5.0][python_abis:*(-)?]
|
||||||
media-libs/libvpx
|
media-libs/libvpx
|
||||||
media-libs/v4l-utils
|
media-libs/v4l-utils
|
||||||
sys-apps/util-linux
|
sys-apps/util-linux
|
||||||
|
@ -43,13 +44,11 @@ DEPENDENCIES="
|
||||||
dev-python/python-xcaplib[python_abis:*(-)?]
|
dev-python/python-xcaplib[python_abis:*(-)?]
|
||||||
dev-python/zopeinterface[python_abis:*(-)?]
|
dev-python/zopeinterface[python_abis:*(-)?]
|
||||||
media-libs/x264[-10bit]
|
media-libs/x264[-10bit]
|
||||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
net-twisted/Twisted[python_abis:*(-)?]
|
||||||
"
|
"
|
||||||
|
|
||||||
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() {
|
|
@ -7,7 +7,7 @@ SUMMARY="Pure-Python RSA implementation"
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
LICENCES="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
PLATFORMS="~amd64 ~armv7 ~x86"
|
PLATFORMS="~amd64 ~armv7 ~armv8 ~x86"
|
||||||
MYOPTIONS=""
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
# Copyright 2017 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
|
||||||
|
|
||||||
require github [ user="python" project="typed_ast" ]
|
require typed-ast
|
||||||
require pypi
|
|
||||||
require setup-py [ import=setuptools blacklist=2 ]
|
|
||||||
|
|
||||||
SUMMARY="A fork of Python 2 and 3 ast modules with type comment support"
|
|
||||||
DESCRIPTION="
|
|
||||||
typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard ast library. Unlike ast, the parsers in typed_ast include PEP 484 type comments and are independent of the version of Python under which they are run. The typed_ast parsers produce the standard Python AST (plus type comments), and are both fast and correct, as they are based on the CPython 2.7 and 3.6 parser
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
PLATFORMS="~amd64 ~x86"
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,7 @@
|
||||||
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
# Copyright 2017 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
|
||||||
|
|
||||||
require github [ user="python" project="typed_ast" ]
|
require typed-ast
|
||||||
require pypi
|
|
||||||
require setup-py [ import=setuptools blacklist=2 ]
|
|
||||||
|
|
||||||
SUMMARY="A fork of Python 2 and 3 ast modules with type comment support"
|
|
||||||
DESCRIPTION="
|
|
||||||
typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard ast library. Unlike ast, the parsers in typed_ast include PEP 484 type comments and are independent of the version of Python under which they are run. The typed_ast parsers produce the standard Python AST (plus type comments), and are both fast and correct, as they are based on the CPython 2.7 and 3.6 parser
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENCES="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
PLATFORMS="~amd64 ~x86"
|
PLATFORMS="~amd64 ~x86"
|
||||||
MYOPTIONS=""
|
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require typed-ast
|
||||||
|
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user="python" project="typed_ast" ]
|
||||||
|
require pypi
|
||||||
|
require setup-py [ import=setuptools blacklist=2 ]
|
||||||
|
|
||||||
|
SUMMARY="A fork of Python 2 and 3 ast modules with type comment support"
|
||||||
|
DESCRIPTION="
|
||||||
|
typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard ast library. Unlike ast, the parsers in typed_ast include PEP 484 type comments and are independent of the version of Python under which they are run. The typed_ast parsers produce the standard Python AST (plus type comments), and are both fast and correct, as they are based on the CPython 2.7 and 3.6 parser
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENCES="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user=mhagger tag="v${PV}" ]
|
||||||
|
require python [ has_bin=true multibuild=false blacklist=2 ]
|
||||||
|
require bash-completion
|
||||||
|
|
||||||
|
SUMMARY="Incremental merge for git"
|
||||||
|
|
||||||
|
LICENCES="GPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
run:
|
||||||
|
dev-scm/git
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# fix shebang
|
||||||
|
edo sed -i \
|
||||||
|
-e "s:/usr/bin/env python.*$:/usr/$(exhost --target)/bin/env ${PYTHON##*/}:" \
|
||||||
|
${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodoc README.rst
|
||||||
|
dobashcompletion ${PN}.bashcomplete
|
||||||
|
dobin ${PN}
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
require github [ user=clintbellanger project=flare-game tag=v${PV} pn=flare-game ]
|
require github [ user=clintbellanger project=flare-game tag=v${PV} pn=flare-game ]
|
||||||
require cmake desktop-utils gtk-icon-cache
|
require cmake [ api=2 ] desktop-utils gtk-icon-cache
|
||||||
|
|
||||||
SUMMARY="Free/Libre Action Roleplaying game"
|
SUMMARY="Free/Libre Action Roleplaying game"
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ DEPENDENCIES="
|
||||||
games-engines/flare[~${PV}]
|
games-engines/flare[~${PV}]
|
||||||
"
|
"
|
||||||
|
|
||||||
WORK=${WORKBASE}/${PN}-game-${PV}
|
CMAKE_SOURCE=${WORKBASE}/${PN}-game-${PV}
|
||||||
|
|
||||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||||
-DBINDIR="/usr/$(exhost --target)/bin"
|
-DBINDIR="/usr/$(exhost --target)/bin"
|
||||||
|
@ -31,7 +31,5 @@ exec flare --game=flare-game "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
||||||
|
|
||||||
dodoc README
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
SCM_CHECKOUT_TO=flare-game
|
SCM_CHECKOUT_TO=flare-game
|
||||||
require github [ user=clintbellanger project=flare-game pn=flare-game ]
|
require github [ user=clintbellanger project=flare-game pn=flare-game ]
|
||||||
require cmake desktop-utils gtk-icon-cache
|
require cmake [ api=2 ] desktop-utils gtk-icon-cache
|
||||||
|
|
||||||
SUMMARY="Free/Libre Action Roleplaying game"
|
SUMMARY="Free/Libre Action Roleplaying game"
|
||||||
|
|
||||||
|
@ -30,7 +30,5 @@ exec flare --game=flare-game "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
||||||
|
|
||||||
dodoc README
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
Upstream: yes, cherrry-picked from master
|
||||||
|
Reason: Fix build with boost[>=1.69.0] which removed the signals lib
|
||||||
|
|
||||||
|
From 72a634ef6262dc1401298adb28000d1c89442482 Mon Sep 17 00:00:00 2001
|
||||||
|
From: geoffthemedio <geoffthemedio@gmail.com>
|
||||||
|
Date: Fri, 26 Oct 2018 09:06:46 +0200
|
||||||
|
Subject: [PATCH] Remove all references to signals library from CMakeLists.txt
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 5 -----
|
||||||
|
GG/CMakeLists.txt | 2 +-
|
||||||
|
2 files changed, 1 insertion(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 927c8c165..8d3832049 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -205,7 +205,6 @@ find_package(Boost ${MINIMUM_BOOST_VERSION}
|
||||||
|
log_setup
|
||||||
|
regex
|
||||||
|
serialization
|
||||||
|
- signals
|
||||||
|
system
|
||||||
|
thread
|
||||||
|
REQUIRED)
|
||||||
|
@@ -357,7 +356,6 @@ target_link_libraries(freeorioncommon
|
||||||
|
${Boost_LOG_SETUP_LIBRARY}
|
||||||
|
${Boost_REGEX_LIBRARY}
|
||||||
|
${Boost_SERIALIZATION_LIBRARY}
|
||||||
|
- ${Boost_SIGNALS_LIBRARY}
|
||||||
|
${Boost_SYSTEM_LIBRARY}
|
||||||
|
${Boost_THREAD_LIBRARY}
|
||||||
|
${ZLIB_LIBRARIES}
|
||||||
|
@@ -668,8 +666,6 @@ if(APPLE)
|
||||||
|
${CMAKE_COMMAND} -E copy_if_different "${Boost_PYTHON_LIBRARY}" "$<TARGET_FILE_DIR:freeorion>/../SharedSupport"
|
||||||
|
COMMAND
|
||||||
|
${CMAKE_COMMAND} -E copy_if_different "${Boost_SERIALIZATION_LIBRARY}" "$<TARGET_FILE_DIR:freeorion>/../SharedSupport"
|
||||||
|
- COMMAND
|
||||||
|
- ${CMAKE_COMMAND} -E copy_if_different "${Boost_SIGNALS_LIBRARY}" "$<TARGET_FILE_DIR:freeorion>/../SharedSupport"
|
||||||
|
COMMAND
|
||||||
|
${CMAKE_COMMAND} -E copy_if_different "${Boost_SYSTEM_LIBRARY}" "$<TARGET_FILE_DIR:freeorion>/../SharedSupport"
|
||||||
|
COMMAND
|
||||||
|
@@ -769,7 +765,6 @@ if(WIN32)
|
||||||
|
boost_python-vc90-mt-1_44.dll
|
||||||
|
boost_regex-vc90-mt-1_44.dll
|
||||||
|
boost_serialization-vc90-mt-1_44.dll
|
||||||
|
- boost_signals-vc90-mt-1_44.dll
|
||||||
|
boost_system-vc90-mt-1_44.dll
|
||||||
|
boost_thread-vc90-mt-1_44.dll
|
||||||
|
glew32.dll
|
||||||
|
diff --git a/GG/CMakeLists.txt b/GG/CMakeLists.txt
|
||||||
|
index 1e5f29d93..238cc44d0 100644
|
||||||
|
--- a/GG/CMakeLists.txt
|
||||||
|
+++ b/GG/CMakeLists.txt
|
||||||
|
@@ -91,7 +91,7 @@ if(NOT USE_STATIC_LIBS)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(Boost_USE_STATIC_LIBS ${USE_STATIC_LIBS})
|
||||||
|
-find_package(Boost ${MINIMUM_BOOST_VERSION} COMPONENTS date_time filesystem regex signals system thread log REQUIRED)
|
||||||
|
+find_package(Boost ${MINIMUM_BOOST_VERSION} COMPONENTS date_time filesystem regex system thread log REQUIRED)
|
||||||
|
|
||||||
|
find_package(OpenGL REQUIRED)
|
||||||
|
find_package(GLEW REQUIRED)
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
|
@ -46,6 +46,10 @@ DEPENDENCIES="
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||||
|
"${FILES}"/${PN}-Remove-all-references-to-signals-library-from-CMakeL.patch
|
||||||
|
)
|
||||||
|
|
||||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||||
-DRELEASE_COMPILE_FLAGS=""
|
-DRELEASE_COMPILE_FLAGS=""
|
||||||
-DCMAKE_SKIP_RPATH=ON
|
-DCMAKE_SKIP_RPATH=ON
|
||||||
|
|
|
@ -8,7 +8,7 @@ PNMIXER_RELEASE=$(exparam release)
|
||||||
PNMIXER_PV=$(exparam pv)
|
PNMIXER_PV=$(exparam pv)
|
||||||
|
|
||||||
require github [ user='nicklan' release="${PNMIXER_RELEASE}" pv="${PNMIXER_PV}" suffix="tar.gz" ]
|
require github [ user='nicklan' release="${PNMIXER_RELEASE}" pv="${PNMIXER_PV}" suffix="tar.gz" ]
|
||||||
require cmake
|
require cmake [ api=2 ]
|
||||||
require gtk-icon-cache
|
require gtk-icon-cache
|
||||||
|
|
||||||
SUMMARY="Simple ALSA mixer application designed to run in system tray"
|
SUMMARY="Simple ALSA mixer application designed to run in system tray"
|
||||||
|
|
|
@ -17,8 +17,7 @@ MYOPTIONS=""
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build+run:
|
build+run:
|
||||||
app-crypt/qca:2[qt5]
|
app-crypt/qca:2[qt5(+)]
|
||||||
dev-libs/qjson
|
|
||||||
sys-apps/file
|
sys-apps/file
|
||||||
sys-auth/qoauth[>=2.0.0]
|
sys-auth/qoauth[>=2.0.0]
|
||||||
x11-libs/qtbase:5
|
x11-libs/qtbase:5
|
|
@ -5,10 +5,9 @@
|
||||||
# Copyright 1999-2015 Gentoo Foundation
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
require udev-rules
|
require udev-rules github [ user=gentoo tag=${PV} ]
|
||||||
|
|
||||||
HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
|
HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
|
||||||
DOWNLOADS="https://dev.gentoo.org/~robbat2/distfiles/${PNV}.tar.bz2"
|
|
||||||
|
|
||||||
SUMMARY="Gentoo Network Interface Management Scripts"
|
SUMMARY="Gentoo Network Interface Management Scripts"
|
||||||
LICENCES="BSD-2"
|
LICENCES="BSD-2"
|
||||||
|
@ -34,7 +33,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install
|
emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install
|
||||||
dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
|
dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
|
@ -12,7 +12,10 @@ Remmina is a remote desktop client written in GTK+, aiming to be useful for syst
|
||||||
HOMEPAGE+=" http://remmina.org/"
|
HOMEPAGE+=" http://remmina.org/"
|
||||||
|
|
||||||
LICENCES="GPL-2"
|
LICENCES="GPL-2"
|
||||||
MYOPTIONS="ssh"
|
MYOPTIONS="
|
||||||
|
ssh
|
||||||
|
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
|
||||||
|
"
|
||||||
|
|
||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
build:
|
build:
|
||||||
|
@ -36,6 +39,8 @@ DEPENDENCIES="
|
||||||
net-libs/libssh
|
net-libs/libssh
|
||||||
dev-libs/vte:2.91
|
dev-libs/vte:2.91
|
||||||
)
|
)
|
||||||
|
providers:libressl? ( dev-libs/libressl:= )
|
||||||
|
providers:openssl? ( dev-libs/openssl )
|
||||||
"
|
"
|
||||||
|
|
||||||
BUGS_TO="hasufell@posteo.de"
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
@ -60,3 +65,4 @@ CMAKE_SRC_CONFIGURE_OPTION_WITHS=(
|
||||||
"ssh LIBSSH"
|
"ssh LIBSSH"
|
||||||
"ssh VTE"
|
"ssh VTE"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ DEPENDENCIES="
|
||||||
dev-libs/libevent:=
|
dev-libs/libevent:=
|
||||||
net-libs/libsearpc
|
net-libs/libsearpc
|
||||||
net-misc/seafile[~${PV}]
|
net-misc/seafile[~${PV}]
|
||||||
|
sys-libs/zlib
|
||||||
x11-libs/qtbase:5
|
x11-libs/qtbase:5
|
||||||
providers:libressl? ( dev-libs/libressl:= )
|
providers:libressl? ( dev-libs/libressl:= )
|
||||||
providers:openssl? ( dev-libs/openssl )
|
providers:openssl? ( dev-libs/openssl )
|
|
@ -23,7 +23,7 @@ DEPENDENCIES="
|
||||||
dev-db/sqlite:3
|
dev-db/sqlite:3
|
||||||
dev-libs/glib:2
|
dev-libs/glib:2
|
||||||
dev-libs/jansson
|
dev-libs/jansson
|
||||||
dev-libs/libevent
|
dev-libs/libevent:=
|
||||||
net-libs/libsearpc[python_abis:*(-)?]
|
net-libs/libsearpc[python_abis:*(-)?]
|
||||||
net-misc/curl
|
net-misc/curl
|
||||||
sys-libs/zlib
|
sys-libs/zlib
|
|
@ -5,7 +5,7 @@ require freedesktop-desktop
|
||||||
|
|
||||||
SUMMARY="Next generation Brave browser"
|
SUMMARY="Next generation Brave browser"
|
||||||
HOMEPAGE="https://brave-browser.readthedocs.io"
|
HOMEPAGE="https://brave-browser.readthedocs.io"
|
||||||
DOWNLOADS="https://brave-browser-apt-dev.s3.brave.com/pool/main/b/${PN}/${PN}_0.50.14_amd64.deb"
|
DOWNLOADS="https://github.com/brave/brave-browser/releases/download/v${PV}/brave-browser_${PV}_amd64.deb"
|
||||||
|
|
||||||
LICENCES="MPL-2.0"
|
LICENCES="MPL-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -60,17 +60,17 @@ src_unpack() {
|
||||||
src_install() {
|
src_install() {
|
||||||
local f
|
local f
|
||||||
|
|
||||||
edo mv usr/share/doc/${PN} usr/share/doc/${PNV}
|
edo mv usr/share/doc/brave-browser usr/share/doc/${PNV}
|
||||||
insinto /usr/share
|
insinto /usr/share
|
||||||
doins -r usr/share/*
|
doins -r usr/share/*
|
||||||
|
|
||||||
insinto /opt
|
insinto /opt
|
||||||
doins -r opt/*
|
doins -r opt/*
|
||||||
for f in "${IMAGE}"/opt/brave.com/brave-dev/{${PN},brave,brave-sandbox} ; do
|
for f in "${IMAGE}"/opt/brave.com/brave/{brave-browser,brave,brave-sandbox} ; do
|
||||||
edo chmod +x "${f}"
|
edo chmod +x "${f}"
|
||||||
done
|
done
|
||||||
|
|
||||||
dodir /usr/$(exhost --target)/bin
|
dodir /usr/$(exhost --target)/bin
|
||||||
dosym ../../../opt/brave.com/brave-dev/${PN} /usr/$(exhost --target)/bin/${PN}
|
dosym ../../../opt/brave.com/brave/brave-browser /usr/$(exhost --target)/bin/${PN}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require cargo [ channel=stable ]
|
||||||
|
require github [ user=Peltoche tag="${PV}" ]
|
||||||
|
|
||||||
|
SUMMARY="The next gen ls command"
|
||||||
|
HOMEPAGE="https://crates.io/crates/lsd ${HOMEPAGE}"
|
||||||
|
|
||||||
|
LICENCES="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local test_socket="unix:${TEMP}/test_socket_type.*/socket.tmp"
|
||||||
|
esandbox allow_net --bind "${test_socket}"
|
||||||
|
cargo_src_test
|
||||||
|
esandbox disallow_net "${test_socket}"
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user=Peltoche tag="${PV}" ]
|
||||||
|
require cargo [ channel=stable ]
|
||||||
|
|
||||||
|
SUMMARY="The next gen ls command"
|
||||||
|
HOMEPAGE="https://crates.io/crates/lsd ${HOMEPAGE}"
|
||||||
|
|
||||||
|
LICENCES="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
|
@ -0,0 +1,127 @@
|
||||||
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
#
|
||||||
|
# Based in part upon 'openrc-0.20.4.ebuild' from Gentoo, which is:
|
||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require bash-completion zsh-completion
|
||||||
|
require github
|
||||||
|
|
||||||
|
SUMMARY="A dependency-based init system that works with the system-provided init program"
|
||||||
|
SLOT="0"
|
||||||
|
LICENCES="BSD-2"
|
||||||
|
|
||||||
|
MYOPTIONS="
|
||||||
|
( providers:
|
||||||
|
runit
|
||||||
|
sinit
|
||||||
|
sysvinit
|
||||||
|
) [[
|
||||||
|
*description = [ provider for the init daemon ]
|
||||||
|
number-selected = at-most-one
|
||||||
|
]]
|
||||||
|
ncurses
|
||||||
|
newnet [[ description = [
|
||||||
|
Enable the new network stack (experimental)
|
||||||
|
] ]]
|
||||||
|
pam
|
||||||
|
"
|
||||||
|
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build+run:
|
||||||
|
ncurses? ( sys-libs/ncurses )
|
||||||
|
pam? ( sys-libs/pam )
|
||||||
|
run:
|
||||||
|
app-shells/bash
|
||||||
|
providers:runit? ( sys-apps/runit )
|
||||||
|
providers:sinit? ( sys-apps/sinit )
|
||||||
|
providers:sysvinit? ( sys-apps/sysvinit )
|
||||||
|
recommendation:
|
||||||
|
net-misc/netifrc [[ description = [
|
||||||
|
Network Interface Management Scripts
|
||||||
|
] ]]
|
||||||
|
"
|
||||||
|
|
||||||
|
REMOTE_IDS="github:OpenRC/${PN}"
|
||||||
|
|
||||||
|
DEFAULT_SRC_COMPILE_PARAMS=(
|
||||||
|
LIBNAME=lib
|
||||||
|
LIBEXECDIR=/usr/$(exhost --target)/libexec/rc
|
||||||
|
OS=Linux
|
||||||
|
)
|
||||||
|
|
||||||
|
DEFAULT_SRC_INSTALL_PARAMS=(
|
||||||
|
PREFIX=/usr/$(exhost --target)
|
||||||
|
SBINDIR=/usr/$(exhost --target)/bin
|
||||||
|
SYSCONFDIR=/etc
|
||||||
|
UPREFIX=/usr
|
||||||
|
INCDIR=/usr/$(exhost --target)/include
|
||||||
|
INCMODE=0755
|
||||||
|
LIBDIR=/usr/$(exhost --target)/lib
|
||||||
|
SHLIBDIR=/usr/$(exhost --target)/lib
|
||||||
|
LIBMODE=0755
|
||||||
|
BASHCOMPDIR=${BASHCOMPLETIONDIR}
|
||||||
|
ZSHCOMPDIR=${ZSHCOMPLETIONDIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
exdirectory --allow /etc/sysctl.d
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export BRANDING="Exherbo Linux"
|
||||||
|
|
||||||
|
export DEBUG=
|
||||||
|
export MKTERMCAP=$(optionv ncurses)
|
||||||
|
|
||||||
|
export AR=$(exhost --tool-prefix)ar
|
||||||
|
export RANLIB=$(exhost --tool-prefix)ranlib
|
||||||
|
export CC=$(exhost --tool-prefix)cc
|
||||||
|
|
||||||
|
MAKE_ARGS="
|
||||||
|
${DEFAULT_SRC_COMPILE_PARAMS[@]}
|
||||||
|
MKAUDIT=no
|
||||||
|
MKBASHCOMP=$(option bash-completion yes no)
|
||||||
|
MKNET=$(option newnet yes no)
|
||||||
|
MKPAM=$(optionv pam)
|
||||||
|
MKSELINUX=no
|
||||||
|
MKSTATICLIBS=no
|
||||||
|
MKSYSVINIT=no
|
||||||
|
MKZSHCOMP=$(option zsh-completion yes no)
|
||||||
|
SH=/bin/bash
|
||||||
|
"
|
||||||
|
|
||||||
|
emake ${MAKE_ARGS}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
export READELF=$(exhost --tool-prefix)readelf
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake \
|
||||||
|
${DEFAULT_SRC_INSTALL_PARAMS[@]} \
|
||||||
|
${MAKE_ARGS} \
|
||||||
|
DESTDIR="${IMAGE}" install
|
||||||
|
|
||||||
|
keepdir /usr/$(exhost --target)/libexec/rc/init.d
|
||||||
|
keepdir /usr/$(exhost --target)/libexec/rc/tmp
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILES}"/openrc.logrotate openrc
|
||||||
|
|
||||||
|
dodoc ChangeLog *.md
|
||||||
|
if option newnet; then
|
||||||
|
dodoc README.newnet
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Since openrc 0.35 openrc has a cgroup init.d script which"
|
||||||
|
elog "you'll have to add to your startup if you need cgroups."
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
SUMMARY="Virtual: The Glasgow Haskell Compiler"
|
||||||
|
HOMEPAGE=""
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64"
|
||||||
|
MYOPTIONS="
|
||||||
|
( providers:
|
||||||
|
ghc-bin
|
||||||
|
GHC
|
||||||
|
) [[
|
||||||
|
*description = [ ghc provider ]
|
||||||
|
number-selected = at-most-one
|
||||||
|
]]
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
providers:ghc-bin? ( dev-lang/ghc-bin )
|
||||||
|
providers:GHC? ( dev-lang/GHC )
|
||||||
|
"
|
|
@ -22,13 +22,13 @@ DEPENDENCIES="
|
||||||
dev-python/PyQt5[>=5.0][webkit][python_abis:*(-)?]
|
dev-python/PyQt5[>=5.0][webkit][python_abis:*(-)?]
|
||||||
dev-python/google-api-python-client[python_abis:*(-)?]
|
dev-python/google-api-python-client[python_abis:*(-)?]
|
||||||
dev-python/lxml[python_abis:*(-)?]
|
dev-python/lxml[python_abis:*(-)?]
|
||||||
dev-python/python-application[>=2.0.0][python_abis:*(-)?]
|
dev-python/python-application[>=2.5.0][python_abis:*(-)?]
|
||||||
dev-python/python-cjson[python_abis:*(-)?]
|
dev-python/python-cjson[python_abis:*(-)?]
|
||||||
dev-python/python-dateutil[python_abis:*(-)?]
|
dev-python/python-dateutil[python_abis:*(-)?]
|
||||||
dev-python/python-eventlib[python_abis:*(-)?]
|
dev-python/python-eventlib[python_abis:*(-)?]
|
||||||
dev-python/python-sipsimple[>=3.0.0][python_abis:*(-)?]
|
dev-python/python-sipsimple[>=3.0.0][python_abis:*(-)?]
|
||||||
dev-python/zopeinterface[python_abis:*(-)?]
|
dev-python/zopeinterface[python_abis:*(-)?]
|
||||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
net-twisted/Twisted[python_abis:*(-)?]
|
||||||
"
|
"
|
||||||
|
|
||||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
require github [ user="cboxdoerfer" ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
|
||||||
|
|
||||||
|
SUMMARY="A fast file search utility for Unix-like systems based on GTK+3"
|
||||||
|
HOMEPAGE="http://www.fsearch.org/ ${HOMEPAGE}"
|
||||||
|
|
||||||
|
LICENCES="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
PLATFORMS="~amd64 ~x86"
|
||||||
|
MYOPTIONS=""
|
||||||
|
|
||||||
|
DEPENDENCIES="
|
||||||
|
build:
|
||||||
|
dev-util/intltool
|
||||||
|
sys-devel/libtool
|
||||||
|
virtual/pkg-config
|
||||||
|
build+run:
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/pcre
|
||||||
|
x11-libs/gdk-pixbuf:2.0
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
"
|
||||||
|
|
||||||
|
BUGS_TO="hasufell@posteo.de"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
edo glib-gettextize --copy --force
|
||||||
|
edo intltoolize --force --copy --automake
|
||||||
|
eautoreconf
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
require gtk-icon-cache freedesktop-desktop
|
require gtk-icon-cache freedesktop-desktop
|
||||||
require setup-py [ import=distutils blacklist="3" multibuild=false python_opts='[sqlite]' ]
|
require setup-py [ import=distutils blacklist="2" multibuild=false python_opts="[sqlite]" ]
|
||||||
|
|
||||||
SUMMARY="A desktop wiki"
|
SUMMARY="A desktop wiki"
|
||||||
HOMEPAGE="http://zim-wiki.org/"
|
HOMEPAGE="http://zim-wiki.org/"
|
||||||
|
@ -20,8 +20,10 @@ DEPENDENCIES="
|
||||||
build:
|
build:
|
||||||
x11-apps/xdg-utils
|
x11-apps/xdg-utils
|
||||||
build+run:
|
build+run:
|
||||||
gnome-bindings/pygtk:2[python_abis:*(-)?]
|
gnome-bindings/pygobject:3[python_abis:*(-)?]
|
||||||
gnome-bindings/pygobject:2[python_abis:*(-)?]
|
x11-libs/gtk+:3[>=3.18]
|
||||||
|
recommendation:
|
||||||
|
dev-python/pyxdg[python_abis:*(-)?]
|
||||||
suggestion:
|
suggestion:
|
||||||
app-text/dvipng
|
app-text/dvipng
|
||||||
app-text/texlive-core
|
app-text/texlive-core
|
||||||
|
@ -36,9 +38,9 @@ DEPENDENCIES="
|
||||||
|
|
||||||
WORK=${WORKBASE}/${PNV/_rc/-rc}
|
WORK=${WORKBASE}/${PNV/_rc/-rc}
|
||||||
|
|
||||||
SETUP_PY_SRC_INSTALL_PARAMS=(
|
pkg_setup() {
|
||||||
--skip-xdg-cmd
|
unset DISPLAY # tries to access X socket
|
||||||
)
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
freedesktop-desktop_pkg_postinst
|
freedesktop-desktop_pkg_postinst
|
|
@ -1,3 +1,3 @@
|
||||||
* dev-haskell/cabal-install-bin
|
* dev-haskell/cabal-install-bin
|
||||||
* dev-lang/ghc-bin
|
* virtual/GHC
|
||||||
? dev-haskell/stack-bin
|
? dev-haskell/stack-bin
|
||||||
|
|
Loading…
Reference in New Issue