forked from hasufell/hasufell-repository
Compare commits
180 Commits
Author | SHA1 | Date | |
---|---|---|---|
030cded86b | |||
a306d51436 | |||
2d84fe8011 | |||
40c8a8202b | |||
50afe48396 | |||
9d3cb8246b | |||
0a9e434c93 | |||
182a3f02c6 | |||
a7ff9bb7a0 | |||
|
e5cbf72188 | ||
c6d7cec0ea | |||
0a2be20cf2 | |||
0434c2da41 | |||
c92503e773 | |||
|
2242af2d92 | ||
|
f92e19e048 | ||
f05ef97410 | |||
e8c3869265 | |||
3f8de36dcd | |||
322a49adb5 | |||
3fc116d181 | |||
108e3b8a1c | |||
b1186738b0 | |||
fb3aed63f7 | |||
aa95a77efe | |||
01be3c84ea | |||
a7e517cd13 | |||
a5d09fa690 | |||
32e298f7cb | |||
01f412b778 | |||
b2e54b1ee2 | |||
b7c1fc9985 | |||
a59fca3cb8 | |||
17f6253ca1 | |||
242ac1895b | |||
7d526fa805 | |||
cd4df8af01 | |||
2ba0cf6c75 | |||
b1d5ce4889 | |||
281ffd93c8 | |||
479e65c679 | |||
10cdc64b8d | |||
311fcccbb6 | |||
2bb4626ff5 | |||
c0a73b592e | |||
4321244cb9 | |||
757a282b04 | |||
c7e36f08c5 | |||
5a85853750 | |||
c50e57ea44 | |||
ac91960a21 | |||
fefc82e8b6 | |||
49661d4881 | |||
64db104f2b | |||
3367b48f93 | |||
d38a0069c4 | |||
a49dfb90fc | |||
6ab7c13396 | |||
d13355937f | |||
0f26b1a4f8 | |||
|
23a73f4ab8 | ||
47dfd9d03b | |||
c5233d46b1 | |||
ca9904a7c9 | |||
36b4e348cc | |||
62a4c782ab | |||
3716ee38e4 | |||
117aad5206 | |||
fab380486a | |||
a60998346f | |||
712c6622d6 | |||
5987bdd5a6 | |||
ab19b51c47 | |||
83ee221670 | |||
26ccd7f400 | |||
28dfe88c86 | |||
a8b12895d3 | |||
3874fdea53 | |||
5d05c0ce15 | |||
7155255e4b | |||
330af9fe56 | |||
2b40b9260b | |||
14b5db8dab | |||
4fc6ed1325 | |||
0d526c1d80 | |||
17395d0216 | |||
54067cb343 | |||
8ed852e56d | |||
a79ebcd9dc | |||
d4c7c8d9b9 | |||
5e699d1726 | |||
b41ebb0721 | |||
4e1a8a1068 | |||
8a523372f8 | |||
e3f6a57f40 | |||
b2dad547cc | |||
27b0739571 | |||
9c33cb1f66 | |||
b49b02a3e6 | |||
e4a06a0485 | |||
c8dcc6d55c | |||
95e0219d20 | |||
25a1476a63 | |||
8b94e41e86 | |||
ec357b2a55 | |||
3cd1d614e6 | |||
ff1bba2534 | |||
4a78042076 | |||
47dd44960b | |||
bd562c50ee | |||
dbdd912967 | |||
cbfe44c5be | |||
|
202a8fd01b | ||
|
0e8300cc25 | ||
|
b88462c4c0 | ||
25c4021803 | |||
d1d63cb4ed | |||
34c4e07240 | |||
|
44e2869a1d | ||
690e124c2d | |||
bc28586ce1 | |||
909af2e2d8 | |||
7d30376303 | |||
ff107e0cb4 | |||
06e051c936 | |||
bf95a7808c | |||
439d7cac7a | |||
ef0cc90bc5 | |||
c1628f8d2c | |||
68441dab0a | |||
f510f794cf | |||
78fad033e5 | |||
26761cd859 | |||
4cc2eb403f | |||
1745296905 | |||
7e9f4bf7c5 | |||
|
d0bdc1b926 | ||
|
69856c6391 | ||
6dd4e0f8ea | |||
a749d5efb3 | |||
81afc50f2b | |||
a4ea000d0c | |||
b586e42edf | |||
006ff009ed | |||
7cdc48baa2 | |||
e67b8f8e09 | |||
59d48f5815 | |||
ab54bf85de | |||
b14860cebf | |||
13d8406bd3 | |||
41d42bb715 | |||
4152cb1e6b | |||
1322e7f9e3 | |||
0c9cc0b012 | |||
c83f773c70 | |||
2cb534ada2 | |||
89270c2e37 | |||
c920cd46d8 | |||
46664464fd | |||
ac4cd3ffac | |||
4b0958bf38 | |||
157ce5f5a4 | |||
e0df2ad168 | |||
61bc976426 | |||
1ffcd771bc | |||
6370389a0b | |||
3e69a618a9 | |||
92a0bcce82 | |||
5578c3c81c | |||
a8aeaf6e85 | |||
b8752b6986 | |||
fbb5d28eb4 | |||
476aa72a93 | |||
01d4e4f6b1 | |||
a538f37eb8 | |||
09c6107d61 | |||
8cfc6c559a | |||
8e4512bfab | |||
bfdcf8cb1d | |||
f22c6853e2 |
81
exlibs/gog.exlib
Normal file
81
exlibs/gog.exlib
Normal file
@ -0,0 +1,81 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Purpose: an exlib dealing with installation of GOG games
|
||||
# Maintainer: Julian Ospald <hasufell@posteo.de>
|
||||
# Exports: pkg_nofetch, pkg_setup, src_unpack
|
||||
# Side-effects: - adds build dependencies
|
||||
# - sets $WORK, $DOWNLOADS, $LICENSES, $RESTRICT and $HOMEPAGE
|
||||
#
|
||||
# Usage
|
||||
# exparams: - installer: the shell script installer (required)
|
||||
# - unzip: whether to unzip and add unzip dependency (default: true)
|
||||
# - install_dir: installation dir (default: /opt/${PN})
|
||||
# variables: - GOG_SH: set to exparam installer
|
||||
# - GOG_INSTALL_DIR: set to exparam install_dir, use this in src_install
|
||||
|
||||
|
||||
myexparam installer=
|
||||
myexparam -b unzip=true
|
||||
myexparam install_dir=/opt/${PN}
|
||||
|
||||
exparam -v GOG_SH installer
|
||||
exparam -v GOG_INSTALL_DIR install_dir
|
||||
|
||||
if [[ -z $(exparam installer) ]]; then
|
||||
die "installer needs to be set!"
|
||||
fi
|
||||
|
||||
if [[ "$GOG_INSTALL_DIR" != /* ]]; then
|
||||
die "${GOG_INSTALL_DIR} must be absolute!"
|
||||
fi
|
||||
|
||||
export_exlib_phases pkg_nofetch pkg_setup src_unpack
|
||||
|
||||
|
||||
HOMEPAGE="https://www.gog.com"
|
||||
DOWNLOADS="manual: ${GOG_SH}"
|
||||
|
||||
LICENCES="all-rights-reserved GOG-EULA"
|
||||
RESTRICT="fetch"
|
||||
|
||||
if exparam -b unzip ; then
|
||||
DEPENDENCIES+="
|
||||
build:
|
||||
virtual/unzip
|
||||
"
|
||||
fi
|
||||
|
||||
WORK="${WORKBASE}/data/noarch"
|
||||
|
||||
# Exported 'pkg_nofetch'.
|
||||
#
|
||||
# Arguments: none
|
||||
# Side-effects: prints einfo
|
||||
gog_pkg_nofetch() {
|
||||
einfo
|
||||
einfo "Please buy & download \"${GOG_SH}\""
|
||||
einfo "from:"
|
||||
einfo " ${HOMEPAGE}"
|
||||
einfo "and move/link it to \"${FETCHEDDIR}\""
|
||||
einfo
|
||||
}
|
||||
|
||||
# Exported 'pkg_setup'.
|
||||
#
|
||||
# Arguments: none
|
||||
# Side-effects: makes sure /opt is allowed to be installed into
|
||||
gog_pkg_setup() {
|
||||
exdirectory --allow "$(dirname "${GOG_INSTALL_DIR}")"
|
||||
}
|
||||
|
||||
# Exported 'src_unpack'.
|
||||
#
|
||||
# Arguments: none
|
||||
# Side-effects: unpacks the data
|
||||
gog_src_unpack() {
|
||||
if exparam -b unzip ; then
|
||||
unzip -qo "${FETCHEDDIR}/${GOG_SH}"
|
||||
[[ $? -le 1 ]] || die "unpacking ${GOG_SH} failed!"
|
||||
fi
|
||||
}
|
@ -5,6 +5,7 @@ app-crypt
|
||||
app-diagram
|
||||
app-editors
|
||||
app-ergonomics
|
||||
app-misc
|
||||
app-office
|
||||
dev-cpp
|
||||
dev-db
|
||||
@ -14,10 +15,12 @@ dev-haskell
|
||||
dev-java
|
||||
dev-lang
|
||||
dev-libs
|
||||
dev-lua
|
||||
dev-ocaml
|
||||
dev-perl
|
||||
dev-python
|
||||
dev-ruby
|
||||
dev-scm
|
||||
dev-tcl
|
||||
dev-util
|
||||
games-action
|
||||
@ -49,9 +52,11 @@ sci-mathematics
|
||||
sys-apps
|
||||
sys-boot
|
||||
sys-process
|
||||
virtual
|
||||
voip
|
||||
www-apps
|
||||
www-servers
|
||||
x11-apps
|
||||
x11-misc
|
||||
x11-themes
|
||||
xfce-extra
|
||||
|
@ -11,6 +11,7 @@
|
||||
games-rpg/flare[~scm]
|
||||
games-rpg/valyriatear[~scm]
|
||||
games-strategy/freesynd[~scm]
|
||||
games-strategy/s25rttr[~scm]
|
||||
media-gfx/pinta[~scm]
|
||||
media-sound/pnmixer-rs[~scm]
|
||||
media-sound/pnmixer[~scm]
|
||||
@ -18,12 +19,16 @@
|
||||
net-im/gajim-omemo[~scm]
|
||||
net-im/lurch[~scm]
|
||||
net-im/pidgin-opensteamworks[~scm]
|
||||
net-im/purple-xmpp-http-upload[~scm]
|
||||
net-misc/remmina[~scm]
|
||||
net-misc/trickle[~scm]
|
||||
sys-apps/fd[~scm]
|
||||
sys-apps/lenovo-throttling-fix[~scm]
|
||||
sys-apps/lsd[~scm]
|
||||
x11-apps/terminator[~scm]
|
||||
x11-misc/cbatticon[~scm]
|
||||
x11-misc/fsearch[~scm]
|
||||
x11-misc/polybar[~scm]
|
||||
x11-wm/i3[~scm]
|
||||
) [[
|
||||
*author = [ Julian Ospald <hasufell@posteo.de> ]
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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
|
||||
|
||||
SUMMARY="A system for controlling process state under UNIX"
|
||||
@ -17,7 +17,8 @@ DEPENDENCIES="
|
||||
run:
|
||||
dev-python/meld3[python_abis:*(-)?]
|
||||
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
|
@ -0,0 +1,32 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user='mattn' tag="v${PV}" ]
|
||||
|
||||
SUMMARY="General purpose Language Server"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
dev-lang/go
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${WORK}"/.gopath
|
||||
export GOBIN="${WORK}"/.bin
|
||||
esandbox disable_net
|
||||
edo go get ./...
|
||||
edo go build
|
||||
esandbox enable_net
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin efm-langserver-${PV} efm-langserver
|
||||
emagicdocs
|
||||
}
|
55
packages/app-editors/focuswriter/focuswriter-1.7.3.exheres-0
Normal file
55
packages/app-editors/focuswriter/focuswriter-1.7.3.exheres-0
Normal file
@ -0,0 +1,55 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require qmake [ slot=5 ]
|
||||
require github [ user="gottcode" ]
|
||||
require gtk-icon-cache freedesktop-desktop
|
||||
|
||||
SUMMARY="Fullscreen and distraction-free word processor"
|
||||
DESCRIPTION="
|
||||
FocusWriter is a simple, distraction-free writing environment. It utilizes a hide-away interface that you access by moving your mouse to the edges of the screen, allowing the program to have a familiar look and feel to it while still getting out of the way so that you can immerse yourself in your work. It’s available for Linux, Windows, and Mac OS X, and has been translated into many different languages.
|
||||
"
|
||||
HOMEPAGE="https://gottcode.org/${PN}/ ${HOMEPAGE}"
|
||||
DOWNLOADS="https://gottcode.org/${PN}/${PNV}-src.tar.bz2"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
app-spell/hunspell:=
|
||||
sys-libs/zlib
|
||||
x11-libs/qtbase:5
|
||||
x11-libs/qtmultimedia:5
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
UPSTREAM_CHANGELOG="https://github.com/gottcode/${PN}/blob/master/ChangeLog"
|
||||
|
||||
DEFAULT_SRC_INSTALL_PARAMS=(
|
||||
INSTALL_ROOT="${IMAGE}"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
EQMAKE_PARAMS=(
|
||||
PREFIX=/usr
|
||||
BINDIR=/usr/$(exhost --target)/bin
|
||||
)
|
||||
qmake_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gtk-icon-cache_pkg_postinst
|
||||
freedesktop-desktop_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gtk-icon-cache_pkg_postrm
|
||||
freedesktop-desktop_pkg_postrm
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require neovim-gtk
|
||||
require neovim-gtk gtk-icon-cache
|
||||
|
||||
DOWNLOADS=""
|
||||
|
||||
@ -30,9 +30,12 @@ src_install() {
|
||||
insinto /usr/share/applications
|
||||
doins desktop/*.desktop
|
||||
|
||||
insinto /usr/share/icons/hicolor/128x128/apps
|
||||
newins desktop/org.daa.NeovimGtk_128.png org.daa.NeovimGtk.png
|
||||
insinto /usr/share/icons/hicolor/48x48/apps
|
||||
doins desktop/org.daa.NeovimGtk.png
|
||||
|
||||
newins desktop/org.daa.NeovimGtk_48.png org.daa.NeovimGtk.png
|
||||
insinto /usr/share/icons/hicolor/scalable/apps
|
||||
doins desktop/org.daa.NeovimGtk.svg
|
||||
newins desktop/org.daa.NeovimGtk.svg org.daa.NeovimGtk.png
|
||||
insinto /usr/share/icons/hicolor/symbolic/apps
|
||||
newins desktop/org.daa.NeovimGtk-symbolic.svg org.daa.NeovimGtk.png
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
MYOPTIONS="
|
||||
gconf [[ description = [ compile with Gnome gconf2 support ] ]]
|
||||
gnome [[ description = [ Add support for gnome panel ] ]]
|
||||
pulseaudio
|
||||
xfce4-panel [[ description = [ Add support for XFCE panel ] ]]
|
||||
@ -35,21 +36,26 @@ DEPENDENCIES="
|
||||
virtual/pkg-config
|
||||
x11-proto/xorgproto
|
||||
build+run:
|
||||
dev-cpp/cairomm:1.0
|
||||
dev-cpp/libsigc++:2
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
gnome-bindings/atkmm:1.6
|
||||
gnome-bindings/glibmm:2.4
|
||||
gnome-bindings/gtkmm:3
|
||||
gnome-bindings/pangomm:1.4
|
||||
gnome-desktop/gobject-introspection:=
|
||||
media-libs/gstreamer:1.0[gobject-introspection]
|
||||
media-plugins/gst-plugins-base:1.0[gobject-introspection]
|
||||
media-plugins/gst-plugins-good:1.0
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2.0
|
||||
x11-libs/gtk+:3[gobject-introspection]
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
x11-libs/pango:0
|
||||
gconf? ( gnome-platform/GConf:2 )
|
||||
gnome? ( gnome-base/gnome-shell )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
xfce4-panel? (
|
||||
@ -65,7 +71,6 @@ DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||
--disable-distribution
|
||||
--enable-exercises
|
||||
--disable-experimental
|
||||
--disable-gnome2
|
||||
--disable-static
|
||||
--disable-xml
|
||||
--disable-indicator
|
||||
@ -77,6 +82,7 @@ DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||
)
|
||||
|
||||
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
||||
'gconf gconf'
|
||||
'gnome gnome3'
|
||||
'pulseaudio pulse'
|
||||
'xfce4-panel xfce'
|
23
packages/app-misc/hunter/hunter-1.3.5.exheres-0
Normal file
23
packages/app-misc/hunter/hunter-1.3.5.exheres-0
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user=rabite0 tag="v${PV}" ]
|
||||
require cargo [ channel=nightly ]
|
||||
|
||||
SUMMARY="Ranger-like file browser written in rust"
|
||||
|
||||
LICENCES="WTFPL-2"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-libs/glib:2
|
||||
media-libs/gstreamer
|
||||
media-libs/libsixel
|
||||
media-plugins/gst-plugins-base
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
36
packages/app-misc/nnn/nnn-2.5.exheres-0
Normal file
36
packages/app-misc/nnn/nnn-2.5.exheres-0
Normal file
@ -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/*
|
||||
}
|
20
packages/app-misc/ripgrep-all/ripgrep-all-0.9.3.exheres-0
Normal file
20
packages/app-misc/ripgrep-all/ripgrep-all-0.9.3.exheres-0
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user=phiresky ] cargo
|
||||
|
||||
SUMMARY="rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc."
|
||||
|
||||
LICENCES="AGPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
dev-rust/ripgrep
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}/ripgrep_all-${PV}
|
||||
|
23
packages/app-misc/tldr-hs/tldr-hs-0.6.2.exheres-0
Normal file
23
packages/app-misc/tldr-hs/tldr-hs-0.6.2.exheres-0
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SUMMARY="Haskell tldr client with support for viewing tldr pages"
|
||||
HOMEPAGE="https://github.com/psibi/tldr-hs"
|
||||
DOWNLOADS="https://github.com/psibi/tldr-hs/releases/download/v${PV}/tldr-linux-v${PV}.tar.gz"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}
|
||||
|
||||
src_install() {
|
||||
newbin tldr tldr-hs
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ DEPENDENCIES="
|
||||
build:
|
||||
dev-libs/boost
|
||||
build+run:
|
||||
virtual/mysql
|
||||
dev-db/mysql
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
||||
"
|
@ -26,6 +26,7 @@ DEPENDENCIES="
|
||||
dev-cpp/ctemplate
|
||||
dev-cpp/libsigc++:2
|
||||
dev-db/libiodbc
|
||||
dev-db/mysql
|
||||
dev-db/mysql-connector-c++[>=${PV}]
|
||||
dev-db/vsqlite++
|
||||
dev-java/antlr:4
|
||||
@ -47,7 +48,6 @@ DEPENDENCIES="
|
||||
gnome-platform/libglade:2
|
||||
net-libs/libssh
|
||||
sci-libs/gdal
|
||||
virtual/mysql
|
||||
x11-dri/mesa
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2.0
|
15
packages/dev-db/mysql/files/logrotate.mysql
Normal file
15
packages/dev-db/mysql/files/logrotate.mysql
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/logrotate.mysql,v 1.1 2007/01/12 16:54:20 chtekk Exp $
|
||||
|
||||
/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err {
|
||||
monthly
|
||||
create 660 mysql mysql
|
||||
notifempty
|
||||
size 5M
|
||||
sharedscripts
|
||||
missingok
|
||||
postrotate
|
||||
/usr/bin/kill -HUP `cat /run/mysqld/mysqld.pid`
|
||||
endscript
|
||||
}
|
28
packages/dev-db/mysql/files/mysql-5.7-my.cnf
Normal file
28
packages/dev-db/mysql/files/mysql-5.7-my.cnf
Normal file
@ -0,0 +1,28 @@
|
||||
# For advice on how to change settings please see
|
||||
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
||||
|
||||
[mysqld]
|
||||
|
||||
# Remove leading # and set to the amount of RAM for the most important data
|
||||
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
||||
# innodb_buffer_pool_size = 128M
|
||||
|
||||
# Remove leading # to turn on a very important data integrity option: logging
|
||||
# changes to the binary log between backups.
|
||||
# log_bin
|
||||
|
||||
# These are commonly set, remove the # and set as required.
|
||||
# basedir = .....
|
||||
# datadir = .....
|
||||
# port = .....
|
||||
# server_id = .....
|
||||
# socket = .....
|
||||
|
||||
# Remove leading # to set options mainly useful for reporting servers.
|
||||
# The server defaults are faster for transactions and fast SELECTs.
|
||||
# Adjust sizes as needed, experiment to find the optimal values.
|
||||
# join_buffer_size = 128M
|
||||
# sort_buffer_size = 2M
|
||||
# read_rnd_buffer_size = 2M
|
||||
|
||||
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
@ -0,0 +1,79 @@
|
||||
--- a/cmake/ssl.cmake
|
||||
+++ b/cmake/ssl.cmake
|
||||
@@ -186,7 +186,8 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
OPENSSL_FIX_VERSION "${OPENSSL_VERSION_NUMBER}"
|
||||
)
|
||||
ENDIF()
|
||||
- IF("${OPENSSL_MAJOR_VERSION}.${OPENSSL_MINOR_VERSION}.${OPENSSL_FIX_VERSION}" VERSION_GREATER "1.1.0")
|
||||
+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION)
|
||||
+ IF(HAVE_TLS1_3_VERSION)
|
||||
ADD_DEFINITIONS(-DHAVE_TLSv13)
|
||||
SET(HAVE_TLSv13 1)
|
||||
IF(SOLARIS)
|
||||
@@ -196,7 +197,7 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
IF(OPENSSL_INCLUDE_DIR AND
|
||||
OPENSSL_LIBRARY AND
|
||||
CRYPTO_LIBRARY AND
|
||||
- OPENSSL_MAJOR_VERSION STREQUAL "1"
|
||||
+ OPENSSL_MAJOR_VERSION VERSION_GREATER_EQUAL "1"
|
||||
)
|
||||
SET(OPENSSL_FOUND TRUE)
|
||||
ELSE()
|
||||
--- a/sql/auth/sha2_password_common.cc
|
||||
+++ b/sql/auth/sha2_password_common.cc
|
||||
@@ -116,7 +116,8 @@ bool SHA256_digest::retrieve_digest(unsigned char *digest,
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
m_ok= EVP_DigestFinal_ex(md_context, m_digest, NULL);
|
||||
-#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x02090000fL)
|
||||
EVP_MD_CTX_cleanup(md_context);
|
||||
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
EVP_MD_CTX_reset(md_context);
|
||||
--- a/sql/mysqld.cc
|
||||
+++ b/sql/mysqld.cc
|
||||
@@ -3419,7 +3419,7 @@ int warn_self_signed_ca()
|
||||
static int init_ssl()
|
||||
{
|
||||
#ifdef HAVE_OPENSSL
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
CRYPTO_malloc_init();
|
||||
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
OPENSSL_malloc_init();
|
||||
--- a/vio/viosslfactories.c
|
||||
+++ b/vio/viosslfactories.c
|
||||
@@ -123,21 +123,19 @@ static DH *get_dh2048(void)
|
||||
DH *dh;
|
||||
if ((dh=DH_new()))
|
||||
{
|
||||
- BIGNUM *p= BN_bin2bn(dh2048_p, sizeof(dh2048_p), NULL);
|
||||
- BIGNUM *g= BN_bin2bn(dh2048_g, sizeof(dh2048_g), NULL);
|
||||
- if (!p || !g
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
- || !DH_set0_pqg(dh, p, NULL, g)
|
||||
-#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */
|
||||
- ) {
|
||||
- /* DH_free() will free 'p' and 'g' at once. */
|
||||
+ BIGNUM *p = BN_bin2bn(dh2048_p,sizeof(dh2048_p), NULL);
|
||||
+ BIGNUM *g = BN_bin2bn(dh2048_g,sizeof(dh2048_g), NULL);
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+ dh->p=p;
|
||||
+ dh->g=g;
|
||||
+ if (! dh->p || ! dh->g)
|
||||
+#else
|
||||
+ if (!DH_set0_pqg(dh, p, NULL, g))
|
||||
+#endif
|
||||
+ {
|
||||
DH_free(dh);
|
||||
- return NULL;
|
||||
+ dh = NULL;
|
||||
}
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
- dh->p= p;
|
||||
- dh->g= g;
|
||||
-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
}
|
||||
return(dh);
|
||||
}
|
296
packages/dev-db/mysql/mysql-5.7.29.exheres-0
Normal file
296
packages/dev-db/mysql/mysql-5.7.29.exheres-0
Normal file
@ -0,0 +1,296 @@
|
||||
# Copyright 2008, 2009, 2010 Ingmar Vanhassel <ingmar@exherbo.org>
|
||||
# Copyright 2011-2019 Timo Gurr <tgurr@exherbo.org>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require cmake systemd-service
|
||||
|
||||
MYSQL_MAJOR_VERSION=$(ever range 1-2)
|
||||
|
||||
# In order to provide a stable code base, MySQL depends on a specific version of Boost.
|
||||
# Currently only Boost.Geometry headers are used and boost is just required at build time.
|
||||
BOOST_PV=1.59.0
|
||||
|
||||
# Miraculously works for MySQL >= 5.1 till at least 5.6
|
||||
SPHINX_PV="2.2.9"
|
||||
|
||||
SUMMARY="A relational database management system (RDBMS)"
|
||||
HOMEPAGE="https://www.mysql.com/"
|
||||
DOWNLOADS="
|
||||
mirror://mysql/Downloads/MySQL-$(ever range 1-2)/${PNV}.tar.gz
|
||||
mirror://sourceforge/boost/boost_${BOOST_PV//./_}.tar.bz2
|
||||
https://downloads.mysql.com/archives/${PN}-$(ever range 1-2)/${PNV}.tar.gz
|
||||
sphinx? ( http://sphinxsearch.com/files/sphinx-${SPHINX_PV}-release.tar.gz )
|
||||
"
|
||||
|
||||
REMOTE_IDS="freecode:${PN}"
|
||||
UPSTREAM_CHANGELOG="
|
||||
https://dev.mysql.com/doc/relnotes/mysql/${MYSQL_MAJOR_VERSION}/en/news-$(ever replace_all '-').html [[ lang = [ en ] ]]
|
||||
"
|
||||
UPSTREAM_DOCUMENTATION="
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/index.html [[ lang = [ en ] ]]
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/postinstallation.html [[ lang = [ en ] note = [ Postinstallation documentation ] ]]
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/upgrading-downgrading.html [[ lang = [ en ] note = [ Upgrading or downgrading documentation ] ]]
|
||||
"
|
||||
UPSTREAM_RELEASE_NOTES="
|
||||
https://dev.mysql.com/doc/relnotes/mysql/${MYSQL_MAJOR_VERSION}/en/ [[ lang = [ en ] ]]
|
||||
"
|
||||
|
||||
LICENCES="GPL-2" # with-exceptions
|
||||
SLOT="0"
|
||||
MYOPTIONS="
|
||||
debug
|
||||
embedded-server [[ description = [ The embedded MySQL server library (DEPRECATED and slated for removal) ] ]]
|
||||
memcached [[ description = [ Enable using memcached for InnoDb tables (don't know it? Don't enable it.) ] ]]
|
||||
sphinx [[ description = [ Add the Sphinx Search Engine with fulltext search support (external engine) ] ]]
|
||||
systemd
|
||||
tcpd
|
||||
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
systemd? ( sys-apps/systemd )
|
||||
build+run:
|
||||
group/${PN}
|
||||
user/${PN}
|
||||
app-admin/eclectic[>=2.0.18] [[ note = [ Split ld-*.path, @TARGET@ substitution ] ]]
|
||||
app-arch/lz4
|
||||
dev-libs/libaio
|
||||
dev-libs/libedit
|
||||
dev-libs/protobuf:=[>=2.6.1]
|
||||
sys-libs/zlib[>=1.2.11]
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
!dev-db/mariadb [[
|
||||
description = [ MariaDB is a drop-in replacement for MySQL with same binary names ]
|
||||
resolution = manual
|
||||
]]
|
||||
!dev-db/Percona-Server [[
|
||||
description = [ Percona-Server is a drop-in replacement for MySQL with same binary names ]
|
||||
resolution = manual
|
||||
]]
|
||||
recommendation:
|
||||
memcached? ( net/memcached [[ description = [ The option provides the bundled memcached but you might want to use a stand-alone memcached as well ] ]] )
|
||||
suggestion:
|
||||
app-admin/logrotate [[ description = [ Use logrotate for rotating logs ] ]]
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/mysql-5.7.29-fix-libressl-support.patch
|
||||
)
|
||||
|
||||
# event_comment
|
||||
# >= 5.6 needs libevent[>=1.4.12&<2.0] but
|
||||
# a) we only have 2.0.22 at the time of writing
|
||||
# b) lots of other stuff needs >=2.0
|
||||
#
|
||||
# Options:
|
||||
#
|
||||
# 1. Add libevent 1.4.x, imlement the dep as [>=1.4.12&<2.0] and watch the fun
|
||||
# 2. Us the bundled libevent for MySQL to ensure it's always the right version.
|
||||
# 3. Add libevent 1.4.x as SLOT=1.4, slot 2.0.x as SLOT=2.0, dep on the 1.4 slot here.
|
||||
#
|
||||
# I prefer 3., of course, but I went with 2. for now to be on the safe side.
|
||||
#
|
||||
# dev-libs/libevent[>=1.4.12]
|
||||
|
||||
pkg_pretend() {
|
||||
# Sanity check when upgrading to a different x.y version of mysql
|
||||
if [[ -z ${MYSQL_MAJOR_UPGRADE} ]] && has_version ${CATEGORY}/${PN} && \
|
||||
! has_version ${CATEGORY}/${PN}[=${MYSQL_MAJOR_VERSION}*] ; then
|
||||
ewarn "To install a different major version of MySQL, you have to dump/reload your database."
|
||||
ewarn "When you've done this, please set 'MYSQL_MAJOR_UPGRADE=YesPlease', to continue the upgrade."
|
||||
ewarn "For more information visit:"
|
||||
ewarn "http://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/upgrading.html"
|
||||
ewarn "http://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/downgrading.html"
|
||||
die "Dump your databases before doing a major version upgrade of MySQL."
|
||||
fi
|
||||
|
||||
if [[ -f "${ROOT}"/etc/tmpfiles.d/${PN}.conf ]] ; then
|
||||
ewarn "The configuration file /etc/tmpfiles.d/${PN}.conf has been moved to"
|
||||
ewarn "/usr/$(exhost --target)/lib/tmpfiles.d/${PN}.conf and can be safely removed after upgrade"
|
||||
ewarn "if you did not make any changes to it."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# https://bugs.mysql.com/bug.php?id=72353 (only relevant when using system libevent)
|
||||
edo sed \
|
||||
-e "s:\(LIBEVENT_LIBRAR\)IES:\1Y:" \
|
||||
-i "${WORKBASE}"/${PNV}/cmake/libevent.cmake
|
||||
|
||||
# don't link statically against crypto libs
|
||||
edo sed \
|
||||
-e '/REVERSE CMAKE_FIND_LIBRARY_SUFFIXES/d' \
|
||||
-i "${CMAKE_SOURCE}"/cmake/ssl.cmake
|
||||
|
||||
# disable the automagic LDAP SASL Authentication Plugin (client-side)
|
||||
# if added it requires cyrus-sasl -DWITH_SASL:STRING=system and openldap and -DWITH_AUTHENTICATION_LDAP:BOOL=TRUE
|
||||
edo sed \
|
||||
-e '/ADD_SUBDIRECTORY(authentication_ldap)/d' \
|
||||
-i "${CMAKE_SOURCE}"/libmysql/CMakeLists.txt
|
||||
edo rm -rf "${WORKBASE}"/${PNV}/libmysql/authentication_ldap
|
||||
|
||||
option sphinx && edo ln -s "${WORKBASE}"/sphinx-${SPHINX_PV}-release/mysqlse "${WORKBASE}"/${PNV}/storage/sphinx
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local cmakeargs=(
|
||||
-DBOOST_INCLUDE_DIR:PATH="${WORKBASE}"/boost_${BOOST_PV//./_}
|
||||
-DBUILD_CONFIG:STRING=mysql_release
|
||||
# The default layout STANDALONE breaks all the scripts.
|
||||
-DINSTALL_LAYOUT:STRING="RPM"
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=TRUE
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr
|
||||
-DCOMPILATION_COMMENT:STRING="Exherbo"
|
||||
-DDEFAULT_CHARSET:STRING=utf8
|
||||
-DDEFAULT_COLLATION:STRING=utf8_general_ci
|
||||
-DFEATURE_SET:STRING=community
|
||||
-DINSTALL_BINDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_DOCDIR:PATH=share/doc/${PNVR}
|
||||
-DINSTALL_DOCREADMEDIR:PATH=share/doc/${PNVR}
|
||||
-DINSTALL_INCLUDEDIR:PATH=$(exhost --target)/include/mysql
|
||||
-DINSTALL_INFODIR:PATH=share/mysql/info
|
||||
-DINSTALL_LIBDIR:PATH=$(exhost --target)/lib/mysql
|
||||
-DINSTALL_MANDIR:PATH=share/man
|
||||
-DINSTALL_MYSQLSHAREDIR:PATH=share/mysql
|
||||
# Empty value to not install the mysql-test directory
|
||||
-DINSTALL_MYSQLTESTDIR:STRING=
|
||||
-DINSTALL_PLUGINDIR:PATH=$(exhost --target)/lib/mysql/plugin
|
||||
-DINSTALL_SBINDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_SCRIPTDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_SHAREDIR:PATH=share
|
||||
-DINSTALL_SUPPORTFILESDIR:PATH=share/mysql
|
||||
-DMYSQL_DATADIR:PATH=/var/lib/mysql
|
||||
-DMYSQL_UNIX_ADDR:PATH=/run/mysqld/mysqld.sock
|
||||
-DREPRODUCIBLE_BUILD:BOOL=FALSE
|
||||
-DSYSCONFDIR:PATH=/etc/mysql
|
||||
-DENABLE_DTRACE:BOOL=FALSE
|
||||
-DENABLE_GCOV:BOOL=FALSE
|
||||
-DENABLE_GPROF:BOOL=FALSE
|
||||
-DENABLED_LOCAL_INFILE:BOOL=TRUE
|
||||
-DENABLED_PROFILING:BOOL=TRUE
|
||||
-DWITH_ASAN:BOOL=FALSE
|
||||
-DWITH_ASAN_SCOPE:BOOL=FALSE
|
||||
-DWITH_BOOST:PATH="${WORKBASE}"/boost_${BOOST_PV//./_}
|
||||
-DWITH_CLIENT_PROTOCOL_TRACING:BOOL=FALSE
|
||||
# Curl is only used with yassl
|
||||
-DWITH_CURL:BOOL=FALSE
|
||||
-DWITH_EDITLINE:STRING=system
|
||||
-DWITH_EXTRA_CHARSETS:STRING=all
|
||||
# Search for event_comment in this exlib for the reason for using bundled
|
||||
-DWITH_LIBEVENT:STRING=bundled
|
||||
-DWITH_LZ4:STRING=system
|
||||
-DWITH_MSAN:BOOL=FALSE
|
||||
-DWITH_NUMA:BOOL=FALSE
|
||||
-DWITH_PROTOBUF:STRING=system
|
||||
-DWITH_RAPID:BOOL=FALSE
|
||||
-DWITH_SSL:STRING=/usr/$(exhost --target)
|
||||
-DWITH_TEST_TRACE_PLUGIN:BOOL=FALSE
|
||||
-DWITH_UBSAN:BOOL=FALSE
|
||||
-DWITH_UNIT_TESTS:BOOL=TRUE
|
||||
-DWITH_VALGRIND:BOOL=FALSE
|
||||
-DWITH_ZLIB:STRING=system
|
||||
# Default ENGINES for MySQL 5.6 community build (currently == xlarge) minus embedded
|
||||
-DWITH_ARCHIVE_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_BLACKHOLE_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_FEDERATED_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_INNOBASE_STORAGE_ENGINE:BOOL=TRUE
|
||||
)
|
||||
|
||||
if option debug ; then
|
||||
cmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE:STRING=Debug
|
||||
)
|
||||
else
|
||||
cmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release
|
||||
)
|
||||
fi
|
||||
|
||||
if option memcached ; then
|
||||
cmakeargs+=(
|
||||
# Unfortunately, the InnoDb/memcached interface needs libevent 1.4.x
|
||||
# as bundled with MySQL or trying to use memcached WILL make MySQL
|
||||
# segfault immediately.
|
||||
# (Keeping this comment even though the bundled lib is used anyway in
|
||||
# order to remember *why* I changed it.)
|
||||
-DWITH_LIBEVENT:STRING=bundled
|
||||
-DWITH_INNODB_MEMCACHED:BOOL=TRUE
|
||||
)
|
||||
fi
|
||||
|
||||
if option sphinx ; then
|
||||
cmakeargs+=(
|
||||
-DWITH_SPHINX_STORAGE_ENGINE:BOOL=TRUE
|
||||
)
|
||||
fi
|
||||
|
||||
if option systemd ; then
|
||||
cmakeargs+=(
|
||||
-DWITH_SYSTEMD:BOOL=TRUE
|
||||
-DSYSTEMD_PID_DIR:PATH=/run/mysqld
|
||||
-DSYSTEMD_SERVICES_DIR:PATH=${SYSTEMDSYSTEMUNITDIR}
|
||||
-DSYSTEMD_TMPFILES_DIR:PATH=/usr/$(exhost --target)/lib/tmpfiles.d
|
||||
)
|
||||
else
|
||||
cmakeargs+=(
|
||||
-DWITH_SYSTEMD:BOOL=FALSE
|
||||
)
|
||||
fi
|
||||
|
||||
ecmake \
|
||||
"${cmakeargs[@]}" \
|
||||
$(cmake_with debug DEBUG)\
|
||||
$(cmake_with embedded-server EMBEDDED_SERVER)\
|
||||
$(cmake_with tcpd LIBWRAP)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# Remove empty directories
|
||||
edo rmdir "${IMAGE}"/usr/share/mysql/info
|
||||
! option debug && edo rmdir "${IMAGE}"/usr/$(exhost --target)/lib/mysql/plugin/debug
|
||||
|
||||
keepdir /etc/mysql
|
||||
|
||||
insinto /etc/mysql
|
||||
newins "${FILES}"/mysql-$(ever range 1-2)-my.cnf my.cnf
|
||||
|
||||
hereenvd 46mysql <<EOF
|
||||
LDPATH=/usr/@TARGET@/lib/mysql
|
||||
EOF
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILES}"/logrotate.mysql mysql
|
||||
|
||||
keepdir /var/lib/mysql-files
|
||||
edo chown mysql:mysql "${IMAGE}"/var/lib/mysql-files
|
||||
edo chmod 0750 "${IMAGE}"/var/lib/mysql-files
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if option sphinx ; then
|
||||
elog "In order to finalise your installation of the Sphinx Search Engine, you must install"
|
||||
elog "it in MySQL using the following command as an administrative user:"
|
||||
elog ""
|
||||
elog "mysql> INSTALL PLUGIN SPHINX SONAME 'ha_sphinx.so';"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
if option memcached ; then
|
||||
elog "In order to finalise your installation of the memcached plugin, you must install"
|
||||
elog "it in MySQL using the following command as an administrative user:"
|
||||
elog ""
|
||||
elog "mysql> install plugin daemon_memcached soname "libmemcached.so";"
|
||||
elog ""
|
||||
fi
|
||||
}
|
||||
|
@ -0,0 +1,37 @@
|
||||
# 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:
|
||||
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
|
||||
]]
|
||||
recommendation:
|
||||
virtual/GHC
|
||||
"
|
||||
|
||||
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"
|
||||
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"
|
||||
SLOT="0"
|
||||
@ -12,12 +12,13 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
dev-lang/ghc-bin
|
||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||
!dev-haskell/cabal-install [[
|
||||
description = [ Both install the same binary ]
|
||||
resolution = uninstall-blocked-after
|
||||
]]
|
||||
recommendation:
|
||||
virtual/GHC
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
@ -0,0 +1,31 @@
|
||||
# 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/~cabal/cabal-install-${PV}/cabal-install-${PV}-x86_64-unknown-linux.tar.xz"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="-* ~amd64"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
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
|
||||
]]
|
||||
recommendation:
|
||||
virtual/GHC
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}
|
||||
|
||||
src_install() {
|
||||
dobin cabal
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
# 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/~cabal/cabal-install-${PV}/cabal-install-${PV}-x86_64-unknown-linux.tar.xz"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="-* ~amd64"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
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
|
||||
]]
|
||||
recommendation:
|
||||
virtual/GHC
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}
|
||||
|
||||
src_install() {
|
||||
dobin cabal
|
||||
}
|
||||
|
33
packages/dev-haskell/ghcup/ghcup-0.1.5.exheres-0
Normal file
33
packages/dev-haskell/ghcup/ghcup-0.1.5.exheres-0
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SUMMARY="Painless installation of GHC toolchain"
|
||||
HOMEPAGE="https://www.haskell.org/ghcup/ https://gitlab.haskell.org/haskell/ghcup-hs"
|
||||
DOWNLOADS="
|
||||
platform:amd64? ( https://downloads.haskell.org/~ghcup/${PV}/x86_64-linux-ghcup-${PV} )
|
||||
platform:x86? ( https://downloads.haskell.org/~ghcup/${PV}/i386-linux-ghcup-${PV} )
|
||||
"
|
||||
|
||||
LICENCES="LGPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
platform: amd64 x86
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
net-misc/curl
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}
|
||||
|
||||
src_unpack() {
|
||||
edo mv "${FETCHEDDIR}/${ARCHIVES}" ghcup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ghcup
|
||||
}
|
@ -16,7 +16,6 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
dev-lang/ghc-bin
|
||||
dev-libs/gmp[>=6.1] [[ note = [ depends on libgmp.so.10 ] ]]
|
||||
"
|
||||
|
182
packages/dev-lang/GHC/GHC-8.2.2-r1.exheres-0
Normal file
182
packages/dev-lang/GHC/GHC-8.2.2-r1.exheres-0
Normal file
@ -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
|
||||
}
|
||||
|
179
packages/dev-lang/GHC/GHC-8.4.3-r1.exheres-0
Normal file
179
packages/dev-lang/GHC/GHC-8.4.3-r1.exheres-0
Normal file
@ -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
|
||||
}
|
||||
|
179
packages/dev-lang/GHC/GHC-8.4.4.exheres-0
Normal file
179
packages/dev-lang/GHC/GHC-8.4.4.exheres-0
Normal file
@ -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="
|
||||
build:
|
||||
dev-libs/libxslt[>=1.1.2]
|
||||
dev-python/Sphinx
|
||||
build+run:
|
||||
dev-lang/perl:*[>=5.6.1]
|
||||
dev-libs/gmp:=[>=5]
|
||||
dev-libs/libedit
|
||||
dev-libs/libffi
|
||||
llvm? ( dev-lang/llvm[>=2.7] )
|
||||
!dev-lang/ghc [[ resolution = uninstall-blocked-before ]]
|
||||
@ -161,13 +159,19 @@ src_install() {
|
||||
/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+=(
|
||||
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
|
||||
)
|
||||
done
|
||||
|
||||
alternatives_for \
|
||||
ghc ${SLOT} ${SLOT} \
|
||||
"${alternatives[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test_expensive() {
|
180
packages/dev-lang/GHC/GHC-8.6.3.exheres-0
Normal file
180
packages/dev-lang/GHC/GHC-8.6.3.exheres-0
Normal file
@ -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
|
||||
}
|
||||
|
180
packages/dev-lang/GHC/GHC-8.6.4.exheres-0
Normal file
180
packages/dev-lang/GHC/GHC-8.6.4.exheres-0
Normal file
@ -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
|
||||
}
|
||||
|
180
packages/dev-lang/GHC/GHC-8.6.5.exheres-0
Normal file
180
packages/dev-lang/GHC/GHC-8.6.5.exheres-0
Normal file
@ -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
|
||||
}
|
||||
|
184
packages/dev-lang/GHC/GHC-8.8.1.exheres-0
Normal file
184
packages/dev-lang/GHC/GHC-8.8.1.exheres-0
Normal file
@ -0,0 +1,184 @@
|
||||
# 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}"
|
||||
BOOTSTRAP_PV="8.6.5"
|
||||
|
||||
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/${BOOTSTRAP_PV}/ghc-${BOOTSTRAP_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 ]]
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PNV}-no-alex.patch
|
||||
)
|
||||
|
||||
WORK=${WORKBASE}/${MY_PNV}
|
||||
|
||||
src_unpack() {
|
||||
unpack ghc-${BOOTSTRAP_PV}-x86_64-fedora27-linux.tar.xz
|
||||
edo mv ghc-${BOOTSTRAP_PV} "bootstrap-ghc"
|
||||
unpack ${MY_PNV}-src.tar.xz
|
||||
unpack ${MY_PNV}-testsuite.tar.xz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# prepare pre-built ghc
|
||||
edo pushd "${WORKBASE}/bootstrap-ghc"
|
||||
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
|
||||
|
||||
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.
|
||||
GHC=${TEMP}/ghc-pre/bin/ghc 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
|
||||
}
|
||||
|
180
packages/dev-lang/GHC/GHC-8.8.2.exheres-0
Normal file
180
packages/dev-lang/GHC/GHC-8.8.2.exheres-0
Normal file
@ -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}"
|
||||
BOOTSTRAP_PV="8.6.5"
|
||||
|
||||
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/${BOOTSTRAP_PV}/ghc-${BOOTSTRAP_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-${BOOTSTRAP_PV}-x86_64-fedora27-linux.tar.xz
|
||||
edo mv ghc-${BOOTSTRAP_PV} "bootstrap-ghc"
|
||||
unpack ${MY_PNV}-src.tar.xz
|
||||
unpack ${MY_PNV}-testsuite.tar.xz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# prepare pre-built ghc
|
||||
edo pushd "${WORKBASE}/bootstrap-ghc"
|
||||
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
|
||||
|
||||
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.
|
||||
GHC=${TEMP}/ghc-pre/bin/ghc 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
|
||||
}
|
||||
|
188
packages/dev-lang/GHC/GHC-8.8.3.exheres-0
Normal file
188
packages/dev-lang/GHC/GHC-8.8.3.exheres-0
Normal file
@ -0,0 +1,188 @@
|
||||
# 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}"
|
||||
BOOTSTRAP_PV="8.6.5"
|
||||
|
||||
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
|
||||
bootstrap? ( https://downloads.haskell.org/~ghc/${BOOTSTRAP_PV}/ghc-${BOOTSTRAP_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="
|
||||
bootstrap [[ description = [ Use official bindist for bootstrapping ] ]]
|
||||
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
|
||||
!bootstrap? (
|
||||
dev-lang/GHC:${BOOTSTRAP_PV}
|
||||
)
|
||||
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() {
|
||||
if option bootstrap ; then
|
||||
unpack ghc-${BOOTSTRAP_PV}-x86_64-fedora27-linux.tar.xz
|
||||
edo mv ghc-${BOOTSTRAP_PV} "bootstrap-ghc"
|
||||
fi
|
||||
unpack ${MY_PNV}-src.tar.xz
|
||||
unpack ${MY_PNV}-testsuite.tar.xz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if option bootstrap ; then
|
||||
# prepare pre-built ghc
|
||||
edo pushd "${WORKBASE}/bootstrap-ghc"
|
||||
edo ./configure \
|
||||
--prefix="${TEMP}/ghc-pre" \
|
||||
--target=$(exhost --target)
|
||||
emake install
|
||||
edo popd
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
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.
|
||||
GHC=ghc-${BOOTSTRAP_PV} 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
|
||||
}
|
||||
|
33
packages/dev-lang/GHC/files/GHC-8.8.1-no-alex.patch
Normal file
33
packages/dev-lang/GHC/files/GHC-8.8.1-no-alex.patch
Normal file
@ -0,0 +1,33 @@
|
||||
https://github.com/gentoo-haskell/gentoo-haskell/issues/959
|
||||
|
||||
From 144abba394c6a23eb877fbde727111a5e75b9d47 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Gamari <ben@smart-cactus.org>
|
||||
Date: Wed, 18 Sep 2019 23:50:20 -0400
|
||||
Subject: [PATCH] configure: Don't depend upon alex in source dist build
|
||||
|
||||
This fixes #16860 by verifying that the generated sources don't already
|
||||
exist before asserting that the `alex` executable was found. This
|
||||
replicates the logic already used for `happy` in the case of `alex`.
|
||||
---
|
||||
aclocal.m4 | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/aclocal.m4
|
||||
+++ b/aclocal.m4
|
||||
@@ -984,8 +984,11 @@ else
|
||||
fi;
|
||||
changequote([, ])dnl
|
||||
])
|
||||
-FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[3.1.7],
|
||||
- [AC_MSG_ERROR([Alex version 3.1.7 or later is required to compile GHC.])])[]
|
||||
+if test ! -f compiler/parser/Lexer.hs
|
||||
+then
|
||||
+ FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[3.1.7],
|
||||
+ [AC_MSG_ERROR([Alex version 3.1.7 or later is required to compile GHC.])])[]
|
||||
+fi
|
||||
AlexVersion=$fptools_cv_alex_version;
|
||||
AC_SUBST(AlexVersion)
|
||||
])
|
||||
--
|
||||
2.23.0
|
||||
|
62
packages/dev-lang/coconut/coconut-1.4.2.exheres-0
Normal file
62
packages/dev-lang/coconut/coconut-1.4.2.exheres-0
Normal file
@ -0,0 +1,62 @@
|
||||
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="evhub" tag="v${PV}" ]
|
||||
require pypi setup-py [ import=setuptools ]
|
||||
|
||||
SUMMARY="Simple, elegant, Pythonic functional programming"
|
||||
DESCRIPTION="
|
||||
Coconut is a functional programming language that compiles to Python. Since all
|
||||
valid Python is valid Coconut, using Coconut will only extend and enhance what
|
||||
you're already capable of in Python.
|
||||
|
||||
Why use Coconut? Coconut is built to be fundamentally useful. Coconut enhances
|
||||
the repertoire of Python programmers to include the tools of modern functional
|
||||
programming, in such a way that those tools are easy to use and immensely
|
||||
powerful; that is, Coconut does to functional programming what Python did to
|
||||
imperative programming. And Coconut code runs the same on any Python version,
|
||||
making the Python 2/3 split a thing of the past.
|
||||
"
|
||||
HOMEPAGE="http://coconut-lang.org/ ${HOMEPAGE}"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
RESTRICT="test" # missing deps
|
||||
|
||||
# python setup.py egg_info
|
||||
# cat coconut.egg-info/requires.txt
|
||||
# we ignore upper bounds of:
|
||||
# * cPyparsing
|
||||
# * mypy
|
||||
# * prompt_toolkit[python_abis:2.7]
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/Pygments[>=2.3.1][python_abis:*(-)?]
|
||||
dev-python/prompt_toolkit[>=1.0][python_abis:*(-)?]
|
||||
dev-python/cPyparsing[>=2.4.5.0.1.1][python_abis:*(-)?]
|
||||
python_abis:2.7? (
|
||||
dev-python/futures[>=3.3][python_abis:2.7]
|
||||
dev-python/prompt_toolkit[>=1.0][python_abis:*(-)?]
|
||||
)
|
||||
suggestion:
|
||||
dev-python/mypy[>=0.540] [[ description = [ coconut can run mypy on the compiled python code ] ]]
|
||||
dev-python/psutil[>=5] [[ description = [ improves use of the --jobs flag ] ]]
|
||||
dev-python/watchdog[>=0.9] [[ description = [ enables use of the --watch flag ] ]]
|
||||
python_abis:2.7? (
|
||||
dev-python/trollius[>=2.2] [[ description = [ enables use of the asyncio library on Python 2 versions by making use of trollius ] ]]
|
||||
)
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
prepare_one_multibuild() {
|
||||
python_prepare_one_multibuild
|
||||
|
||||
# https://github.com/evhub/coconut/issues/527
|
||||
edo iconv -c -f utf-8 -t ascii README.rst > "${TEMP}"/README.rst
|
||||
edo $(exhost --tool-prefix)strings "${TEMP}"/README.rst > README.rst
|
||||
}
|
||||
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||
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
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||
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
|
@ -20,6 +20,10 @@ DEPENDENCIES="
|
||||
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
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.4.4.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.4.4.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.2-r1.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.2-r1.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.3.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.3.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.4.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.4.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.5.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.6.5.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.8.1.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.8.1.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
96
packages/dev-lang/ghc-bin/ghc-bin-8.8.2.exheres-0
Normal file
96
packages/dev-lang/ghc-bin/ghc-bin-8.8.2.exheres-0
Normal file
@ -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[@]}"
|
||||
}
|
35
packages/dev-lua/luv/luv-1.30.1_p1.exheres-0
Normal file
35
packages/dev-lua/luv/luv-1.30.1_p1.exheres-0
Normal file
@ -0,0 +1,35 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
MY_PV=${PV/_p/-}
|
||||
WORK=${WORKBASE}/${PN}-${MY_PV}
|
||||
|
||||
require cmake [ api=2 ]
|
||||
|
||||
SUMMARY="Bare libuv bindings for lua"
|
||||
HOMEPAGE="https://github.com/luvit/luv"
|
||||
DOWNLOADS="https://github.com/luvit/luv/releases/download/${MY_PV}/luv-${MY_PV}.tar.gz"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
dev-lang/LuaJIT
|
||||
dev-libs/libuv
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo"
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DBUILD_MODULE=OFF
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLUA_BUILD_TYPE=System
|
||||
-DWITH_LUA_ENGINE="LuaJIT"
|
||||
-DWITH_SHARED_LIBUV=ON
|
||||
)
|
||||
|
35
packages/dev-lua/luv/luv-1.34.1_p0.exheres-0
Normal file
35
packages/dev-lua/luv/luv-1.34.1_p0.exheres-0
Normal file
@ -0,0 +1,35 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
MY_PV=${PV/_p/-}
|
||||
WORK=${WORKBASE}/${PN}-${MY_PV}
|
||||
|
||||
require cmake [ api=2 ]
|
||||
|
||||
SUMMARY="Bare libuv bindings for lua"
|
||||
HOMEPAGE="https://github.com/luvit/luv"
|
||||
DOWNLOADS="https://github.com/luvit/luv/releases/download/${MY_PV}/luv-${MY_PV}.tar.gz"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
dev-lang/LuaJIT
|
||||
dev-libs/libuv
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo"
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DBUILD_MODULE=OFF
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DLUA_BUILD_TYPE=System
|
||||
-DWITH_LUA_ENGINE="LuaJIT"
|
||||
-DWITH_SHARED_LIBUV=ON
|
||||
)
|
||||
|
@ -0,0 +1,12 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require pypi setup-py [ import=setuptools ]
|
||||
|
||||
SUMMARY="Cython implementation of PyParsing created for use in Coconut and Undebt"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
MY_PNV="${PN}-${PV/_p/.post}"
|
||||
|
||||
require setup-py [ import=setuptools work="${MY_PNV}" ]
|
||||
require pypi
|
||||
|
||||
SUMMARY="Easily include Font Awesome icons in your python scripts"
|
||||
|
||||
LICENCES="Apache-2.0 OFL-1.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
prepare_one_multibuild() {
|
||||
edo sed -i \
|
||||
-e '/pypandoc/d' \
|
||||
setup.py
|
||||
|
||||
setup-py_prepare_one_multibuild
|
||||
}
|
||||
|
@ -23,35 +23,29 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/typed-ast[>=1.1.0&<1.2.0][python_abis:*(-)?]
|
||||
python_abis:3.4? (
|
||||
dev-python/typing[>=3.5.3][python_abis:3.4]
|
||||
)
|
||||
dev-python/typed-ast[>=1.4.0&<1.5.0][python_abis:*(-)?]
|
||||
dev-python/mypy_extensions[>=0.4.0&<0.5.0][python_abis:*(-)?]
|
||||
dev-python/typing-extensions[>=3.7.4][python_abis:*(-)?]
|
||||
test:
|
||||
dev-python/attrs[>=18.0][python_abis:*(-)?]
|
||||
dev-python/flake8[>=3.7][python_abis:*(-)?]
|
||||
dev-python/lxml[>=4.2.4][python_abis:*(-)?]
|
||||
dev-python/psutil[>=4.0][python_abis:*(-)?]
|
||||
dev-python/py[>=1.5.2][python_abis:*(-)?]
|
||||
dev-python/pytest[>=3.0][python_abis:*(-)?]
|
||||
dev-python/pytest[>=4.4][python_abis:*(-)?]
|
||||
dev-python/pytest-cov[>=2.4.0][python_abis:*(-)?]
|
||||
dev-python/pytest-xdist[>=1.18][python_abis:*(-)?]
|
||||
dev-python/pytest-xdist[>=1.22][python_abis:*(-)?]
|
||||
dev-python/virtualenv[python_abis:*(-)?]
|
||||
suggestion:
|
||||
dev-python/psutil[>=5.4.0&<5.5.0][python_abis:*(-)?] [[
|
||||
dev-python/psutil[>=4.0][python_abis:*(-)?] [[
|
||||
description = [ Show memory stats in 'dmypy status -v' ] ]]
|
||||
"
|
||||
|
||||
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, pytest 4.4+
|
||||
RESTRICT="test"
|
||||
|
||||
prepare_one_multibuild() {
|
||||
edo sed -i \
|
||||
-e "/target = /s|lib|$(exhost --target)/lib|" \
|
||||
setup.py
|
||||
|
||||
setup-py_prepare_one_multibuild
|
||||
}
|
||||
|
||||
test_one_multibuild() {
|
||||
PYTHONPATH="${PWD}" edo ${PYTHON} -B runtests.py -x lint
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# 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 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
"
|
||||
|
@ -7,7 +7,7 @@ SUMMARY="OAuth 2.0 client library"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~armv7 ~x86"
|
||||
PLATFORMS="~amd64 ~armv7 ~armv8 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
|
@ -16,7 +16,6 @@ DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/six[>=1.9.0][python_abis:*(-)?]
|
||||
dev-python/wcwidth[python_abis:*(-)?]
|
||||
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
7
packages/dev-python/psutil/psutil-5.4.8.exheres-0
Normal file
7
packages/dev-python/psutil/psutil-5.4.8.exheres-0
Normal file
@ -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"
|
||||
|
24
packages/dev-python/psutil/psutil.exlib
Normal file
24
packages/dev-python/psutil/psutil.exlib
Normal file
@ -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>
|
||||
# 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"
|
||||
HOMEPAGE="http://sipsimpleclient.org"
|
||||
DOWNLOADS="http://download.ag-projects.com/SipClient/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
@ -16,8 +16,6 @@ MYOPTIONS=""
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
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>
|
||||
# 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"
|
||||
HOMEPAGE="http://sipsimpleclient.org"
|
||||
DOWNLOADS="http://download.ag-projects.com/MSRP/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="LGPL-2"
|
||||
SLOT="0"
|
||||
@ -17,7 +17,6 @@ DEPENDENCIES="
|
||||
dev-python/python-application[python_abis:*(-)?]
|
||||
dev-python/python-eventlib[python_abis:*(-)?]
|
||||
dev-python/python-gnutls[>=3.0.0][python_abis:*(-)?]
|
||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
||||
net-twisted/TwistedNames[python_abis:*(-)?]
|
||||
net-twisted/Twisted[python_abis:*(-)?]
|
||||
"
|
||||
|
@ -13,10 +13,10 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/cryptography[python_abis:*(-)?]
|
||||
dev-python/cryptography[>=1.6][python_abis:*(-)?]
|
||||
dev-python/enum34[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:*(-)?]
|
||||
net-libs/libotr
|
||||
"
|
@ -0,0 +1,26 @@
|
||||
From 8e0874b1be515abc8845e3ad41c4332f992e5687 Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@posteo.de>
|
||||
Date: Tue, 24 Dec 2019 22:17:28 +0100
|
||||
Subject: [PATCH] Fix build with LibreSSL 2.7
|
||||
Upstream: submitted, https://github.com/AGProjects/python-sipsimple/pull/8
|
||||
|
||||
---
|
||||
deps/pjsip/third_party/zsrtp/include/openssl_compat.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
index 5b6e183e..aebbf996 100644
|
||||
--- a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
+++ b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <openssl/hmac.h>
|
||||
|
||||
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
|
||||
static HMAC_CTX *HMAC_CTX_new(void)
|
||||
{
|
||||
HMAC_CTX *ctx = (HMAC_CTX*)OPENSSL_malloc(sizeof(HMAC_CTX));
|
||||
--
|
||||
2.24.1
|
||||
|
@ -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
|
||||
build+run:
|
||||
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/v4l-utils
|
||||
sys-apps/util-linux
|
||||
@ -43,13 +44,12 @@ DEPENDENCIES="
|
||||
dev-python/python-xcaplib[python_abis:*(-)?]
|
||||
dev-python/zopeinterface[python_abis:*(-)?]
|
||||
media-libs/x264[-10bit]
|
||||
net-twisted/TwistedCore[python_abis:*(-)?]
|
||||
net-twisted/Twisted[python_abis:*(-)?]
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PNV}-fix-build.patch
|
||||
"${FILES}"/${PNV}-pjmedia-ffmpeg-fix.patch
|
||||
-p0 "${FILES}"/${PNV}-pjmedia-openh264-1.6.patch
|
||||
"${FILES}"/0001-Fix-build-with-LibreSSL-2.7.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
@ -1,18 +0,0 @@
|
||||
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require pypi setup-py [ import=setuptools ]
|
||||
|
||||
SUMMARY="Pure-Python RSA implementation"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~armv7 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/pyasn1[python_abis:*(-)?]
|
||||
"
|
||||
|
@ -1,19 +0,0 @@
|
||||
# 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"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
7
packages/dev-python/typed-ast/typed-ast-1.4.0.exheres-0
Normal file
7
packages/dev-python/typed-ast/typed-ast-1.4.0.exheres-0
Normal file
@ -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"
|
||||
|
@ -1,9 +1,12 @@
|
||||
# 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 ]
|
||||
MY_PN="typed_ast"
|
||||
MY_PNV="${MY_PN}-${PV}"
|
||||
|
||||
require github [ user="python" project="${MY_PN}" ]
|
||||
require pypi [ pnv="${MY_PNV}" ]
|
||||
require setup-py [ import=setuptools blacklist=2 work="${MY_PNV}" ]
|
||||
|
||||
SUMMARY="A fork of Python 2 and 3 ast modules with type comment support"
|
||||
DESCRIPTION="
|
||||
@ -12,7 +15,6 @@ typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser s
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
@ -1,15 +0,0 @@
|
||||
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="jquast" ]
|
||||
require pypi setup-py [ import=setuptools test=pytest ]
|
||||
|
||||
SUMMARY="Measures number of Terminal column cells of wide-character codes"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
35
packages/dev-scm/git-imerge/git-imerge-1.1.0.exheres-0
Normal file
35
packages/dev-scm/git-imerge/git-imerge-1.1.0.exheres-0
Normal file
@ -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}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require cargo [ channel=stable ]
|
||||
require github [ user=MitMaro tag="${PV}" ]
|
||||
|
||||
SUMMARY="Native cross platform full feature terminal based sequence editor for git interactive rebase"
|
||||
HOMEPAGE="https://crates.io/crates/git-interactive-rebase-tool ${HOMEPAGE}"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
19
packages/dev-util/rusty-tags/rusty-tags-3.5.1.exheres-0
Normal file
19
packages/dev-util/rusty-tags/rusty-tags-3.5.1.exheres-0
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require cargo [ channel=stable ]
|
||||
require github [ user="dan-t" tag="v${PV}" ]
|
||||
|
||||
SUMMARY="Create ctags/etags for a cargo project"
|
||||
HOMEPAGE="https://crates.io/crates/rusty-tags ${HOMEPAGE}"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
@ -2,38 +2,41 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require alternatives github [ user='universal-ctags' pn='ctags' ]
|
||||
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
|
||||
|
||||
SUMMARY="Universal ctags"
|
||||
|
||||
LICENCES="GPL-2"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="json xml yaml"
|
||||
MYOPTIONS="
|
||||
json [[ description = [ Add support for JSON format as output ] ]]
|
||||
seccomp [[ description = [ Add support for libseccomp library ] ]]
|
||||
xml
|
||||
yaml [[ description = [ Add support for YAML format as output ] ]]
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
json? ( dev-libs/jansson )
|
||||
xml? ( dev-libs/libxml2:2.0 )
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
xml? ( dev-libs/libxml2:2.0[>=2.7.7] )
|
||||
yaml? ( dev-libs/libyaml )
|
||||
build:
|
||||
dev-python/docutils
|
||||
virtual/pkg-config
|
||||
"
|
||||
|
||||
# input-encoding-option and output-encoding-option fail as of 20-03-2020
|
||||
RESTRICT="test"
|
||||
|
||||
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
||||
'json'
|
||||
'seccomp'
|
||||
'xml'
|
||||
'yaml'
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# autogen.sh usually runs this
|
||||
edo ./misc/dist-test-cases > makefiles/test-cases.mak
|
||||
|
||||
autotools_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
|
@ -1,100 +0,0 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require desktop-utils
|
||||
|
||||
SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game"
|
||||
HP="http://www.ftlgame.com"
|
||||
GOG_HP="https://www.gog.com/game/faster_than_light"
|
||||
HOMEPAGE="${HP} ${GOG_HP}"
|
||||
FTL_SH="gog_ftl_advanced_edition_2.0.0.2.sh"
|
||||
FTL_TAR="FTL.${PV}.tar.gz"
|
||||
DOWNLOADS="
|
||||
gog? ( manual: ${FTL_SH} )
|
||||
!gog? ( manual: ${FTL_TAR} )
|
||||
"
|
||||
|
||||
LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng"
|
||||
SLOT="0"
|
||||
PLATFORMS="-* ~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
gog [[ description = [ Use the gog advanced edition version ] ]]
|
||||
( platform: amd64 x86 )
|
||||
"
|
||||
RESTRICT="fetch"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
media-libs/DevIL
|
||||
media-libs/SDL:0[X]
|
||||
media-libs/freetype:2
|
||||
sys-libs/zlib
|
||||
x11-dri/mesa
|
||||
build:
|
||||
virtual/unzip
|
||||
"
|
||||
|
||||
WORK="${WORKBASE}"
|
||||
|
||||
pkg_nofetch() {
|
||||
local hp=${HP}
|
||||
optionq gog && hp=${GOG_HP}
|
||||
local file=${FTL_TAR}
|
||||
optionq gog && file=${FTL_SH}
|
||||
|
||||
einfo "Please buy & download ${file} from:"
|
||||
einfo " ${hp}"
|
||||
einfo "and move it to ${FETCHEDDIR}"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
exdirectory --allow /opt
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if optionq gog ; then
|
||||
unzip -qo "${FETCHEDDIR}/${FTL_SH}"
|
||||
[[ $? -le 1 ]] || die "unpacking ${FTL_SH} failed!"
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dir=/opt/${PN}
|
||||
local arch=$(option platform:amd64 "amd64" "x86")
|
||||
local datadir=${WORKBASE}/${PN}/data
|
||||
optionq gog && datadir=${WORKBASE}/data/noarch/game/data
|
||||
local htmldir=${WORKBASE}/${PN}
|
||||
optionq gog && htmldir=${WORKBASE}/data/noarch/docs
|
||||
|
||||
insinto "${dir}"
|
||||
doins -r "${datadir}"/resources
|
||||
|
||||
exeinto "${dir}"/bin
|
||||
doexe "${datadir}"/${arch}/bin/${PN}
|
||||
exeinto "${dir}"/lib
|
||||
doexe "${datadir}"/${arch}/lib/*.so*
|
||||
|
||||
herebin ${PN} << EOF
|
||||
#!/bin/sh
|
||||
cd "/opt/FTL"
|
||||
if [ "\${LD_LIBRARY_PATH+set}" = "set" ] ; then
|
||||
export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:/opt/FTL/lib"
|
||||
else
|
||||
export LD_LIBRARY_PATH="/opt/FTL/lib"
|
||||
fi
|
||||
exec /opt/FTL/bin/FTL "\$@"
|
||||
EOF
|
||||
|
||||
install_desktop_entry "Name=Faster Than Light" \
|
||||
"Icon=/usr/share/pixmaps/FTL.bmp"
|
||||
|
||||
insinto /usr/share/pixmaps
|
||||
newins "${datadir}"/resources/exe_icon.bmp FTL.bmp
|
||||
|
||||
insinto /usr/share/doc/${PNVR}/html
|
||||
doins "${htmldir}"/${PN}_README.html
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game
|
||||
HP="http://www.ftlgame.com"
|
||||
GOG_HP="https://www.gog.com/game/faster_than_light"
|
||||
HOMEPAGE="${HP} ${GOG_HP}"
|
||||
FTL_SH="ftl_advanced_edition_en_1_6_3_17917.sh"
|
||||
FTL_SH="ftl_advanced_edition_1_6_12_2_35269.sh"
|
||||
DOWNLOADS="manual: ${FTL_SH}"
|
||||
|
||||
LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng"
|
@ -2,7 +2,7 @@
|
||||
# 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 cmake desktop-utils gtk-icon-cache
|
||||
require cmake [ api=2 ] desktop-utils gtk-icon-cache
|
||||
|
||||
SUMMARY="Free/Libre Action Roleplaying game"
|
||||
|
||||
@ -15,7 +15,7 @@ DEPENDENCIES="
|
||||
games-engines/flare[~${PV}]
|
||||
"
|
||||
|
||||
WORK=${WORKBASE}/${PN}-game-${PV}
|
||||
CMAKE_SOURCE=${WORKBASE}/${PN}-game-${PV}
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DBINDIR="/usr/$(exhost --target)/bin"
|
||||
@ -31,7 +31,5 @@ exec flare --game=flare-game "\$@"
|
||||
EOF
|
||||
|
||||
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
||||
|
||||
dodoc README
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
SCM_CHECKOUT_TO=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"
|
||||
|
||||
@ -30,7 +30,5 @@ exec flare --game=flare-game "\$@"
|
||||
EOF
|
||||
|
||||
install_desktop_entry "Name=Flare (game)" "Exec=flare-game"
|
||||
|
||||
dodoc README
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require gog [ installer="stardew_valley_1_4_5_433754439_36068.sh" ]
|
||||
require desktop-utils
|
||||
|
||||
SUMMARY="Stardew Valley is a farming simulation role-playing video game"
|
||||
HOMEPAGE="https://www.gog.com/game/stardew_valley"
|
||||
|
||||
SLOT="0"
|
||||
PLATFORMS="-* ~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
( platform: amd64 x86 )
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-apps/xterm
|
||||
x11-dri/mesa
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local arch=$(option platform:amd64 "x86_64" "x86")
|
||||
local noarch=$(option platform:amd64 "x86" "x86_64")
|
||||
local nolib=$(option platform:amd64 "lib" "lib64")
|
||||
|
||||
herebin ${PN} <<EOF
|
||||
#!/bin/sh
|
||||
cd "${GOG_INSTALL_DIR}/game"
|
||||
export TERM=xterm
|
||||
exec "./StardewValley.bin.${arch}" "\$@"
|
||||
EOF
|
||||
|
||||
install_desktop_entry "Name=Stardew Valley"
|
||||
|
||||
edo rm "${WORK}/game/StardewValley.bin.${noarch}"
|
||||
edo rm -r "${WORK}/game/${nolib}"
|
||||
|
||||
insinto "${GOG_INSTALL_DIR}"
|
||||
doins -r "${WORK}/game"
|
||||
edo chmod +x "${IMAGE%/}${GOG_INSTALL_DIR}/game/StardewValley.bin.${arch}"
|
||||
edo ln -sf mcs.bin.${arch} "${IMAGE%/}${GOG_INSTALL_DIR}"/game/mcs
|
||||
}
|
||||
|
@ -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"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PN}-Remove-all-references-to-signals-library-from-CMakeL.patch
|
||||
)
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DRELEASE_COMPILE_FLAGS=""
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
|
@ -43,9 +43,6 @@ MV_FILES=(
|
||||
/usr/share/applications/openra-cnc.desktop
|
||||
/usr/share/applications/openra-ra.desktop
|
||||
/usr/share/applications/openra-d2k.desktop
|
||||
/usr/share/applications/openra-cnc-join-servers.desktop
|
||||
/usr/share/applications/openra-ra-join-servers.desktop
|
||||
/usr/share/applications/openra-d2k-join-servers.desktop
|
||||
|
||||
/usr/share/icons/hicolor/128x128/apps/openra-cnc.png
|
||||
/usr/share/icons/hicolor/16x16/apps/openra-cnc.png
|
||||
@ -73,7 +70,7 @@ openra-build_src_unpack() {
|
||||
|
||||
edo cd "${WORK}"/thirdparty
|
||||
edo sed -i \
|
||||
-e 's|curl .*$|: |' \
|
||||
-e 's|^[[:space:]]+curl .*$|: |' \
|
||||
fetch-thirdparty-deps.sh
|
||||
|
||||
cat <<EOF > noget.sh
|
||||
@ -141,7 +138,7 @@ openra-build_src_install() {
|
||||
local i
|
||||
for i in /usr/$(exhost --target)/bin/openra-{ra,cnc,d2k} \
|
||||
/usr/$(exhost --target)/bin/openra-{ra,cnc,d2k}-server \
|
||||
/usr/share/mime/packages/openra.xml \
|
||||
/usr/share/mime/packages/openra-{ra,cnc,d2k}.xml \
|
||||
/usr/share/appdata/openra-{ra,cnc,d2k}.appdata.xml
|
||||
do
|
||||
edo mv "${IMAGE%/}"${i} "${IMAGE%/}"${i}-${SLOT}
|
||||
@ -163,7 +160,9 @@ openra-build_src_install() {
|
||||
/usr/share/appdata/openra-cnc.appdata.xml{,-${SLOT}} \
|
||||
/usr/share/appdata/openra-ra.appdata.xml{,-${SLOT}} \
|
||||
/usr/share/appdata/openra-d2k.appdata.xml{,-${SLOT}} \
|
||||
/usr/share/mime/packages/openra.xml{,-${SLOT}}
|
||||
/usr/share/mime/packages/openra-cnc.xml{,-${SLOT}} \
|
||||
/usr/share/mime/packages/openra-ra.xml{,-${SLOT}} \
|
||||
/usr/share/mime/packages/openra-d2k.xml{,-${SLOT}}
|
||||
}
|
||||
|
||||
openra-build_pkg_postinst() {
|
||||
|
49
packages/media-libs/libsixel/libsixel-1.8.6.exheres-0
Normal file
49
packages/media-libs/libsixel/libsixel-1.8.6.exheres-0
Normal file
@ -0,0 +1,49 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="saitoha" release="v${PV}" suffix="tar.gz" ]
|
||||
require bash-completion zsh-completion
|
||||
|
||||
SUMMARY="A lightweight, fast implementation of DEC SIXEL graphics codec"
|
||||
|
||||
LICENCES="MIT public-domain"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
dev-libs/glib:2
|
||||
media-libs/gd
|
||||
media-libs/libpng:=
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
x11-libs/gdk-pixbuf:2.0
|
||||
providers:ijg-jpeg? ( media-libs/jpeg:= )
|
||||
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
DEFAULT_SRC_CONFIGURE_PARAMS=(
|
||||
--disable-python
|
||||
--with-bash-completion-dir=${BASHCOMPLETIONDIR}
|
||||
--with-curl
|
||||
--with-gd
|
||||
--with-gdk-pixbuf2
|
||||
--with-jpeg
|
||||
--with-png
|
||||
--with-zshcompletiondir=${ZSHCOMPLETIONDIR}
|
||||
)
|
||||
|
||||
WORK=${WORKBASE}/sixel-${PV}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
emagicdocs
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ PNMIXER_RELEASE=$(exparam release)
|
||||
PNMIXER_PV=$(exparam pv)
|
||||
|
||||
require github [ user='nicklan' release="${PNMIXER_RELEASE}" pv="${PNMIXER_PV}" suffix="tar.gz" ]
|
||||
require cmake
|
||||
require cmake [ api=2 ]
|
||||
require gtk-icon-cache
|
||||
|
||||
SUMMARY="Simple ALSA mixer application designed to run in system tray"
|
||||
|
@ -17,8 +17,7 @@ MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
app-crypt/qca:2[qt5]
|
||||
dev-libs/qjson
|
||||
app-crypt/qca:2[qt5(+)]
|
||||
sys-apps/file
|
||||
sys-auth/qoauth[>=2.0.0]
|
||||
x11-libs/qtbase:5
|
@ -0,0 +1,37 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="hoehermann" ]
|
||||
|
||||
SUMMARY="Pidgin/libpurple plugin for WhatsApp Web"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
dev-lang/go
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
dev-libs/glib:2
|
||||
net-im/pidgin
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
edo sed -i -e \
|
||||
"s/\$(GO) build/\$(GO) build -ldflags=\"-extar \/usr\/host\/bin\/$(exhost --target)-ar\"/" \
|
||||
Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${WORK}"/.gopath
|
||||
esandbox disable_net
|
||||
default
|
||||
esandbox enable_net
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user='Junker' ]
|
||||
|
||||
SUMMARY="HTTP File Upload plugin for libpurple (XMPP Protocol)"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
net-im/pidgin
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# https://github.com/Junker/purple-xmpp-http-upload/pull/14
|
||||
edo sed -i -e \
|
||||
"s/pkg-config/$(exhost --tool-prefix)pkg-config/" \
|
||||
makefile
|
||||
export CFLAGS="${CFLAGS} -fPIC"
|
||||
export LDFLAGS="${LDFLAGS} -ldl -lm -ljabber"
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="majn" release="v${PV}" pnv="${PN}_${PV}.orig" suffix="tar.gz" ]
|
||||
|
||||
SUMMARY="Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers"
|
||||
|
||||
LICENCES="GPL-2"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
sys-devel/gettext
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
dev-libs/glib:2
|
||||
dev-libs/libgcrypt
|
||||
media-libs/libpng:=
|
||||
media-libs/libwebp:=
|
||||
net-im/pidgin
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK="${WORKBASE}/${PN}"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
edo rmdir "${IMAGE}"/etc/telegram-purple
|
||||
edo rmdir "${IMAGE}"/etc
|
||||
}
|
@ -6,6 +6,7 @@ require github [ user=haiwen tag="v${PV}" ]
|
||||
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
|
||||
|
||||
SUMMARY="A simple C language RPC framework (including both server side & client side)"
|
||||
DOWNLOADS="https://github.com/haiwen/libsearpc/archive/v3.2-latest.tar.gz -> ${PNV}.tar.gz"
|
||||
|
||||
LICENCES="Apache-2.0"
|
||||
SLOT="0"
|
||||
@ -19,11 +20,14 @@ DEPENDENCIES="
|
||||
dev-libs/glib:2
|
||||
dev-libs/jansson
|
||||
run:
|
||||
dev-python/future[python_abis:*(-)?]
|
||||
dev-python/simplejson[python_abis:*(-)?]
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}/libsearpc-3.2-latest
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
edo sed -i -e "s/(DESTDIR)//" ${PN}.pc.in
|
@ -5,10 +5,9 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# 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/"
|
||||
DOWNLOADS="https://dev.gentoo.org/~robbat2/distfiles/${PNV}.tar.bz2"
|
||||
|
||||
SUMMARY="Gentoo Network Interface Management Scripts"
|
||||
LICENCES="BSD-2"
|
||||
@ -34,7 +33,7 @@ src_compile() {
|
||||
|
||||
src_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() {
|
@ -12,7 +12,10 @@ Remmina is a remote desktop client written in GTK+, aiming to be useful for syst
|
||||
HOMEPAGE+=" http://remmina.org/"
|
||||
|
||||
LICENCES="GPL-2"
|
||||
MYOPTIONS="ssh"
|
||||
MYOPTIONS="
|
||||
ssh
|
||||
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
@ -36,6 +39,8 @@ DEPENDENCIES="
|
||||
net-libs/libssh
|
||||
dev-libs/vte:2.91
|
||||
)
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
@ -60,3 +65,4 @@ CMAKE_SRC_CONFIGURE_OPTION_WITHS=(
|
||||
"ssh LIBSSH"
|
||||
"ssh VTE"
|
||||
)
|
||||
|
||||
|
@ -30,6 +30,7 @@ DEPENDENCIES="
|
||||
dev-libs/libevent:=
|
||||
net-libs/libsearpc
|
||||
net-misc/seafile[~${PV}]
|
||||
sys-libs/zlib
|
||||
x11-libs/qtbase:5
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user