parent
8abb488fb7
commit
12fcf59e2a
@ -0,0 +1,204 @@
|
||||
scriptencoding utf-8
|
||||
" ^^ Please leave the above line at the start of the file.
|
||||
|
||||
" Default configuration file for Vim
|
||||
" $Id$
|
||||
|
||||
" Written by Aron Griffis <agriffis@gentoo.org>
|
||||
" Modified by Ryan Phillips <rphillips@gentoo.org>
|
||||
" Modified some more by Ciaran McCreesh <ciaranm@gentoo.org>
|
||||
" Added Redhat's vimrc info by Seemant Kulleen <seemant@gentoo.org>
|
||||
|
||||
" You can override any of these settings on a global basis via the
|
||||
" "/etc/vim/vimrc.local" file, and on a per-user basis via "~/.vimrc". You may
|
||||
" need to create these.
|
||||
|
||||
" {{{ General settings
|
||||
" The following are some sensible defaults for Vim for most users.
|
||||
" We attempt to change as little as possible from Vim's defaults,
|
||||
" deviating only where it makes sense
|
||||
set nocompatible " Use Vim defaults (much better!)
|
||||
set bs=2 " Allow backspacing over everything in insert mode
|
||||
set ai " Always set auto-indenting on
|
||||
set history=50 " keep 50 lines of command history
|
||||
set ruler " Show the cursor position all the time
|
||||
|
||||
set viminfo='20,\"500 " Keep a .viminfo file.
|
||||
|
||||
" Don't use Ex mode, use Q for formatting
|
||||
map Q gq
|
||||
|
||||
" When doing tab completion, give the following files lower priority. You may
|
||||
" wish to set 'wildignore' to completely ignore files, and 'wildmenu' to enable
|
||||
" enhanced tab completion. These can be done in the user vimrc file.
|
||||
set suffixes+=.info,.aux,.log,.dvi,.bbl,.out,.o,.lo
|
||||
|
||||
" When displaying line numbers, don't use an annoyingly wide number column. This
|
||||
" doesn't enable line numbers -- :set number will do that. The value given is a
|
||||
" minimum width to use for the number column, not a fixed size.
|
||||
if v:version >= 700
|
||||
set numberwidth=3
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Modeline settings
|
||||
" We don't allow modelines by default. See bug #14088 and bug #73715.
|
||||
" If you're not concerned about these, you can enable them on a per-user
|
||||
" basis by adding "set modeline" to your ~/.vimrc file.
|
||||
set nomodeline
|
||||
" }}}
|
||||
|
||||
" {{{ Locale settings
|
||||
" Try to come up with some nice sane GUI fonts. Also try to set a sensible
|
||||
" value for fileencodings based upon locale. These can all be overridden in
|
||||
" the user vimrc file.
|
||||
if v:lang =~? "^ko"
|
||||
set fileencodings=euc-kr
|
||||
set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
|
||||
elseif v:lang =~? "^ja_JP"
|
||||
set fileencodings=euc-jp
|
||||
set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
|
||||
elseif v:lang =~? "^zh_TW"
|
||||
set fileencodings=big5
|
||||
set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
|
||||
elseif v:lang =~? "^zh_CN"
|
||||
set fileencodings=gb2312
|
||||
set guifontset=*-r-*
|
||||
endif
|
||||
|
||||
" If we have a BOM, always honour that rather than trying to guess.
|
||||
if &fileencodings !~? "ucs-bom"
|
||||
set fileencodings^=ucs-bom
|
||||
endif
|
||||
|
||||
" Always check for UTF-8 when trying to determine encodings.
|
||||
if &fileencodings !~? "utf-8"
|
||||
" If we have to add this, the default encoding is not Unicode.
|
||||
" We use this fact later to revert to the default encoding in plaintext/empty
|
||||
" files.
|
||||
let g:added_fenc_utf8 = 1
|
||||
set fileencodings+=utf-8
|
||||
endif
|
||||
|
||||
" Make sure we have a sane fallback for encoding detection
|
||||
if &fileencodings !~? "default"
|
||||
set fileencodings+=default
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Syntax highlighting settings
|
||||
" Switch syntax highlighting on, when the terminal has colors
|
||||
" Also switch on highlighting the last used search pattern.
|
||||
if &t_Co > 2 || has("gui_running")
|
||||
syntax on
|
||||
set hlsearch
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Terminal fixes
|
||||
if &term ==? "xterm"
|
||||
set t_Sb=^[4%dm
|
||||
set t_Sf=^[3%dm
|
||||
set ttymouse=xterm2
|
||||
endif
|
||||
|
||||
if &term ==? "gnome" && has("eval")
|
||||
" Set useful keys that vim doesn't discover via termcap but are in the
|
||||
" builtin xterm termcap. See bug #122562. We use exec to avoid having to
|
||||
" include raw escapes in the file.
|
||||
exec "set <C-Left>=\eO5D"
|
||||
exec "set <C-Right>=\eO5C"
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Filetype plugin settings
|
||||
" Enable plugin-provided filetype settings, but only if the ftplugin
|
||||
" directory exists (which it won't on livecds, for example).
|
||||
if isdirectory(expand("$VIMRUNTIME/ftplugin"))
|
||||
filetype plugin on
|
||||
|
||||
" Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided
|
||||
" indent settings. Some people don't like these, so we won't turn them on by
|
||||
" default.
|
||||
" filetype indent on
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Fix &shell, see bug #101665.
|
||||
if "" == &shell
|
||||
if executable("@GENTOO_PORTAGE_EPREFIX@/bin/bash")
|
||||
set shell=@GENTOO_PORTAGE_EPREFIX@/bin/bash
|
||||
elseif executable("@GENTOO_PORTAGE_EPREFIX@/bin/sh")
|
||||
set shell=@GENTOO_PORTAGE_EPREFIX@/bin/sh
|
||||
endif
|
||||
endif
|
||||
"}}}
|
||||
|
||||
" {{{ Our default /bin/sh is bash, not ksh, so syntax highlighting for .sh
|
||||
" files should default to bash. See :help sh-syntax and bug #101819.
|
||||
if has("eval")
|
||||
let is_bash=1
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Autocommands
|
||||
if has("autocmd")
|
||||
|
||||
augroup gentoo
|
||||
au!
|
||||
|
||||
" Gentoo-specific settings for ebuilds. These are the federally-mandated
|
||||
" required tab settings. See the following for more information:
|
||||
" http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml
|
||||
" Note that the rules below are very minimal and don't cover everything.
|
||||
" Better to emerge app-vim/gentoo-syntax, which provides full syntax,
|
||||
" filetype and indent settings for all things Gentoo.
|
||||
au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh
|
||||
au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab
|
||||
|
||||
" In text files, limit the width of text to 78 characters, but be careful
|
||||
" that we don't override the user's setting.
|
||||
autocmd BufNewFile,BufRead *.txt
|
||||
\ if &tw == 0 && ! exists("g:leave_my_textwidth_alone") |
|
||||
\ setlocal textwidth=78 |
|
||||
\ endif
|
||||
|
||||
" When editing a file, always jump to the last cursor position
|
||||
autocmd BufReadPost *
|
||||
\ if ! exists("g:leave_my_cursor_position_alone") |
|
||||
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
||||
\ exe "normal g'\"" |
|
||||
\ endif |
|
||||
\ endif
|
||||
|
||||
" When editing a crontab file, set backupcopy to yes rather than auto. See
|
||||
" :help crontab and bug #53437.
|
||||
autocmd FileType crontab set backupcopy=yes
|
||||
|
||||
" If we previously detected that the default encoding is not UTF-8
|
||||
" (g:added_fenc_utf8), assume that a file with only ASCII characters (or no
|
||||
" characters at all) isn't a Unicode file, but is in the default encoding.
|
||||
" Except of course if a byte-order mark is in effect.
|
||||
autocmd BufReadPost *
|
||||
\ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" &&
|
||||
\ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable |
|
||||
\ set fileencoding= |
|
||||
\ endif
|
||||
|
||||
augroup END
|
||||
|
||||
endif " has("autocmd")
|
||||
" }}}
|
||||
|
||||
" We don't want VIM to load their own built-in defaults, preferring ours here
|
||||
" instead:
|
||||
let g:skip_defaults_vim = 1
|
||||
|
||||
" {{{ vimrc.local
|
||||
if filereadable("@GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local")
|
||||
source @GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" vim: set fenc=utf-8 tw=80 sw=2 sts=2 et foldmethod=marker :
|
||||
|
@ -0,0 +1,218 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
VIM_VERSION="8.0"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||
else
|
||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim and gvim shared files"
|
||||
HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
# people with broken alphabets run into trouble. bug 82186.
|
||||
unset LANG LC_ALL
|
||||
export LC_COLLATE="C"
|
||||
|
||||
# Gnome sandbox silliness. bug #114475.
|
||||
mkdir -p "${T}"/home
|
||||
export HOME="${T}"/home
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
eapply "${WORKDIR}"/patches
|
||||
fi
|
||||
|
||||
# Fixup a script to use awk instead of nawk
|
||||
sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
|
||||
|| die "mve.awk sed failed"
|
||||
|
||||
# Read vimrc and gvimrc from /etc/vim
|
||||
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||
|
||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||
# Hopefully this pattern won't break for a while at least.
|
||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||
"${S}"/runtime/doc/syntax.txt \
|
||||
"${S}"/runtime/doc/tagsrch.txt \
|
||||
"${S}"/runtime/doc/usr_29.txt \
|
||||
"${S}"/runtime/menu.vim \
|
||||
"${S}"/src/configure.in || die 'sed failed'
|
||||
|
||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
||||
sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
|
||||
|
||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||
# correctly. To avoid some really entertaining error messages about stuff
|
||||
# which isn't even in the source file being invalid, we'll do some trickery
|
||||
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||
find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]] ; then
|
||||
sed -i -e \
|
||||
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||
"${S}"/src/po/Makefile
|
||||
fi
|
||||
|
||||
if version_is_at_least 7.3.122 ; then
|
||||
cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
|
||||
fi
|
||||
|
||||
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||
if version_is_at_least 7.3 ; then
|
||||
sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
||||
# Bug 57859 suggests that we want to do this for all archs
|
||||
filter-flags -funroll-all-loops
|
||||
|
||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||
# everyone since previous flag filtering bugs have turned out to affect
|
||||
# multiple archs...
|
||||
replace-flags -O3 -O2
|
||||
|
||||
# Fix bug 18245: Prevent "make" from the following chain:
|
||||
# (1) Notice configure.in is newer than auto/configure
|
||||
# (2) Rebuild auto/configure
|
||||
# (3) Notice auto/configure is newer than auto/config.mk
|
||||
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||
rm -f src/auto/configure
|
||||
emake -j1 -C src autoconf
|
||||
|
||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||
# things are for ppc64, see bug 86433.
|
||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
|
||||
[[ -e ${file} ]] && addwrite $file
|
||||
done
|
||||
|
||||
# Let Portage do the stripping. Some people like that.
|
||||
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||
|
||||
# Keep Gentoo Prefix env contained within the EPREFIX
|
||||
use prefix && myconf+=" --without-local-dir"
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
--enable-gui=no \
|
||||
--without-x \
|
||||
--disable-darwin \
|
||||
--disable-perlinterp \
|
||||
--disable-pythoninterp \
|
||||
--disable-rubyinterp \
|
||||
--disable-gpm \
|
||||
--disable-selinux \
|
||||
$(use_enable nls) \
|
||||
$(use_enable acl) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake tools
|
||||
}
|
||||
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dodir /usr/{bin,share/{man/man1,vim}}
|
||||
emake -C src \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
DESTDIR="${D}" \
|
||||
BINDIR="${EPREFIX}"/usr/bin \
|
||||
MANDIR="${EPREFIX}"/usr/share/man \
|
||||
DATADIR="${EPREFIX}"/usr/share
|
||||
|
||||
keepdir ${vimfiles}/keymap
|
||||
|
||||
# default vimrc is installed by vim-core since it applies to
|
||||
# both vim and gvim
|
||||
insinto /etc/vim/
|
||||
newins "${FILESDIR}"/vimrc-r5 vimrc
|
||||
eprefixify "${ED}"/etc/vim/vimrc
|
||||
|
||||
if use minimal ; then
|
||||
# To save space, install only a subset of the files.
|
||||
# Helps minimalize the livecd, bug 65144.
|
||||
eshopts_push -s extglob
|
||||
|
||||
rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
|
||||
rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
|
||||
rm "${ED}"/usr/bin/vimtutor
|
||||
|
||||
local keep_colors="default"
|
||||
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||
|
||||
local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
|
||||
# tinkering with the next line might make bad things happen ...
|
||||
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||
|
||||
eshopts_pop
|
||||
fi
|
||||
|
||||
# These files might have slight security issues, so we won't
|
||||
# install them. See bug #77841. We don't mind if these don't
|
||||
# exist.
|
||||
rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
|
||||
|
||||
newbashcomp "${FILESDIR}"/xxd-completion xxd
|
||||
|
||||
# We shouldn't be installing the ex or view man page symlinks, as they
|
||||
# are managed by eselect-vi
|
||||
rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST adaptive-wrap-0.5.el 6111 SHA256 fefa54ba670b84360d2602fae477642b27ca4c2312983a7d24b4e6bcd1ad2f3b SHA512 0ffc52ad4343b57376dfb1ef09c7cc31d5933568ed614afc7d6d104fcb2ddf1eb69a69d4b04f5f97b726cc66ddacfc8d56ff10e447cf24f45227ee568adbcb95 WHIRLPOOL 9b4c64e26da9320a13cd7e0e77d10505c8aec60200e3e26c73367827fa1320ea5eb791834b3264f77998c5e29f07fe6c0f66ee7f8cfa89e75d5f63d19ba8a4d4
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Smart line-wrapping with wrap-prefix"
|
||||
HOMEPAGE="https://elpa.gnu.org/packages/adaptive-wrap.html"
|
||||
SRC_URI="https://elpa.gnu.org/packages/${P}.el"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
S="${WORKDIR}"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_unpack() {
|
||||
cp "${DISTDIR}"/${P}.el ${PN}.el || die
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
|
||||
(autoload 'adaptive-wrap-prefix-mode "adaptive-wrap"
|
||||
"Wrap the buffer text with adaptive filling." t nil)
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>victor@enise.org</email>
|
||||
<name>Victor Gaydov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>gnu-emacs@gentoo.org</email>
|
||||
<name>Gentoo GNU Emacs project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +1 @@
|
||||
DIST quickfuzz-0.1_p20160909.tar.bz2 32556776 SHA256 a0ea0b0b46e8b123afa0f3b71ceaf44b233185dd8d310e9472055aea3abe8442 SHA512 4408e1a06c178c5963a8897204615e96dfce59e98a4403e20b364d9b5200cb690209e85a1542ecd3d562f39c6117ae022877b2cea46a6be0ca1bde5a7c72800c WHIRLPOOL f923858987058b96f06c07cf3e18908dc4a156a61d1cbb91859af63b78014ad573aa3ff818c9375b3a971ba9926d070f58a5d9d2b4d8ff3d68c849818e7cbe7d
|
||||
DIST quickfuzz-0.1_p20160920.tar.gz 1073894 SHA256 141d50c58f104ff9a35c649a7fa21fb18b4501a81bed1e56551067af8f7fedb7 SHA512 52068c35cef580e4719f1b7128ae069a80581f176adc4a2abbbdfc7fc48849e4ff1c228d342b7eaddc780e5b50eabb285b398c334753fca0dc70d3d3ec9f55f8 WHIRLPOOL a60fadaeb3e5e1ac8664865ea797dafe539e053370a30973a0ab785ee3401d6c5d5e40ecdef7cf85a1842f190bc0f7770cf9f0f1ef8c659444ad815e878d634a
|
||||
|
@ -1,23 +0,0 @@
|
||||
diff --git a/src/Misc.hs b/src/Misc.hs
|
||||
index 1aa0699..c514ae9 100644
|
||||
--- a/src/Misc.hs
|
||||
+++ b/src/Misc.hs
|
||||
@@ -1,9 +1,12 @@
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module Misc where
|
||||
|
||||
import Test.QuickCheck
|
||||
import Data.Map
|
||||
import Data.Monoid
|
||||
|
||||
+#if ! MIN_VERSION_QuickCheck(2,9,0)
|
||||
+
|
||||
instance Arbitrary a => Arbitrary (Last a) where
|
||||
arbitrary = do
|
||||
ga <- arbitrary
|
||||
@@ -43,3 +46,5 @@ instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbit
|
||||
x6 <- arbitrary
|
||||
x7 <- arbitrary
|
||||
return (x1,x2,x3,x4,x5,x6,x7)
|
||||
+
|
||||
+#endif
|
@ -1,9 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index ad1782c..2f39336 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -82,3 +82,3 @@ simpleConView tyName c =
|
||||
ForallC _ _ innerCon -> simpleConView tyName innerCon
|
||||
-
|
||||
+ _ -> error $ "simpleConView: failed on " ++ show c
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index 2f39336..7911bc3 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -82,2 +82,7 @@ simpleConView tyName c =
|
||||
ForallC _ _ innerCon -> simpleConView tyName innerCon
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ -- handling: GadtC [Codec.Picture.Metadata.Gamma] [] (AppT (ConT Codec.Picture.Metadata.Keys) (ConT GHC.Types.Double))
|
||||
+ GadtC [n] sts _ -> let ts = map snd sts
|
||||
+ in SimpleCon n (count ts) ts
|
||||
+#endif
|
||||
_ -> error $ "simpleConView: failed on " ++ show c
|
@ -1,34 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index eb969a5..ad1782c 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE ViewPatterns #-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module Megadeth.Prim where
|
||||
@@ -137,3 +138,7 @@ getDeps t ban = do
|
||||
case tip of
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (DataD _ _ _ _mkind constructors _) -> do
|
||||
+#else
|
||||
TyConI (DataD _ _ _ constructors _) -> do
|
||||
+#endif
|
||||
let innerTypes = nub $ concat [ findLeafTypes ty | (simpleConView t -> SimpleCon _ _ tys) <- constructors, ty <- tys, not (isVarT ty) ]
|
||||
@@ -146,3 +151,7 @@ getDeps t ban = do
|
||||
mapM_ getDeps' hof
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (NewtypeD _ nm _ _mkind constructor _) -> do
|
||||
+#else
|
||||
TyConI (NewtypeD _ nm _ constructor _) -> do
|
||||
+#endif
|
||||
let (SimpleCon _ 0 ts )= simpleConView nm constructor
|
||||
@@ -187,4 +196,9 @@ isinsName className n = do
|
||||
case inf of
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (DataD _ _ preq _mkind _ _) -> doPreq className n preq
|
||||
+ TyConI (NewtypeD _ _ preq _mkind _ _) -> doPreq className n preq
|
||||
+#else
|
||||
TyConI (DataD _ _ preq _ _) -> doPreq className n preq
|
||||
TyConI (NewtypeD _ _ preq _ _) -> doPreq className n preq
|
||||
+#endif
|
||||
TyConI (TySynD _ preq _ ) -> doPreq className n preq
|
@ -1,22 +0,0 @@
|
||||
diff --git a/src/DeriveArbitrary.hs b/src/DeriveArbitrary.hs
|
||||
index d42b896..fc94945 100644
|
||||
--- a/src/DeriveArbitrary.hs
|
||||
+++ b/src/DeriveArbitrary.hs
|
||||
@@ -26,7 +26,7 @@ import Data.List.Split
|
||||
import Data.Maybe
|
||||
-- Gen
|
||||
import Language.Haskell.TH
|
||||
-import Language.Haskell.TH.Syntax
|
||||
+import Language.Haskell.TH.Syntax as TH
|
||||
import Test.QuickCheck
|
||||
import GHC.Exts
|
||||
import GHC.Types
|
||||
@@ -38,7 +38,7 @@ import Control.Applicative
|
||||
import Data.List
|
||||
|
||||
-- | Build the arbitrary function with makeArbs
|
||||
-chooseExpQ :: Name -> Name -> Name -> Integer -> Type -> ExpQ
|
||||
+chooseExpQ :: Name -> Name -> Name -> Integer -> TH.Type -> ExpQ
|
||||
chooseExpQ g n t bf (AppT ListT ty) = [| listOf $ resize ($(varE n) `div` 10) arbitrary |]
|
||||
chooseExpQ g n t bf ty | headOf ty /= t = [| resize (max 0 ($(varE n) - 1)) arbitrary |]
|
||||
chooseExpQ g n t bf ty =
|
@ -1,87 +0,0 @@
|
||||
diff --git a/src/DeriveArbitrary.hs b/src/DeriveArbitrary.hs
|
||||
index fc94945..6f2d77f 100644
|
||||
--- a/src/DeriveArbitrary.hs
|
||||
+++ b/src/DeriveArbitrary.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module DeriveArbitrary (
|
||||
@@ -39,2 +40,8 @@ import Data.List
|
||||
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
-- | Build the arbitrary function with makeArbs
|
||||
@@ -80,3 +87,3 @@ deriveArbitrary t = do
|
||||
case inf of
|
||||
- TyConI (DataD _ _ params constructors _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) -> do
|
||||
let ns = map varT $ paramNames params
|
||||
@@ -111,3 +118,3 @@ deriveArbitrary t = do
|
||||
where go n = $(gos 'go 'n)|]
|
||||
- TyConI (NewtypeD _ _ params con _) -> do
|
||||
+ TyConI (NewtypeD _ _ params TH211MBKIND con _) -> do
|
||||
let ns = map varT $ paramNames params
|
||||
@@ -281,3 +288,3 @@ customG name = do
|
||||
|
||||
- TyConI (DataD _ _ params constructors _) ->
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) ->
|
||||
let fnm = mkName "prob_gen" -- "customGen_" ++ (map (\x -> if x == '.' then '_' else
|
||||
diff --git a/src/DeriveFixable.hs b/src/DeriveFixable.hs
|
||||
index ec8b8be..83593e6 100644
|
||||
--- a/src/DeriveFixable.hs
|
||||
+++ b/src/DeriveFixable.hs
|
||||
@@ -1,2 +1,3 @@
|
||||
{-# Language TemplateHaskell, ConstraintKinds, FlexibleInstances, FlexibleContexts, IncoherentInstances, MultiParamTypeClasses #-}
|
||||
+{-# Language CPP #-}
|
||||
|
||||
@@ -15,2 +16,8 @@ import Control.Monad.Trans.State
|
||||
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
--The state is composed of identifiers
|
||||
@@ -147,3 +154,3 @@ mkFix i v a t = do ti <- reify t
|
||||
case ti of
|
||||
- TyConI (DataD _ _ params tcons _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND tcons _) -> do
|
||||
let cstuff = map getStuff tcons
|
||||
@@ -155,3 +162,3 @@ mkFix i v a t = do ti <- reify t
|
||||
case ii of
|
||||
- TyConI (DataD _ _ ip _ _) -> do
|
||||
+ TyConI (DataD _ _ ip TH211MBKIND _ _) -> do
|
||||
let ivars = map (varT . getParName) ip
|
||||
@@ -180,3 +187,3 @@ mkFix i v a t = do ti <- reify t
|
||||
gg = $(mkFixBody matches) |]
|
||||
- TyConI (NewtypeD _ _ ip _ _) -> do
|
||||
+ TyConI (NewtypeD _ _ ip TH211MBKIND _ _) -> do
|
||||
let ivars = map (varT . getParName) ip
|
||||
diff --git a/src/DeriveMutation.hs b/src/DeriveMutation.hs
|
||||
index ae58345..7494c50 100644
|
||||
--- a/src/DeriveMutation.hs
|
||||
+++ b/src/DeriveMutation.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE FlexibleInstances,UndecidableInstances#-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module DeriveMutation where
|
||||
@@ -17,2 +18,9 @@ import Data.List
|
||||
import Megadeth.Prim
|
||||
+
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
--import Mutation
|
||||
@@ -100,3 +108,3 @@ devMutation name customGen = do
|
||||
TyConI (TySynD _ _ ty) -> return [] -- devMutation (headOf ty) Nothing
|
||||
- TyConI (DataD _ _ params constructors _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) -> do
|
||||
let fnm = mkName $ "mutt" -- ++ (showName name)
|
@ -1,11 +0,0 @@
|
||||
diff --git a/bundled/ttasm/TTFInstructions.hs b/bundled/ttasm/TTFInstructions.hs
|
||||
index 6eb9378..8db99cd 100644
|
||||
--- a/bundled/ttasm/TTFInstructions.hs
|
||||
+++ b/bundled/ttasm/TTFInstructions.hs
|
||||
@@ -128,4 +128,4 @@ tableChecksum table =
|
||||
let tc = do
|
||||
- e <- remaining
|
||||
- if e < 4
|
||||
+ e <- remaining
|
||||
+ if e < 4
|
||||
then return 0
|
@ -1,9 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index ad1782c..2f39336 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -82,3 +82,3 @@ simpleConView tyName c =
|
||||
ForallC _ _ innerCon -> simpleConView tyName innerCon
|
||||
-
|
||||
+ _ -> error $ "simpleConView: failed on " ++ show c
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index 2f39336..7911bc3 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -82,2 +82,7 @@ simpleConView tyName c =
|
||||
ForallC _ _ innerCon -> simpleConView tyName innerCon
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ -- handling: GadtC [Codec.Picture.Metadata.Gamma] [] (AppT (ConT Codec.Picture.Metadata.Keys) (ConT GHC.Types.Double))
|
||||
+ GadtC [n] sts _ -> let ts = map snd sts
|
||||
+ in SimpleCon n (count ts) ts
|
||||
+#endif
|
||||
_ -> error $ "simpleConView: failed on " ++ show c
|
@ -1,34 +0,0 @@
|
||||
diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
|
||||
index eb969a5..ad1782c 100644
|
||||
--- a/bundled/megadeth/Megadeth/Prim.hs
|
||||
+++ b/bundled/megadeth/Megadeth/Prim.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE ViewPatterns #-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module Megadeth.Prim where
|
||||
@@ -137,3 +138,7 @@ getDeps t ban = do
|
||||
case tip of
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (DataD _ _ _ _mkind constructors _) -> do
|
||||
+#else
|
||||
TyConI (DataD _ _ _ constructors _) -> do
|
||||
+#endif
|
||||
let innerTypes = nub $ concat [ findLeafTypes ty | (simpleConView t -> SimpleCon _ _ tys) <- constructors, ty <- tys, not (isVarT ty) ]
|
||||
@@ -146,3 +151,7 @@ getDeps t ban = do
|
||||
mapM_ getDeps' hof
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (NewtypeD _ nm _ _mkind constructor _) -> do
|
||||
+#else
|
||||
TyConI (NewtypeD _ nm _ constructor _) -> do
|
||||
+#endif
|
||||
let (SimpleCon _ 0 ts )= simpleConView nm constructor
|
||||
@@ -187,4 +196,9 @@ isinsName className n = do
|
||||
case inf of
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+ TyConI (DataD _ _ preq _mkind _ _) -> doPreq className n preq
|
||||
+ TyConI (NewtypeD _ _ preq _mkind _ _) -> doPreq className n preq
|
||||
+#else
|
||||
TyConI (DataD _ _ preq _ _) -> doPreq className n preq
|
||||
TyConI (NewtypeD _ _ preq _ _) -> doPreq className n preq
|
||||
+#endif
|
||||
TyConI (TySynD _ preq _ ) -> doPreq className n preq
|
@ -1,22 +0,0 @@
|
||||
diff --git a/src/DeriveArbitrary.hs b/src/DeriveArbitrary.hs
|
||||
index d42b896..fc94945 100644
|
||||
--- a/src/DeriveArbitrary.hs
|
||||
+++ b/src/DeriveArbitrary.hs
|
||||
@@ -26,7 +26,7 @@ import Data.List.Split
|
||||
import Data.Maybe
|
||||
-- Gen
|
||||
import Language.Haskell.TH
|
||||
-import Language.Haskell.TH.Syntax
|
||||
+import Language.Haskell.TH.Syntax as TH
|
||||
import Test.QuickCheck
|
||||
import GHC.Exts
|
||||
import GHC.Types
|
||||
@@ -38,7 +38,7 @@ import Control.Applicative
|
||||
import Data.List
|
||||
|
||||
-- | Build the arbitrary function with makeArbs
|
||||
-chooseExpQ :: Name -> Name -> Name -> Integer -> Type -> ExpQ
|
||||
+chooseExpQ :: Name -> Name -> Name -> Integer -> TH.Type -> ExpQ
|
||||
chooseExpQ g n t bf (AppT ListT ty) = [| listOf $ resize ($(varE n) `div` 10) arbitrary |]
|
||||
chooseExpQ g n t bf ty | headOf ty /= t = [| resize (max 0 ($(varE n) - 1)) arbitrary |]
|
||||
chooseExpQ g n t bf ty =
|
@ -1,87 +0,0 @@
|
||||
diff --git a/src/DeriveArbitrary.hs b/src/DeriveArbitrary.hs
|
||||
index fc94945..6f2d77f 100644
|
||||
--- a/src/DeriveArbitrary.hs
|
||||
+++ b/src/DeriveArbitrary.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module DeriveArbitrary (
|
||||
@@ -39,2 +40,8 @@ import Data.List
|
||||
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
-- | Build the arbitrary function with makeArbs
|
||||
@@ -80,3 +87,3 @@ deriveArbitrary t = do
|
||||
case inf of
|
||||
- TyConI (DataD _ _ params constructors _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) -> do
|
||||
let ns = map varT $ paramNames params
|
||||
@@ -111,3 +118,3 @@ deriveArbitrary t = do
|
||||
where go n = $(gos 'go 'n)|]
|
||||
- TyConI (NewtypeD _ _ params con _) -> do
|
||||
+ TyConI (NewtypeD _ _ params TH211MBKIND con _) -> do
|
||||
let ns = map varT $ paramNames params
|
||||
@@ -281,3 +288,3 @@ customG name = do
|
||||
|
||||
- TyConI (DataD _ _ params constructors _) ->
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) ->
|
||||
let fnm = mkName "prob_gen" -- "customGen_" ++ (map (\x -> if x == '.' then '_' else
|
||||
diff --git a/src/DeriveFixable.hs b/src/DeriveFixable.hs
|
||||
index ec8b8be..83593e6 100644
|
||||
--- a/src/DeriveFixable.hs
|
||||
+++ b/src/DeriveFixable.hs
|
||||
@@ -1,2 +1,3 @@
|
||||
{-# Language TemplateHaskell, ConstraintKinds, FlexibleInstances, FlexibleContexts, IncoherentInstances, MultiParamTypeClasses #-}
|
||||
+{-# Language CPP #-}
|
||||
|
||||
@@ -15,2 +16,8 @@ import Control.Monad.Trans.State
|
||||
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
--The state is composed of identifiers
|
||||
@@ -147,3 +154,3 @@ mkFix i v a t = do ti <- reify t
|
||||
case ti of
|
||||
- TyConI (DataD _ _ params tcons _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND tcons _) -> do
|
||||
let cstuff = map getStuff tcons
|
||||
@@ -155,3 +162,3 @@ mkFix i v a t = do ti <- reify t
|
||||
case ii of
|
||||
- TyConI (DataD _ _ ip _ _) -> do
|
||||
+ TyConI (DataD _ _ ip TH211MBKIND _ _) -> do
|
||||
let ivars = map (varT . getParName) ip
|
||||
@@ -180,3 +187,3 @@ mkFix i v a t = do ti <- reify t
|
||||
gg = $(mkFixBody matches) |]
|
||||
- TyConI (NewtypeD _ _ ip _ _) -> do
|
||||
+ TyConI (NewtypeD _ _ ip TH211MBKIND _ _) -> do
|
||||
let ivars = map (varT . getParName) ip
|
||||
diff --git a/src/DeriveMutation.hs b/src/DeriveMutation.hs
|
||||
index ae58345..7494c50 100644
|
||||
--- a/src/DeriveMutation.hs
|
||||
+++ b/src/DeriveMutation.hs
|
||||
@@ -3,2 +3,3 @@
|
||||
{-# LANGUAGE FlexibleInstances,UndecidableInstances#-}
|
||||
+{-# LANGUAGE CPP #-}
|
||||
module DeriveMutation where
|
||||
@@ -17,2 +18,9 @@ import Data.List
|
||||
import Megadeth.Prim
|
||||
+
|
||||
+#if MIN_VERSION_template_haskell(2,11,0)
|
||||
+# define TH211MBKIND _maybe_kind
|
||||
+#else
|
||||
+# define TH211MBKIND
|
||||
+#endif
|
||||
+
|
||||
--import Mutation
|
||||
@@ -100,3 +108,3 @@ devMutation name customGen = do
|
||||
TyConI (TySynD _ _ ty) -> return [] -- devMutation (headOf ty) Nothing
|
||||
- TyConI (DataD _ _ params constructors _) -> do
|
||||
+ TyConI (DataD _ _ params TH211MBKIND constructors _) -> do
|
||||
let fnm = mkName $ "mutt" -- ++ (showName name)
|
@ -1,11 +0,0 @@
|
||||
diff --git a/bundled/ttasm/TTFInstructions.hs b/bundled/ttasm/TTFInstructions.hs
|
||||
index 6eb9378..8db99cd 100644
|
||||
--- a/bundled/ttasm/TTFInstructions.hs
|
||||
+++ b/bundled/ttasm/TTFInstructions.hs
|
||||
@@ -128,4 +128,4 @@ tableChecksum table =
|
||||
let tc = do
|
||||
- e <- remaining
|
||||
- if e < 4
|
||||
+ e <- remaining
|
||||
+ if e < 4
|
||||
then return 0
|
@ -0,0 +1,254 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.3-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
|
||||
[[ ${plevel} -eq 0 ]] && return 1
|
||||
eval set -- {1..${plevel}}
|
||||
set -- $(printf "${pn}${pv/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
|
||||
printf "${u}/${pn}-${pv}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# The version of readline this bash normally ships with.
|
||||
READLINE_VER="6.3"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
|
||||
[[ ${PV} == *_rc* ]] && SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0=
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER}:0= )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
# we only need yacc when the .y files get patched (bash42-005)
|
||||
DEPEND+=" virtual/yacc"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.3-mapfile-improper-array-name-validation.patch
|
||||
"${FILESDIR}"/${PN}-4.3-arrayfunc.patch
|
||||
"${FILESDIR}"/${PN}-4.3-protos.patch
|
||||
# CVE-2016-0634 / bug #594496
|
||||
"${FILESDIR}"/${PN}-4.3-prompt-string-comsub.patch
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if is-flag -malign-double ; then #7332
|
||||
eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
|
||||
eerror "as it breaks LFS (struct stat64) on x86."
|
||||
die "remove -malign-double from your CFLAGS mr ricer"
|
||||
fi
|
||||
if use bashlogger ; then
|
||||
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
|
||||
ewarn "This will log ALL output you enter into the shell, you have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
|
||||
# Clean out local libs so we know we use system ones w/releases.
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
rm -rf lib/{readline,termcap}/*
|
||||
touch lib/{readline,termcap}/Makefile.in # for config.status
|
||||
sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
|
||||
fi
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||
-DSSH_SOURCE_BASHRC \
|
||||
-DUSE_MKTEMP -DUSE_MKSTEMP \
|
||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to us with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf+=( --disable-nls )
|
||||
|
||||
# Historically, we always used the builtin readline, but since
|
||||
# our handling of SONAME upgrades has gotten much more stable
|
||||
# in the PM (and the readline ebuild itself preserves the old
|
||||
# libs during upgrades), linking against the system copy should
|
||||
# be safe.
|
||||
# Exact cached version here doesn't really matter as long as it
|
||||
# is at least what's in the DEPEND up above.
|
||||
export ac_cv_rl_version=${READLINE_VER}
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses. For the most part, ncurses
|
||||
# is here because readline needs it. But bash itself calls
|
||||
# ncurses in one or two small places :(.
|
||||
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Use system readline only with released versions.
|
||||
myconf+=( --with-installed-readline=. )
|
||||
fi
|
||||
|
||||
if use plugins; then
|
||||
append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
else
|
||||
# Disable the plugins logic by hand since bash doesn't
|
||||
# provide a way of doing it.
|
||||
export ac_cv_func_dl{close,open,sym}=no \
|
||||
ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no
|
||||
sed -i \
|
||||
-e '/LOCAL_LDFLAGS=/s:-rdynamic::' \
|
||||
configure || die
|
||||
fi
|
||||
tc-export AR #444070
|
||||
econf \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--htmldir='$(docdir)/html' \
|
||||
--with-curses \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable readline history) \
|
||||
$(use_enable readline bang-history) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use plugins ; then
|
||||
emake -C examples/loadables all others
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d f
|
||||
|
||||
default
|
||||
|
||||
dodir /bin
|
||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||
dosym bash /bin/rbash
|
||||
|
||||
insinto /etc/bash
|
||||
doins "${FILESDIR}"/bash_logout
|
||||
doins "${FILESDIR}"/bashrc
|
||||
keepdir /etc/bash/bashrc.d
|
||||
insinto /etc/skel
|
||||
for f in bash{_logout,_profile,rc} ; do
|
||||
newins "${FILESDIR}"/dot-${f} .${f}
|
||||
done
|
||||
|
||||
local sed_args=(
|
||||
-e "s:#${USERLAND}#@::"
|
||||
-e '/#@/d'
|
||||
)
|
||||
if ! use readline ; then
|
||||
sed_args+=( #432338
|
||||
-e '/^shopt -s histappend/s:^:#:'
|
||||
-e 's:use_color=true:use_color=false:'
|
||||
)
|
||||
fi
|
||||
sed -i \
|
||||
"${sed_args[@]}" \
|
||||
"${ED}"/etc/skel/.bashrc \
|
||||
"${ED}"/etc/bash/bashrc || die
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
|
||||
insinto /usr/include/bash-plugins
|
||||
doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h}
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
for d in examples/{functions,misc,scripts,startup-files} ; do
|
||||
exeinto /usr/share/doc/${PF}/${d}
|
||||
insinto /usr/share/doc/${PF}/${d}
|
||||
for f in ${d}/* ; do
|
||||
if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
|
||||
doexe ${f}
|
||||
else
|
||||
doins ${f}
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/*.1
|
||||
newdoc CWRU/changelog ChangeLog
|
||||
dosym bash.info /usr/share/info/bashref.info
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
|
||||
mkdir -p "${EROOT}"/etc/bash
|
||||
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
|
||||
fi
|
||||
|
||||
if [[ -L ${EROOT}/bin/sh ]] ; then
|
||||
# rewrite the symlink to ensure that its mtime changes. having /bin/sh
|
||||
# missing even temporarily causes a fatal error with paludis.
|
||||
local target=$(readlink "${EROOT}"/bin/sh)
|
||||
local tmp=$(emktemp "${EROOT}"/bin)
|
||||
ln -sf "${target}" "${tmp}"
|
||||
mv -f "${tmp}" "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /bin/sh does not exist, provide it
|
||||
if [[ ! -e ${EROOT}/bin/sh ]] ; then
|
||||
ln -sf bash "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
http://seclists.org/oss-sec/2016/q3/538
|
||||
https://bugs.gentoo.org/594496
|
||||
|
||||
*** ../bash-4.3-patched/parse.y 2015-08-13 15:11:54.000000000 -0400
|
||||
--- parse.y 2016-03-07 15:44:14.000000000 -0500
|
||||
***************
|
||||
*** 5259,5263 ****
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
! char *temp, octal_string[4];
|
||||
struct tm *tm;
|
||||
time_t the_time;
|
||||
--- 5259,5263 ----
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
! char *temp, *t_host, octal_string[4];
|
||||
struct tm *tm;
|
||||
time_t the_time;
|
||||
***************
|
||||
*** 5407,5411 ****
|
||||
case 's':
|
||||
temp = base_pathname (shell_name);
|
||||
! temp = savestring (temp);
|
||||
goto add_string;
|
||||
|
||||
--- 5407,5415 ----
|
||||
case 's':
|
||||
temp = base_pathname (shell_name);
|
||||
! /* Try to quote anything the user can set in the file system */
|
||||
! if (promptvars || posixly_correct)
|
||||
! temp = sh_backslash_quote_for_double_quotes (temp);
|
||||
! else
|
||||
! temp = savestring (temp);
|
||||
goto add_string;
|
||||
|
||||
***************
|
||||
*** 5497,5503 ****
|
||||
case 'h':
|
||||
case 'H':
|
||||
! temp = savestring (current_host_name);
|
||||
! if (c == 'h' && (t = (char *)strchr (temp, '.')))
|
||||
*t = '\0';
|
||||
goto add_string;
|
||||
|
||||
--- 5501,5515 ----
|
||||
case 'h':
|
||||
case 'H':
|
||||
! t_host = savestring (current_host_name);
|
||||
! if (c == 'h' && (t = (char *)strchr (t_host, '.')))
|
||||
*t = '\0';
|
||||
+ if (promptvars || posixly_correct)
|
||||
+ /* Make sure that expand_prompt_string is called with a
|
||||
+ second argument of Q_DOUBLE_QUOTES if we use this
|
||||
+ function here. */
|
||||
+ temp = sh_backslash_quote_for_double_quotes (t_host);
|
||||
+ else
|
||||
+ temp = savestring (t_host);
|
||||
+ free (t_host);
|
||||
goto add_string;
|
||||
|
||||
*** ../bash-4.3-patched/y.tab.c 2015-08-13 15:11:54.000000000 -0400
|
||||
--- y.tab.c 2016-03-07 15:44:14.000000000 -0500
|
||||
***************
|
||||
*** 7571,7575 ****
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
! char *temp, octal_string[4];
|
||||
struct tm *tm;
|
||||
time_t the_time;
|
||||
--- 7571,7575 ----
|
||||
int result_size, result_index;
|
||||
int c, n, i;
|
||||
! char *temp, *t_host, octal_string[4];
|
||||
struct tm *tm;
|
||||
time_t the_time;
|
||||
***************
|
||||
*** 7719,7723 ****
|
||||
case 's':
|
||||
temp = base_pathname (shell_name);
|
||||
! temp = savestring (temp);
|
||||
goto add_string;
|
||||
|
||||
--- 7719,7727 ----
|
||||
case 's':
|
||||
temp = base_pathname (shell_name);
|
||||
! /* Try to quote anything the user can set in the file system */
|
||||
! if (promptvars || posixly_correct)
|
||||
! temp = sh_backslash_quote_for_double_quotes (temp);
|
||||
! else
|
||||
! temp = savestring (temp);
|
||||
goto add_string;
|
||||
|
||||
***************
|
||||
*** 7809,7815 ****
|
||||
case 'h':
|
||||
case 'H':
|
||||
! temp = savestring (current_host_name);
|
||||
! if (c == 'h' && (t = (char *)strchr (temp, '.')))
|
||||
*t = '\0';
|
||||
goto add_string;
|
||||
|
||||
--- 7813,7827 ----
|
||||
case 'h':
|
||||
case 'H':
|
||||
! t_host = savestring (current_host_name);
|
||||
! if (c == 'h' && (t = (char *)strchr (t_host, '.')))
|
||||
*t = '\0';
|
||||
+ if (promptvars || posixly_correct)
|
||||
+ /* Make sure that expand_prompt_string is called with a
|
||||
+ second argument of Q_DOUBLE_QUOTES if we use this
|
||||
+ function here. */
|
||||
+ temp = sh_backslash_quote_for_double_quotes (t_host);
|
||||
+ else
|
||||
+ temp = savestring (t_host);
|
||||
+ free (t_host);
|
||||
goto add_string;
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
DIST jopt-simple-4.7.tar.gz 109206 SHA256 082aae8f1d5f6169017fed90aceee41e2b83c3716aeebf877cbe6bb9b9c0a13b SHA512 02d89cfd5ff4e48c6968a99448f0b378c6c8ce1a035d1c815f4489e2efa24ad159f5013705716b6bdea905e3c963664e1aafb18b308e661a5402b42a0eb271ae WHIRLPOOL f0be49cce81c25ec2e825a8256c273decfbe89f5a46a988aff9807f29cd63593159347ed2c1757ad7e02521a55fdf6a1e0a9291065f7364e6dd4c6f691e1c868
|
||||
DIST jopt-simple-4.8.tar.gz 110173 SHA256 21adbb508568d244a827999c1ab1567a9021febad0566b0d0464de262859fed9 SHA512 cc5360cf97446117849f93397c41734a9a001ea623e9ea4223b8d760f36897c62103ab9d2dabfcf0fa032db8e33f7bc51759d626d7bd76dda3adc61fa6622984 WHIRLPOOL cb0e88abcf34a77f617bacc39a9152dafcc04ff9723cfb78bc454250acd4c7c78717c9772bb809e79bfd5da8ff032b323dbeb9d158ea79e53337db400a872050
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A Java library for parsing command line options"
|
||||
HOMEPAGE="https://pholser.github.com/jopt-simple/"
|
||||
SRC_URI="https://github.com/pholser/${PN}/tarball/${P} -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="4.4"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
DEPEND=">=virtual/jdk-1.6"
|
||||
|
||||
S="${WORKDIR}/pholser-${PN}-0cb3e93"
|
||||
JAVA_SRC_DIR="src/main/java"
|
||||
|
||||
java_prepare() {
|
||||
# Easier to use java-pkg-simple.
|
||||
rm -v pom.xml || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
dodoc README.md
|
||||
}
|
@ -1,143 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic java-pkg-opt-2 multilib
|
||||
|
||||
PATCHSET_VER="0"
|
||||
|
||||
DESCRIPTION="free, small, and standard compliant Prolog compiler"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/devel/src/swipl-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="archive berkdb debug doc +gmp hardened java libressl minimal odbc +readline ssl static-libs test uuid zlib X"
|
||||
|
||||
RDEPEND="sys-libs/ncurses:=
|
||||
archive? ( app-arch/libarchive )
|
||||
berkdb? ( >=sys-libs/db-4:= )
|
||||
zlib? ( sys-libs/zlib )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
readline? ( sys-libs/readline:= )
|
||||
gmp? ( dev-libs/gmp:0 )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
java? ( >=virtual/jdk-1.5:= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
X? (
|
||||
virtual/jpeg:0
|
||||
x11-libs/libX11
|
||||
x11-libs/libXft
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXt
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-proto/xproto )
|
||||
java? ( test? ( =dev-java/junit-3.8* ) )"
|
||||
|
||||
S="${WORKDIR}/swipl-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE=yes
|
||||
EPATCH_SUFFIX=patch
|
||||
if [[ -d "${WORKDIR}"/${PV} ]] ; then
|
||||
epatch "${WORKDIR}"/${PV}
|
||||
fi
|
||||
|
||||
if ! use uuid; then
|
||||
mv packages/clib/uuid.pl packages/clib/uuid.pl.unused || die
|
||||
fi
|
||||
|
||||
# OSX/Intel ld doesn't like an archive without table of contents
|
||||
sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
use ppc && append-flags -mno-altivec
|
||||
use hardened && append-flags -fno-unit-at-a-time
|
||||
use debug && append-flags -DO_DEBUG
|
||||
|
||||
# ARCH is used in the configure script to figure out host and target
|
||||
# specific stuff
|
||||
export ARCH=${CHOST}
|
||||
|
||||
export CC_FOR_BUILD=$(tc-getBUILD_CC)
|
||||
|
||||
cd "${S}"/src || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_enable gmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared \
|
||||
--enable-custom-flags COFLAGS="${CFLAGS}"
|
||||
|
||||
if ! use minimal ; then
|
||||
local jpltestconf
|
||||
if use java && use test ; then
|
||||
jpltestconf="--with-junit=$(java-config --classpath junit)"
|
||||
fi
|
||||
|
||||
cd "${S}/packages" || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_with archive) \
|
||||
$(use_with berkdb bdb ) \
|
||||
$(use_with java jpl) \
|
||||
${jpltestconf} \
|
||||
$(use_with odbc) \
|
||||
$(use_with ssl) \
|
||||
$(use_with X xpce) \
|
||||
$(use_with zlib) \
|
||||
COFLAGS='"${CFLAGS}"'
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/src || die
|
||||
emake
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake
|
||||
./report-failed || die "Cannot report failed packages"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/src" || die
|
||||
emake check
|
||||
|
||||
if ! use minimal ; then
|
||||
unset DISPLAY
|
||||
cd "${S}/packages" || die
|
||||
emake \
|
||||
USE_PUBLIC_NETWORK_TESTS=false \
|
||||
USE_ODBC_TESTS=false \
|
||||
check
|
||||
./report-failed || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C src DESTDIR="${D}" install
|
||||
|
||||
if ! use minimal ; then
|
||||
emake -C packages DESTDIR="${D}" install
|
||||
if use doc ; then
|
||||
emake -C packages DESTDIR="${D}" html-install
|
||||
fi
|
||||
./packages/report-failed || die "Cannot report failed packages"
|
||||
fi
|
||||
|
||||
dodoc ReleaseNotes/relnotes-5.10 INSTALL README.md VERSION
|
||||
}
|
@ -1,143 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic java-pkg-opt-2 multilib
|
||||
|
||||
PATCHSET_VER="0"
|
||||
|
||||
DESCRIPTION="free, small, and standard compliant Prolog compiler"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/devel/src/swipl-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="archive berkdb debug doc +gmp hardened java libressl minimal odbc +readline ssl static-libs test uuid zlib X"
|
||||
|
||||
RDEPEND="sys-libs/ncurses:=
|
||||
archive? ( app-arch/libarchive )
|
||||
berkdb? ( >=sys-libs/db-4:= )
|
||||
zlib? ( sys-libs/zlib )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
readline? ( sys-libs/readline:= )
|
||||
gmp? ( dev-libs/gmp:0 )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
java? ( >=virtual/jdk-1.5:= )
|
||||
uuid? ( dev-libs/ossp-uuid )
|
||||
X? (
|
||||
virtual/jpeg:0
|
||||
x11-libs/libX11
|
||||
x11-libs/libXft
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXt
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-proto/xproto )
|
||||
java? ( test? ( =dev-java/junit-3.8* ) )"
|
||||
|
||||
S="${WORKDIR}/swipl-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE=yes
|
||||
EPATCH_SUFFIX=patch
|
||||
if [[ -d "${WORKDIR}"/${PV} ]] ; then
|
||||
epatch "${WORKDIR}"/${PV}
|
||||
fi
|
||||
|
||||
if ! use uuid; then
|
||||
mv packages/clib/uuid.pl packages/clib/uuid.pl.unused || die
|
||||
fi
|
||||
|
||||
# OSX/Intel ld doesn't like an archive without table of contents
|
||||
sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
use ppc && append-flags -mno-altivec
|
||||
use hardened && append-flags -fno-unit-at-a-time
|
||||
use debug && append-flags -DO_DEBUG
|
||||
|
||||
# ARCH is used in the configure script to figure out host and target
|
||||
# specific stuff
|
||||
export ARCH=${CHOST}
|
||||
|
||||
export CC_FOR_BUILD=$(tc-getBUILD_CC)
|
||||
|
||||
cd "${S}"/src || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_enable gmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared \
|
||||
--enable-custom-flags COFLAGS="${CFLAGS}"
|
||||
|
||||
if ! use minimal ; then
|
||||
local jpltestconf
|
||||
if use java && use test ; then
|
||||
jpltestconf="--with-junit=$(java-config --classpath junit)"
|
||||
fi
|
||||
|
||||
cd "${S}/packages" || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_with archive) \
|
||||
$(use_with berkdb bdb ) \
|
||||
$(use_with java jpl) \
|
||||
${jpltestconf} \
|
||||
$(use_with odbc) \
|
||||
$(use_with ssl) \
|
||||
$(use_with X xpce) \
|
||||
$(use_with zlib) \
|
||||
COFLAGS='"${CFLAGS}"'
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/src || die
|
||||
emake
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake
|
||||
./report-failed || die "Cannot report failed packages"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/src" || die
|
||||
emake check
|
||||
|
||||
if ! use minimal ; then
|
||||
unset DISPLAY
|
||||
cd "${S}/packages" || die
|
||||
emake \
|
||||
USE_PUBLIC_NETWORK_TESTS=false \
|
||||
USE_ODBC_TESTS=false \
|
||||
check
|
||||
./report-failed || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C src DESTDIR="${D}" install
|
||||
|
||||
if ! use minimal ; then
|
||||
emake -C packages DESTDIR="${D}" install
|
||||
if use doc ; then
|
||||
emake -C packages DESTDIR="${D}" html-install
|
||||
fi
|
||||
./packages/report-failed || die "Cannot report failed packages"
|
||||
fi
|
||||
|
||||
dodoc ReleaseNotes/relnotes-5.10 INSTALL README.md VERSION
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libmateweather-1.10.0.tar.xz 3463128 SHA256 4fc80145942781281efe99e17daef3d0947ae319771b2ab0a9b2a4559779484c SHA512 80eed6693e13d4dccb4e44ebab84955f7cbbd4f536cda1186db694149bf013429f41f38d2cb03a0dae517d6438e5cff1c18ae95598f700a1a9184ac47f85fcf5 WHIRLPOOL 9fab8e47d4f86ca13524cf9c6007e360f64725bfc98a872722b85270f5e87ce50ab3ce0a616cb46da2b1b285770c9d8afef3f1e270bc143b350050870f5a5a29
|
||||
DIST libmateweather-1.12.1.tar.xz 3526540 SHA256 74aaeb844059ecf7f7aa4314676348750c50212a7c6e5dbbed71793bcd373863 SHA512 26352a722fc76b997ce3d30e1c144a612ebf27f18f5e4b4f1d7b725bd4de2657797542a21a334179f4c194529770e6bfcd92e435ff1d793441ac00bb7bdffdab WHIRLPOOL 73eadf55986c27ae6977cdb6cc869ffd2d7272c257197c9d6b3447c88eed01d70c4b07ee5cf863815f09e7dbe9456eb043fb377906e56e0945d3bb7dac7858aa
|
||||
DIST libmateweather-1.12.2.tar.xz 3394620 SHA256 9e94acc29b86db0eeb4ba1c0b0d64476a537a8deb31830b98bbeae74e6f2e944 SHA512 057037c6983ba6d21ae8c9af67d5b1bde1f7da81dbc5ef89e5eabc1b844178d2d121d29d90484baa001d22cb24e8dc832bcb1ad2702460d22f48db430fa20fd9 WHIRLPOOL 1c168a94980a42ee8e4f533138a4bdaa7ee2a07d08b5b8ae172402540d7029b893450b5c12732604698cfcd5f536258f7bcab21e99044ce09260bacb5efd8ea6
|
||||
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
MATE_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-r1 mate
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="MATE library to access weather information from online services"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="debug gtk3 python"
|
||||
|
||||
REQUIRED_USE="
|
||||
gtk3? ( !python )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
"
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.36:2[${PYTHON_USEDEP}]
|
||||
>=dev-libs/libxml2-2.6:2
|
||||
>=net-libs/libsoup-2.34:2.4
|
||||
>=sys-libs/timezone-data-2010k:0
|
||||
x11-libs/gdk-pixbuf:2
|
||||
virtual/libintl:0
|
||||
!gtk3? ( >=x11-libs/gtk+-2.24:2 )
|
||||
gtk3? ( >=x11-libs/gtk+-3.0:3 )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-python/pygobject-2:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygtk-2:2[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gtk-doc
|
||||
dev-util/gtk-doc-am
|
||||
>=dev-util/intltool-0.50.1:*
|
||||
sys-devel/gettext:*
|
||||
>=sys-devel/libtool-2.2.6:2
|
||||
virtual/pkgconfig:*"
|
||||
|
||||
src_prepare() {
|
||||
mate_src_prepare
|
||||
use python && python_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mate_py_cond_func_wrap mate_src_configure \
|
||||
--enable-locations-compression \
|
||||
--disable-all-translations-in-one-xml \
|
||||
--with-gtk=$(usex gtk3 3.0 2.0) \
|
||||
$(use_enable python)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mate_py_cond_func_wrap default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mate_py_cond_func_wrap mate_src_install
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR="RUZ"
|
||||
DIST_VERSION="0.12"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Calculate business hours in a time period"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND=">=dev-perl/Set-IntSpan-1.120.0"
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1 @@
|
||||
DIST Business-Hours-0.12.tar.gz 16021 SHA256 db3f62f36cee2e3d5ed0e68ffca3f63ba1dbab5fc45d4d5710a1878a8e788595 SHA512 6d2c5fc1d5ddcc0263c24cbc0fc3536bbd19bf24976087c959e4649200c32df13d8ef66298f2e077566e4d8951b07b0461cf2740e32c425552443adef3881745 WHIRLPOOL 1481eb0bea664044acc1bc29d18e3d413b225c73b880a53c3b4754cf4ed43f8bd6026f194a8155e1ce1c0026e87fcd95148c1eee016b35025be6b8d439112f28
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">Business-Hours</remote-id>
|
||||
<remote-id type="cpan-module">Business::Hours</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR="GTERMARS"
|
||||
DIST_VERSION="0.09"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="XS based CSS minifier"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
dev-perl/Module-Build
|
||||
virtual/perl-ExtUtils-CBuilder"
|
||||
RDEPEND=""
|
@ -0,0 +1 @@
|
||||
DIST CSS-Minifier-XS-0.09.tar.gz 14363 SHA256 88a6997fa0df6b394d1e346bd0e57cd565857e217d807b652f176b006be6dad7 SHA512 520e40fa4a6d70bd7692880f3bc5c813a8648dfe12946426dedf0874e180ccd98e703d67ed8b502a7b00489aa2404edce844d80b1eccc48f94156a0d5c36ad51 WHIRLPOOL 7d14a446ae8099009c9cff9b96ee5033db54e5946489ff5bf6fb903082e402c15b1295f095af7b3ef8eff2b6f7b4f2597f98a8534eb918c86158902191b2ad28
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">CSS-Minifier-XS</remote-id>
|
||||
<remote-id type="cpan-module">CSS::Minifier::XS</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR="CHUNZI"
|
||||
DIST_VERSION="1.02"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="change long page list to be shorter and well navigate"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Data-Page-2.0.0
|
||||
dev-perl/Class-Accessor
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-perl/Module-Build
|
||||
test? ( dev-perl/Test-Exception )
|
||||
"
|
@ -0,0 +1 @@
|
||||
DIST Data-Page-Pageset-1.02.tar.gz 4220 SHA256 ceac1bb5543e23dab2519513c626e3ffe65a177b8e1ed9e56a030d4551d45190 SHA512 d6676511e6b9cb0c110d6f535120e04f110e53a18bf9ce65e6f346d616d9020cea6f7d9514e264fee0220ef100a1bce2e863d276fbaaa113ba8f920cf5bd2610 WHIRLPOOL 26311424753237b1d08da0321dc9f3f8615665cf21588a4287ceb3d4e0d5c69818658f93fd907d28e141ef9d2c6bcaa8aa703e69b22f644fef2d429dcbffe8a8
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">Data-Page-Pageset</remote-id>
|
||||
<remote-id type="cpan-module">Data::Page::Pageset</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR="GTERMARS"
|
||||
DIST_VERSION="0.11"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="XS based JavaScript minifier"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-perl/Module-Build-0.420.0
|
||||
virtual/perl-ExtUtils-CBuilder
|
||||
"
|
||||
RDEPEND=""
|
@ -0,0 +1 @@
|
||||
DIST JavaScript-Minifier-XS-0.11.tar.gz 17517 SHA256 151212ca4bd50b2f5e1de6d01e3cb08460407bd75f27dfc8162f2f7927839eee SHA512 736294c898d7806eae509b0d0c14cfcbb783ac335fe6c08bed9c00a52643b3e6d0ade124735d7de8d2203bf404448889e0e84b3097e316d0ef444f1603cbbdef WHIRLPOOL fd0a991a770a8e3436da4de9b01c0c68b65e76a7a69c3d0d84627db4fe1f34233f8f68b5da1cac1b7bc601d28e8221f1c2bd60d5ed93a6591bd3c17a049331ea
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">JavaScript-Minifier-XS</remote-id>
|
||||
<remote-id type="cpan-module">JavaScript::Minifier::XS</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST Scope-Upper-0.29.tar.gz 93763 SHA256 4b07360a243ce0ccaacfdfa98ae38ef2686aa908fcf4ef3d669105ac36759e0a SHA512 1950337e71b1120087d8921ed82ee92ba402f022316ffc60411d84744c5528e63b902e4bd897f82ddb853c83050dda01aa0e01825538340bd3f8b6f595364434 WHIRLPOOL 175cb0b7d4be55a4604e3812af73cb858dc8b226b33071702480b7f4f0a1bf96f04a44699d0f485c6327217bf5256c9bd5da29b49c23bf84b9487c8e7f314f8f
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR="VPIT"
|
||||
DIST_VERSION="0.29"
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Act on upper scopes"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>perl@gentoo.org</email>
|
||||
<name>Gentoo Perl Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="cpan">Scope-Upper</remote-id>
|
||||
<remote-id type="cpan-module">Scope::Upper</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,17 +0,0 @@
|
||||
--- a/salttesting/unit.py 2013-10-24 10:57:42.000000000 +0000
|
||||
+++ b/salttesting/unit.py 2013-11-12 18:47:11.245838201 +0000
|
||||
@@ -42,10 +42,10 @@
|
||||
class TestCase(_TestCase):
|
||||
|
||||
def assertEquals(self, *args, **kwargs):
|
||||
- raise DeprecationWarning(
|
||||
- 'The {0}() function is deprecated. Please start using {1}() '
|
||||
- 'instead.'.format('assertEquals', 'assertEqual')
|
||||
- )
|
||||
+ #raise DeprecationWarning(
|
||||
+ # 'The {0}() function is deprecated. Please start using {1}() '
|
||||
+ # 'instead.'.format('assertEquals', 'assertEqual')
|
||||
+ #)
|
||||
return _TestCase.assertEquals(self, *args, **kwargs)
|
||||
|
||||
def failUnlessEqual(self, *args, **kwargs):
|
@ -1,63 +0,0 @@
|
||||
tests require a more generic method to open, close files to work with pypy
|
||||
https://bugs.pypy.org/issue1380
|
||||
diff -ur python-hglib-0.3.orig/tests/test-import.py python-hglib-0.3/tests/test-import.py
|
||||
--- tests/test-import.py 2012-07-01 17:11:01.000000000 +0800
|
||||
+++ tests/test-import.py 2013-01-23 23:44:12.389473396 +0800
|
||||
@@ -22,7 +22,8 @@
|
||||
self.assertEquals(self.client.cat(['a']), '1\n')
|
||||
|
||||
def test_basic_file(self):
|
||||
- open('patch', 'wb').write(patch)
|
||||
+ with open('patch', 'wb') as f:
|
||||
+ f.write(patch)
|
||||
|
||||
# --no-commit
|
||||
self.client.import_(['patch'], nocommit=True)
|
||||
diff -ur python-hglib-0.3.orig/tests/test-config.py python-hglib-0.3/tests/test-config.py
|
||||
--- tests/test-config.py 2012-07-01 17:11:01.000000000 +0800
|
||||
+++ tests/test-config.py 2013-01-23 23:55:06.120502085 +0800
|
||||
@@ -3,7 +3,8 @@
|
||||
class test_config(common.basetest):
|
||||
def setUp(self):
|
||||
common.basetest.setUp(self)
|
||||
- open('.hg/hgrc', 'a').write('[section]\nkey=value\n')
|
||||
+ with open('.hg/hgrc', 'a') as f:
|
||||
+ f.write('[section]\nkey=value\n')
|
||||
self.client = hglib.open()
|
||||
|
||||
def test_basic(self):
|
||||
diff -ur python-hglib-0.3.orig/tests/test-paths.py python-hglib-0.3/tests/test-paths.py
|
||||
--- tests/test-paths.py 2012-07-01 17:11:01.000000000 +0800
|
||||
+++ tests/test-paths.py 2013-01-24 00:04:36.266527106 +0800
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
class test_paths(common.basetest):
|
||||
def test_basic(self):
|
||||
- open('.hg/hgrc', 'a').write('[paths]\nfoo = bar\n')
|
||||
-
|
||||
+ with open('.hg/hgrc', 'a') as f:
|
||||
+ f.write('[paths]\nfoo = bar\n')
|
||||
# hgrc isn't watched for changes yet, have to reopen
|
||||
self.client = hglib.open()
|
||||
paths = self.client.paths()
|
||||
diff -ur python-hglib-0.3.orig/tests/test-update.py python-hglib-0.3/tests/test-update.py
|
||||
--- tests/test-update.py 2012-11-09 18:56:31.000000000 +0800
|
||||
+++ tests/test-update.py 2013-01-24 00:05:40.866529942 +0800
|
||||
@@ -33,7 +33,8 @@
|
||||
self.client.commit('fourth')
|
||||
self.client.update(rev2)
|
||||
old = open('a').read()
|
||||
- open('a', 'wb').write('a' + old)
|
||||
+ with open('a', 'wb') as f:
|
||||
+ f.write('a' + old)
|
||||
u, m, r, ur = self.client.update()
|
||||
self.assertEquals(u, 0)
|
||||
self.assertEquals(m, 1)
|
||||
@@ -68,5 +69,6 @@
|
||||
self.assertEquals(old, open('a').read())
|
||||
|
||||
def test_basic_plain(self):
|
||||
- open('.hg/hgrc', 'a').write('[defaults]\nupdate=-v\n')
|
||||
+ with open('.hg/hgrc', 'a') as f:
|
||||
+ f.write('[defaults]\nupdate=-v\n')
|
||||
self.test_basic()
|
@ -1,86 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Matt Mackall <mpm@selenic.com>
|
||||
# Date 1372027936 18000
|
||||
# Node ID e738d6fe5f3ff613a4ee2c0d759eee0ee4f5c9ff
|
||||
# Parent 59cb26bf866e793b184842ad23f82fc3551d1742
|
||||
tests: make the tests work under Pypy (issue3965)
|
||||
|
||||
..which needs explicit close() due to lack of reference counting.
|
||||
|
||||
diff -r 59cb26bf866e -r e738d6fe5f3f tests/test-config.py
|
||||
--- a/tests/test-config.py Fri Jun 14 18:36:56 2013 +0300
|
||||
+++ b/tests/test-config.py Sun Jun 23 17:52:16 2013 -0500
|
||||
@@ -3,7 +3,9 @@
|
||||
class test_config(common.basetest):
|
||||
def setUp(self):
|
||||
common.basetest.setUp(self)
|
||||
- open('.hg/hgrc', 'a').write('[section]\nkey=value\n')
|
||||
+ f = open('.hg/hgrc', 'a')
|
||||
+ f.write('[section]\nkey=value\n')
|
||||
+ f.close()
|
||||
self.client = hglib.open()
|
||||
|
||||
def test_basic(self):
|
||||
diff -r 59cb26bf866e -r e738d6fe5f3f tests/test-import.py
|
||||
--- a/tests/test-import.py Fri Jun 14 18:36:56 2013 +0300
|
||||
+++ b/tests/test-import.py Sun Jun 23 17:52:16 2013 -0500
|
||||
@@ -22,7 +22,9 @@
|
||||
self.assertEquals(self.client.cat(['a']), '1\n')
|
||||
|
||||
def test_basic_file(self):
|
||||
- open('patch', 'wb').write(patch)
|
||||
+ f = open('patch', 'wb')
|
||||
+ f.write(patch)
|
||||
+ f.close()
|
||||
|
||||
# --no-commit
|
||||
self.client.import_(['patch'], nocommit=True)
|
||||
diff -r 59cb26bf866e -r e738d6fe5f3f tests/test-paths.py
|
||||
--- a/tests/test-paths.py Fri Jun 14 18:36:56 2013 +0300
|
||||
+++ b/tests/test-paths.py Sun Jun 23 17:52:16 2013 -0500
|
||||
@@ -3,7 +3,9 @@
|
||||
|
||||
class test_paths(common.basetest):
|
||||
def test_basic(self):
|
||||
- open('.hg/hgrc', 'a').write('[paths]\nfoo = bar\n')
|
||||
+ f = open('.hg/hgrc', 'a')
|
||||
+ f.write('[paths]\nfoo = bar\n')
|
||||
+ f.close()
|
||||
|
||||
# hgrc isn't watched for changes yet, have to reopen
|
||||
self.client = hglib.open()
|
||||
diff -r 59cb26bf866e -r e738d6fe5f3f tests/test-update.py
|
||||
--- a/tests/test-update.py Fri Jun 14 18:36:56 2013 +0300
|
||||
+++ b/tests/test-update.py Sun Jun 23 17:52:16 2013 -0500
|
||||
@@ -33,7 +33,9 @@
|
||||
self.client.commit('fourth')
|
||||
self.client.update(rev2)
|
||||
old = open('a').read()
|
||||
- open('a', 'wb').write('a' + old)
|
||||
+ f = open('a', 'wb')
|
||||
+ f.write('a' + old)
|
||||
+ f.close()
|
||||
u, m, r, ur = self.client.update()
|
||||
self.assertEquals(u, 0)
|
||||
self.assertEquals(m, 1)
|
||||
@@ -68,12 +70,16 @@
|
||||
self.assertEquals(old, open('a').read())
|
||||
|
||||
def test_basic_plain(self):
|
||||
- open('.hg/hgrc', 'a').write('[defaults]\nupdate=-v\n')
|
||||
+ f = open('.hg/hgrc', 'a')
|
||||
+ f.write('[defaults]\nupdate=-v\n')
|
||||
+ f.close()
|
||||
self.test_basic()
|
||||
|
||||
def test_largefiles(self):
|
||||
import os
|
||||
- open('.hg/hgrc', 'a').write('[extensions]\nlargefiles=\n')
|
||||
+ f = open('.hg/hgrc', 'a')
|
||||
+ f.write('[extensions]\nlargefiles=\n')
|
||||
+ f.close()
|
||||
self.append('b', 'a')
|
||||
try:
|
||||
self.client.rawcommand(['add', 'b', '--large'])
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST jaraco.functools-1.12.tar.gz 8819 SHA256 3f3af1cdc15355e8038a3bab0e8393cd7344c63ea5cdb4a81a3422d91c0bfdd2 SHA512 aafb9025e4e99b2469287b2e05161c89622809cd85b2916a65f11654ee5889811bc0def244215e0bbbd5428fa65a2f148229247929ec34b75b548b8e746d8fd0 WHIRLPOOL 6a2d39596473c29172f56ac767d26fd75ae3396b3fb66f5f9bd5b05b9f363d6ac18af614e7b500f0fdf165c3f49426f33c86289ad9546e398f484e31939eaec4
|
||||
DIST jaraco.functools-1.13.tar.gz 9026 SHA256 af9033b6aa974cfc70e4abec2be71f2434453b80db1b6f031d2ab26ee5b0eef9 SHA512 fb73a69811026562e1f8195960956a90757700ce13dbc00feb0ef97cf5f3c35f0334bcd7d5529ddab7c7524899bbcc6e264266a4cfe23056b50cd7a3cd9e896b WHIRLPOOL 14a59d390ff8e940d276181559d96fae4e2d5be8a1247b7cb892b452498953c3ed7881fa42dba5bd56dfd95093e8b3db3d3fc819253973828ff812e820acd8f1
|
||||
DIST jaraco.functools-1.15.1.tar.gz 8744 SHA256 ca8b594d38c64884f54d6ea36b859227686a54c03cbda6a0fd9da9c3e40514da SHA512 0b65bc36a2338775d4879dd7502b50b930a12458512061ceba65ada86df2658f4fcce4a4e523580239b302a34a8bf90adcfdeaf8f0b2169d704a3a74457424bb WHIRLPOOL 81f91008dfe76fa91b4e54791a895678cd1dc13050339d00bdec90e39abb2ae7492c8f6c61b63c9e104e18ce1e56ae66ada9d9d3d28df07e48e6d66fea20a389
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST jupyter_core-4.0.6.tar.gz 55060 SHA256 96a68a3b1d018ff7776270b26b7cb0cfd7a18a53ef2061421daff435707d198c SHA512 e6d7a0293ce6cdd3202b354aae62900683eb0474590980bf3d9c6f89b4b16182e7caee0e42c3feb3de5851535a01394b20725d9428eb105dbc2c34d90e0d398b WHIRLPOOL c1370d386c63665db1a47f1df0e3942c713b4f9e71ad5a2bd8c83bcf1b5dfe937fdadcd606335a989514499b9e6446d92a0bb250b9e972181b12d0d9423ee80a
|
||||
DIST jupyter_core-4.1.0.tar.gz 56500 SHA256 146af0679c33c56db4b85b785f3dacd933ffaca97e7d2d56ff577a5485c2bd13 SHA512 863c4611093e914d92ac268d26e546842132d398d30f78c8440830a426da2923912b7da484ca3282a3f737300af316a305b8417cd1c35acd4a0ff93de1309d39 WHIRLPOOL 80427965a8394f1e86e0fc9a456eb3396cf37ed6e3c4362acb5998121d7b02c3242c3405871a2c25b71394716af039211a994fdbac5e833cc55c7beeb6e29d4e
|
||||
DIST jupyter_core-4.2.0.tar.gz 57722 SHA256 44ec837a53bebf4e937112d3f9ccf31fee4f8db3e406dd0dd4f0378a354bed9c SHA512 37e4ffa2ce9b3f8bdd4d1e520050e6919a8bbf1345f5684bcabeab158b4c014b1b49e7e58705cb623ed53ef63ef26b67d236fb48d285b68b76b928d516706b37 WHIRLPOOL 69372c9c545171ab34cc4d721402d4226431f8d44edbf0964022747e26a79df30542d355827fd5061fc57e0a54715984f8094df266e71185f591b247ccafa1ee
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Core common functionality of Jupyter projects"
|
||||
HOMEPAGE="http://jupyter.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/traitlets[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
|
||||
>=dev-python/ipython-4.0.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
cd "${TEST_DIR}"/lib || die
|
||||
py.test jupyter_core || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Jupyter Interactive Notebook"
|
||||
HOMEPAGE="http://jupyter.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
RDEPEND="
|
||||
>=dev-libs/mathjax-2.4
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/terminado-0.3.3[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.0[${PYTHON_USEDEP}]
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
>=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
|
||||
dev-python/jupyter_core[${PYTHON_USEDEP}]
|
||||
dev-python/jupyter_client[${PYTHON_USEDEP}]
|
||||
dev-python/nbformat[${PYTHON_USEDEP}]
|
||||
>=dev-python/nbconvert-4.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/ipykernel[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
|
||||
>=dev-python/nose-0.10.1[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)
|
||||
doc? (
|
||||
app-text/pandoc
|
||||
>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-4.2.0-setupbase.py.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
sed \
|
||||
-e "/import setup/s:$:\nimport setuptools:g" \
|
||||
-i setup.py || die
|
||||
|
||||
# disable bundled mathjax
|
||||
sed -i 's/^.*MathJax.*$//' bower.json || die
|
||||
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed \
|
||||
-e "/^ 'sphinx.ext.intersphinx',/d" \
|
||||
-i docs/source/conf.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests \
|
||||
--verbosity=3 \
|
||||
notebook || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
ln -sf \
|
||||
"${EPREFIX}/usr/share/mathjax" \
|
||||
"${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# remove old mathjax folder if present
|
||||
rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || die
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
--- testsuite.py
|
||||
+++ testsuite.py
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import sys, os
|
||||
|
||||
+ParserError = "ParserError"
|
||||
|
||||
def check_recode ():
|
||||
try:
|
||||
@@ -65,7 +66,7 @@
|
||||
|
||||
valid = result.readline ().strip ()
|
||||
|
||||
- if obtained != valid:
|
||||
+ if eval(obtained) != eval(valid):
|
||||
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
|
||||
filename, line))
|
||||
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (
|
||||
@@ -117,7 +118,7 @@
|
||||
|
||||
valid = result.readline ().strip ()
|
||||
|
||||
- if obtained != valid:
|
||||
+ if eval(obtained) != eval(valid):
|
||||
sys.stderr.write ('error: %s: line %d: unexpected result:\n' % (
|
||||
filename, line))
|
||||
sys.stderr.write ('error: %s: line %d: obtained %s\n' % (
|
@ -1,20 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 57479d7..4f82328 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -52,15 +52,6 @@ setup(
|
||||
author_email="alastair@porter.net.nz",
|
||||
url="https://github.com/alastair/python-musicbrainz-ngs",
|
||||
packages=['musicbrainzngs'],
|
||||
- package_data={'musicbrainzngs': ['CHANGES',
|
||||
- '../docs/*',
|
||||
- '../examples/*',
|
||||
- '../test/data/*.xml',
|
||||
- '../test/data/artist/*',
|
||||
- '../test/data/label/*',
|
||||
- '../test/data/release/*',
|
||||
- '../test/data/release-group/*',
|
||||
- '../test/data/work/*']},
|
||||
cmdclass={'test': test },
|
||||
license='BSD 2-clause',
|
||||
classifiers=[
|
@ -1,2 +1,2 @@
|
||||
DIST rebulk-0.7.2.tar.gz 254345 SHA256 ee4c75819c6d0eeedb531fb22c214e50f303ccc4703f27db1f993cd082ed5a20 SHA512 2855b6f754dd258e5e0ba8264cd6993c08fed141fb8b61f88b43beadea9acfcfeb54443c8708fa98de44f2c199dd900e6c9669dc616713dd61d873779f1df2f5 WHIRLPOOL a814772e5d34d6890b1435d652992a9b898435c4075619660351988d1ba955723a8440b8bde6a0c3e6547a465a9b040d085059a7938509a4edc9d7a21318148a
|
||||
DIST rebulk-0.7.4.tar.gz 255137 SHA256 1bbea5ebcc18b70c5deb19ba6924fb76392d5130b0fe712e3af7a4e4bee18e21 SHA512 0a40e0acce286d45829451fe30efc1bece4924c349c81c377aacee26afe34f032ab6624207d9f6ebb4a3d6f4e2984d63a5601a3728b208045a9a33e0816c1ef2 WHIRLPOOL fe9a4468ceba020f199b89e8a6fa533e9345584dcb2a616f15187193f2145f99336c733fd9b8e9a8178d6ad73a8e3a20d6493a250fdafb3a29dde93695d5cb0d
|
||||
DIST rebulk-0.7.6.tar.gz 256070 SHA256 1357820b13460fc30ecdf58b7743b34da79f76bec954c21051da9eefab0e82cd SHA512 89dcaeecf559ab79c7d1d2f2f58d3f882e25517a95dacf2d1991d2035c40697cc0848bc28884b08ba7eb83d66ddc42b6f3d90133489ef45abef56ead260d95e5 WHIRLPOOL 466490082fbb1cbb57183ef9b5df7efd4449bb6dbff3fe91d730d9a4d44a9a85835caad4dece29be0be9f48485d6da2120db246c458858f507a706506da2211b
|
||||
|
@ -1,38 +0,0 @@
|
||||
From 414ba660bccd3eed60f63cc8a1d117740065126f Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Wed, 25 Dec 2013 10:42:26 -0500
|
||||
Subject: [PATCH] Specify encoding when opening files in setup.py
|
||||
|
||||
This resolves a UnicodeDecodeError when setup.py is invoked with a
|
||||
non-utf8 locale.
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=495118
|
||||
---
|
||||
setup.py | 8 +++++---
|
||||
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index c76e869..9191f11 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,12 +1,14 @@
|
||||
__version__ = '2.0'
|
||||
|
||||
-import os, sys
|
||||
+import io, os, sys
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
-README = open(os.path.join(here, 'README.rst')).read()
|
||||
-CHANGES = open(os.path.join(here, 'CHANGELOG.rst')).read()
|
||||
+with io.open(os.path.join(here, 'README.rst'), encoding='utf8') as f:
|
||||
+ README = f.read()
|
||||
+with io.open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf8') as f:
|
||||
+ CHANGES = f.read()
|
||||
PY3 = sys.version_info[0] == 3
|
||||
|
||||
extra_options = {
|
||||
--
|
||||
1.8.5.2
|
||||
|
@ -1,40 +0,0 @@
|
||||
https://github.com/scrapy/scrapy/commit/480cfa199475d867cb51cb04ce76ed54809514f6
|
||||
https://github.com/scrapy/scrapy/commit/3b64b2449ed2afd3bd4a2173c186fd44c6efac86
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 6efe640..252068c 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -124,7 +124,7 @@ def is_not_module(filename):
|
||||
else:
|
||||
setup_args['install_requires'] = [
|
||||
'Twisted>=10.0.0',
|
||||
- 'w3lib>=1.2',
|
||||
+ 'w3lib>=1.8.0',
|
||||
'queuelib',
|
||||
'lxml',
|
||||
'pyOpenSSL',
|
||||
diff --git a/requirements.txt b/requirements.txt
|
||||
index 0df9a55..005b8f4 100644
|
||||
--- a/requirements.txt
|
||||
+++ b/requirements.txt
|
||||
@@ -2,6 +2,6 @@ Twisted>=10.0.0
|
||||
lxml
|
||||
pyOpenSSL
|
||||
cssselect>=0.9
|
||||
-w3lib>=1.2
|
||||
+w3lib>=1.8.0
|
||||
queuelib
|
||||
six>=1.5.2
|
||||
diff --git a/tox.ini b/tox.ini
|
||||
index 20d54b6..38ef6c4 100644
|
||||
--- a/tox.ini
|
||||
+++ b/tox.ini
|
||||
@@ -48,7 +48,7 @@ deps = (re-based)
|
||||
pyOpenSSL>=0.13.1
|
||||
cssselect>=0.9
|
||||
queuelib>=1.1.1
|
||||
- w3lib>=1.5
|
||||
+ w3lib>=1.8.0
|
||||
# tests requirements
|
||||
mock
|
||||
:HPK:pytest>2.5.2
|
@ -1,68 +0,0 @@
|
||||
diff -urN SOAPpy.orig/Client.py SOAPpy/Client.py
|
||||
--- SOAPpy.orig/Client.py 2005-02-21 21:27:09.000000000 +0100
|
||||
+++ SOAPpy/Client.py 2007-01-07 15:46:13.000000000 +0100
|
||||
@@ -40,11 +40,11 @@
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
ident = '$Id: Client.py,v 1.27 2005/02/21 20:27:09 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import urllib
|
||||
from types import *
|
||||
diff -urN SOAPpy.orig/GSIServer.py SOAPpy/GSIServer.py
|
||||
--- SOAPpy.orig/GSIServer.py 2005-02-15 17:32:22.000000000 +0100
|
||||
+++ SOAPpy/GSIServer.py 2007-01-07 15:46:38.000000000 +0100
|
||||
@@ -43,11 +43,11 @@
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
ident = '$Id: GSIServer.py,v 1.5 2005/02/15 16:32:22 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import re
|
||||
import socket
|
||||
diff -urN SOAPpy.orig/Server.py SOAPpy/Server.py
|
||||
--- SOAPpy.orig/Server.py 2005-02-15 17:32:22.000000000 +0100
|
||||
+++ SOAPpy/Server.py 2007-01-07 15:46:59.000000000 +0100
|
||||
@@ -40,11 +40,11 @@
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
ident = '$Id: Server.py,v 1.21 2005/02/15 16:32:22 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import re
|
||||
import socket
|
||||
diff -urN SOAPpy.orig/Types.py SOAPpy/Types.py
|
||||
--- SOAPpy.orig/Types.py 2005-02-22 05:29:43.000000000 +0100
|
||||
+++ SOAPpy/Types.py 2007-01-07 15:47:17.000000000 +0100
|
||||
@@ -33,11 +33,11 @@
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
ident = '$Id: Types.py,v 1.19 2005/02/22 04:29:43 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
import UserList
|
||||
import base64
|
||||
import cgi
|
@ -1,35 +0,0 @@
|
||||
patch made from https://github.com/benoitc/socketpool/blob/06d659612f15cb4c207a2fc508b6099e09d3fde7/socketpool/pool.py
|
||||
in reply to; size is supposed to be a property. fix #20
|
||||
commit 06d659612f15cb4c207a2fc508b6099e09d3fde7.
|
||||
file included changes making the first hunk
|
||||
diff -ur socketpool-0.5.2.orig/socketpool/pool.py socketpool-0.5.2/socketpool/pool.py
|
||||
--- socketpool/pool.py 2012-08-05 12:22:13.000000000 +0800
|
||||
+++ socketpool/pool.py 2013-02-10 22:51:45.607637365 +0800
|
||||
@@ -48,8 +48,12 @@
|
||||
max_size=10, options=None,
|
||||
reap_connections=True, backend="thread"):
|
||||
|
||||
- self.backend_mod = load_backend(backend)
|
||||
- self.backend = backend
|
||||
+ if isinstance(backend, str):
|
||||
+ self.backend_mod = load_backend(backend)
|
||||
+ self.backend = backend
|
||||
+ else:
|
||||
+ self.backend_mod = backend
|
||||
+ self.backend = str(getattr(backend, '__name__', backend))
|
||||
self.max_size = max_size
|
||||
self.pool = getattr(self.backend_mod, 'PriorityQueue')()
|
||||
self._free_conns = 0
|
||||
@@ -97,6 +101,7 @@
|
||||
if conn.is_connected():
|
||||
conn.invalidate()
|
||||
|
||||
+ @property
|
||||
def size(self):
|
||||
return self.pool.qsize()
|
||||
|
||||
@@ -193,3 +198,4 @@
|
||||
finally:
|
||||
self.release_connection(conn)
|
||||
|
||||
+
|
@ -1,23 +0,0 @@
|
||||
http://south.aeracode.org/ticket/1256
|
||||
diff -ur south-0.7.5.orig/south/tests/db.py south-0.7.5/south/tests/db.py
|
||||
--- south/tests/db.py 2012-05-08 18:37:14.000000000 +0800
|
||||
+++ south/tests/db.py 2013-05-18 15:46:23.920225709 +0800
|
||||
@@ -1,5 +1,8 @@
|
||||
-import datetime
|
||||
-import unittest
|
||||
+import datetime, sys
|
||||
+if sys.version_info == (2, 7):
|
||||
+ import unittest
|
||||
+else:
|
||||
+ import unittest2 as unittest
|
||||
|
||||
from south.db import db, generic
|
||||
from django.db import connection, models
|
||||
@@ -71,6 +74,7 @@
|
||||
else:
|
||||
self.fail("Just-deleted table could be selected!")
|
||||
|
||||
+ @unittest.expectedFailure
|
||||
def test_nonexistent_delete(self):
|
||||
"""
|
||||
Test deletion of nonexistent tables.
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A configuration system for Python applications"
|
||||
HOMEPAGE="https://github.com/ipython/traitlets"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3)
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
doc? (
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
|
||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test --cov traitlets -v traitlets || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
https://github.com/enthought/traitsui/issues/74
|
||||
diff -ur traitsui-4.3.0.orig/traitsui/qt4/ui_panel.py traitsui-4.3.0/traitsui/qt4/ui_panel.py
|
||||
--- traitsui/qt4/ui_panel.py 2013-03-29 04:08:54.000000000 +0800
|
||||
+++ traitsui/qt4/ui_panel.py 2013-04-12 13:23:09.499989912 +0800
|
||||
@@ -977,7 +977,7 @@
|
||||
|
||||
if (label is not None
|
||||
and not is_label_left
|
||||
- and item_policy == QtGui.QSizePolicy.Policy.Minimum):
|
||||
+ and item_policy == QtGui.QSizePolicy.Minimum):
|
||||
# this item cannot be stretched horizontally, and the label
|
||||
# exists and is on the right -> make label stretchable if necessary
|
||||
|
||||
@@ -1012,7 +1012,7 @@
|
||||
label_policy = label.sizePolicy()
|
||||
label_policy.setHorizontalStretch(stretch)
|
||||
label_policy.setHorizontalPolicy(
|
||||
- QtGui.QSizePolicy.Policy.Expanding)
|
||||
+ QtGui.QSizePolicy.Expanding)
|
||||
label.setSizePolicy(label_policy)
|
||||
|
||||
|
||||
diff -ur traitsui-4.3.0.orig/traitsui/tests/_tools.py traitsui-4.3.0/traitsui/tests/_tools.py
|
||||
--- traitsui/tests/_tools.py 2013-03-29 04:08:54.000000000 +0800
|
||||
+++ traitsui/tests/_tools.py 2013-04-12 13:23:09.502989914 +0800
|
||||
@@ -173,7 +173,7 @@
|
||||
return ui_control.GetSizeTuple()
|
||||
|
||||
elif is_current_backend_qt4():
|
||||
- return ui_control.size().toTuple()
|
||||
+ return ui_control.size().width(), ui_control.size().height()
|
||||
|
||||
|
||||
# ######### Debug tools
|
@ -1,26 +0,0 @@
|
||||
Apply patch: use calendar.timegm instead of manual broken timezone math.
|
||||
|
||||
Author: marienz
|
||||
Review: itamar
|
||||
Fixes: #5583
|
||||
|
||||
Index: /trunk/twisted/test/test_log.py
|
||||
===================================================================
|
||||
--- /trunk/twisted/test/test_log.py (revision 32453)
|
||||
+++ /trunk/twisted/test/test_log.py (revision 34145)
|
||||
@@ -6,5 +6,5 @@
|
||||
"""
|
||||
|
||||
-import os, sys, time, logging, warnings
|
||||
+import os, sys, time, logging, warnings, calendar
|
||||
from cStringIO import StringIO
|
||||
|
||||
@@ -392,7 +392,5 @@
|
||||
human-readable string.
|
||||
"""
|
||||
- # There is no function in the time module which converts a UTC time
|
||||
- # tuple to a timestamp.
|
||||
- when = time.mktime((2001, 2, 3, 4, 5, 6, 7, 8, 0)) - time.timezone
|
||||
+ when = calendar.timegm((2001, 2, 3, 4, 5, 6, 7, 8, 0))
|
||||
|
||||
# Pretend to be in US/Eastern for a moment
|
@ -1,13 +0,0 @@
|
||||
Index: twisted/python/_twisted_zsh_stub
|
||||
===================================================================
|
||||
--- twisted/python/_twisted_zsh_stub (revision 14988)
|
||||
+++ twisted/python/_twisted_zsh_stub (working copy)
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
function load_twisted_completions() {
|
||||
[[ -z $commands[twistd] ]] && echo 'ERROR: test command "twistd" not found in path' && return 1
|
||||
- shebang=$(head -1 $commands[twistd])
|
||||
+ shebang=$(head -n1 $commands[twistd])
|
||||
[[ $shebang != \#\!* ]] && echo 'ERROR: invalid shebang line for test script "twistd"' && return 1
|
||||
PYTHON=$shebang[3,-1]
|
||||
|
@ -1,67 +0,0 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=351468
|
||||
http://twistedmatrix.com/trac/ticket/4771
|
||||
http://twistedmatrix.com/trac/changeset/30430
|
||||
|
||||
--- twisted/words/protocols/jabber/jstrports.py
|
||||
+++ twisted/words/protocols/jabber/jstrports.py
|
||||
@@ -1,12 +1,12 @@
|
||||
# -*- test-case-name: twisted.words.test -*-
|
||||
-# Copyright (c) 2001-2005 Twisted Matrix Laboratories.
|
||||
+# Copyright (c) 2001-2011 Twisted Matrix Laboratories.
|
||||
# See LICENSE for details.
|
||||
|
||||
|
||||
""" A temporary placeholder for client-capable strports, until we
|
||||
sufficient use cases get identified """
|
||||
|
||||
-from twisted.application import strports
|
||||
+from twisted.internet.endpoints import _parse
|
||||
|
||||
def _parseTCPSSL(factory, domain, port):
|
||||
""" For the moment, parse TCP or SSL connections the same """
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
def parse(description, factory):
|
||||
- args, kw = strports._parse(description)
|
||||
+ args, kw = _parse(description)
|
||||
return (args[0].upper(),) + _funcs[args[0]](factory, *args[1:], **kw)
|
||||
|
||||
def client(description, factory):
|
||||
--- twisted/words/test/test_jabberjstrports.py
|
||||
+++ twisted/words/test/test_jabberjstrports.py
|
||||
@@ -0,0 +1,34 @@
|
||||
+# Copyright (c) 2011 Twisted Matrix Laboratories.
|
||||
+# See LICENSE for details.
|
||||
+
|
||||
+"""
|
||||
+Tests for L{twisted.words.protocols.jabber.jstrports}.
|
||||
+"""
|
||||
+
|
||||
+from twisted.trial import unittest
|
||||
+
|
||||
+from twisted.words.protocols.jabber import jstrports
|
||||
+from twisted.application.internet import TCPClient
|
||||
+
|
||||
+
|
||||
+class JabberStrPortsPlaceHolderTest(unittest.TestCase):
|
||||
+ """
|
||||
+ Tests for L{jstrports}
|
||||
+ """
|
||||
+
|
||||
+ def test_parse(self):
|
||||
+ """
|
||||
+ L{jstrports.parse} accepts an endpoint description string and returns a
|
||||
+ tuple and dict of parsed endpoint arguments.
|
||||
+ """
|
||||
+ expected = ('TCP', ('DOMAIN', 65535, 'Factory'), {})
|
||||
+ got = jstrports.parse("tcp:DOMAIN:65535", "Factory")
|
||||
+ self.assertEquals(expected, got)
|
||||
+
|
||||
+
|
||||
+ def test_client(self):
|
||||
+ """
|
||||
+ L{jstrports.client} returns a L{TCPClient} service.
|
||||
+ """
|
||||
+ got = jstrports.client("tcp:DOMAIN:65535", "Factory")
|
||||
+ self.assertIsInstance(got, TCPClient)
|
@ -1,3 +0,0 @@
|
||||
[testenv]
|
||||
commands = bash ./tests/run_tests {envdir} []
|
||||
deps = virtualenv
|
@ -1,27 +0,0 @@
|
||||
https://bitbucket.org/ianb/webob/issue/11
|
||||
https://bitbucket.org/ianb/webob/changeset/145b64e724eb
|
||||
|
||||
--- tests/test_misc.py
|
||||
+++ tests/test_misc.py
|
||||
@@ -130,7 +130,8 @@
|
||||
|
||||
|
||||
def test_multidict_cgi():
|
||||
- fs = cgi.FieldStorage()
|
||||
+ env = {'QUERY_STRING': ''}
|
||||
+ fs = cgi.FieldStorage(environ=env)
|
||||
fs.filename = '\xc3\xb8'
|
||||
plain = MultiDict(key='\xc3\xb8', fs=fs)
|
||||
ua = UnicodeMultiDict(multi=plain, encoding='utf-8')
|
||||
--- tests/test_multidict.py
|
||||
+++ tests/test_multidict.py
|
||||
@@ -187,7 +187,8 @@
|
||||
d = self._get_instance()
|
||||
d.decode_keys = True
|
||||
|
||||
- fs = cgi.FieldStorage()
|
||||
+ env = {'QUERY_STRING': ''}
|
||||
+ fs = cgi.FieldStorage(environ=env)
|
||||
fs.name = 'a'
|
||||
self.assertEqual(d._decode_value(fs).name, 'a')
|
||||
|
@ -1,24 +0,0 @@
|
||||
From 3a2c16f2f72dbca5ddfce7f649daf426c2125fed Mon Sep 17 00:00:00 2001
|
||||
From: Aaron DeVore <aaron.devore@gmail.com>
|
||||
Date: Tue, 30 Oct 2012 11:55:30 -0700
|
||||
Subject: [PATCH] Fix issue #75: depending on dict order in test_headers2
|
||||
|
||||
---
|
||||
tests/test_request.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_request.py b/tests/test_request.py
|
||||
index f219d36..3e38e7a 100644
|
||||
--- a/tests/test_request.py
|
||||
+++ b/tests/test_request.py
|
||||
@@ -2662,7 +2662,7 @@ def test_headers2(self):
|
||||
self.assertTrue(i in r.headers and
|
||||
'HTTP_'+i.upper().replace('-', '_') in r.environ)
|
||||
r.headers = {'Server':'Apache'}
|
||||
- self.assertEqual(list(r.environ.keys()), ['a', 'HTTP_SERVER'])
|
||||
+ self.assertEqual(set(r.environ.keys()), set(['a', 'HTTP_SERVER']))
|
||||
|
||||
def test_host_url(self):
|
||||
# Request has a read only property host_url that combines several
|
||||
--
|
||||
1.8.1.6
|
@ -1,38 +0,0 @@
|
||||
diff --git a/docs/index.txt b/docs/index.txt
|
||||
index f472102..1edf711 100644
|
||||
--- a/docs/index.txt
|
||||
+++ b/docs/index.txt
|
||||
@@ -271,7 +271,7 @@ Then you can submit:
|
||||
>>> res = form.submit()
|
||||
>>> # Or submit a button:
|
||||
>>> res = form.submit('submit')
|
||||
- >>> print(res)
|
||||
+ >>> print(res) # doctest:+ELLIPSIS
|
||||
Response: 200 OK
|
||||
Content-Type: text/plain
|
||||
...
|
||||
@@ -331,7 +331,7 @@ Examples:
|
||||
<class 'BeautifulSoup.BeautifulSoup'>
|
||||
>>> res.html.body.div.string
|
||||
u'hey!'
|
||||
- >>> res.lxml
|
||||
+ >>> res.lxml # doctest:+ELLIPSIS
|
||||
<Element html at ...>
|
||||
>>> res.lxml.xpath('//body/div')[0].text
|
||||
'hey!'
|
||||
@@ -343,13 +343,13 @@ Examples:
|
||||
>>> res = TestResponse(content_type='application/xml',
|
||||
... body='<xml><message>hey!</message></xml>')
|
||||
>>> res.request = TestRequest.blank('/')
|
||||
- >>> res.xml
|
||||
+ >>> res.xml # doctest:+ELLIPSIS
|
||||
<Element ...>
|
||||
>>> res.xml[0].tag
|
||||
'message'
|
||||
>>> res.xml[0].text
|
||||
'hey!'
|
||||
- >>> res.lxml
|
||||
+ >>> res.lxml # doctest:+ELLIPSIS
|
||||
<Element xml at ...>
|
||||
>>> res.lxml[0].tag
|
||||
'message'
|
@ -1,13 +0,0 @@
|
||||
--- /dev/null 2012-05-03 18:34:53.288000099 +0800
|
||||
+++ docs/index_fixt.py 2012-05-07 00:07:55.392854158 +0800
|
||||
@@ -0,0 +1,10 @@
|
||||
+# -*- coding: utf-8 -*-
|
||||
+from doctest import ELLIPSIS
|
||||
+
|
||||
+
|
||||
+def setup_test(test):
|
||||
+ for example in test.examples:
|
||||
+ example.options.setdefault(ELLIPSIS, 1)
|
||||
+
|
||||
+setup_test.__test__ = False
|
||||
+
|
@ -1,24 +0,0 @@
|
||||
db23aff2ea commit 4ec8638c268ecdb710d97176a55cc5b818aa1a18
|
||||
https://github.com/Lawouach/WebSocket-for-Python/issues/72
|
||||
diff -ur ws4py-0.2.4.orig/test/test_cherrypy.py ws4py-0.2.4/test/test_cherrypy.py
|
||||
--- test/test_cherrypy.py 2012-12-14 03:35:48.000000000 +0800
|
||||
+++ test/test_cherrypy.py 2013-01-11 16:56:37.555534011 +0800
|
||||
@@ -4,6 +4,7 @@
|
||||
import cherrypy
|
||||
from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool
|
||||
from ws4py.websocket import EchoWebSocket
|
||||
+from ws4py.compat import py3k
|
||||
|
||||
class FakeSocket(object):
|
||||
def settimeout(self, timeout):
|
||||
@@ -65,7 +66,10 @@
|
||||
h = EchoWebSocket(s, [], [])
|
||||
cherrypy.engine.publish('handle-websocket', h, ('127.0.0.1', 0))
|
||||
self.assertEquals(len(cherrypy.engine.websocket.pool), 1)
|
||||
- k = cherrypy.engine.websocket.pool.keys()[0]
|
||||
+ if py3k:
|
||||
+ k = list(cherrypy.engine.websocket.pool.keys())[0]
|
||||
+ else:
|
||||
+ k = cherrypy.engine.websocket.pool.keys()[0]
|
||||
self.assertTrue(k is h)
|
||||
self.assertEquals(cherrypy.engine.websocket.pool[k][1], ('127.0.0.1', 0))
|
@ -1,27 +0,0 @@
|
||||
From 38cf669e27fab9de187eb11dabd7d85d73d5f470 Mon Sep 17 00:00:00 2001
|
||||
From: Jon Salz <jsalz@chromium.org>
|
||||
Date: Fri, 20 Apr 2012 02:22:46 +0800
|
||||
Subject: [PATCH] Process remaining bytes in the body, if any.
|
||||
|
||||
https://github.com/Lawouach/WebSocket-for-Python/issues/46
|
||||
---
|
||||
ws4py/client/__init__.py | 3 +++
|
||||
1 files changed, 3 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/ws4py/client/__init__.py b/ws4py/client/__init__.py
|
||||
index aa4c8f2..29b1357 100644
|
||||
--- a/ws4py/client/__init__.py
|
||||
+++ b/ws4py/client/__init__.py
|
||||
@@ -71,6 +71,9 @@ class WebSocketBaseClient(WebSocket):
|
||||
|
||||
self.handshake_ok()
|
||||
|
||||
+ if body != '':
|
||||
+ self.process(body)
|
||||
+
|
||||
@property
|
||||
def handshake_headers(self):
|
||||
parts = urlsplit(self.url)
|
||||
--
|
||||
1.7.3.4
|
||||
|
@ -1,47 +0,0 @@
|
||||
From c650bc8a2b901a9e8d0c09f11f2482cfa6a1daee Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Milde <daniel@milde.cz>
|
||||
Date: Sun, 8 Nov 2015 21:15:08 +0100
|
||||
Subject: [PATCH] installation of jupyter hook to given destination
|
||||
|
||||
---
|
||||
setup.py | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 2996546..83984ba 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -19,7 +19,7 @@
|
||||
HAVE_SETUPTOOLS = False
|
||||
|
||||
try:
|
||||
- from jupyter_client.kernelspec import install_kernel_spec
|
||||
+ from jupyter_client.kernelspec import KernelSpecManager
|
||||
HAVE_JUPYTER = True
|
||||
except ImportError:
|
||||
HAVE_JUPYTER = False
|
||||
@@ -49,7 +49,7 @@ def build_tables():
|
||||
sys.path.pop(0)
|
||||
|
||||
|
||||
-def install_jupyter_hook():
|
||||
+def install_jupyter_hook(root=None):
|
||||
if not HAVE_JUPYTER:
|
||||
print('Could not install Jupyter kernel spec, please install Jupyter/IPython.')
|
||||
return
|
||||
@@ -73,13 +73,13 @@ def install_jupyter_hook():
|
||||
with open(os.path.join(d, 'kernel.json'), 'w') as f:
|
||||
json.dump(spec, f, sort_keys=True)
|
||||
print('Installing Jupyter kernel spec...')
|
||||
- install_kernel_spec(d, 'xonsh', user=('--user' in sys.argv), replace=True)
|
||||
+ KernelSpecManager().install_kernel_spec(d, 'xonsh', user=('--user' in sys.argv), replace=True, prefix=root)
|
||||
|
||||
class xinstall(install):
|
||||
def run(self):
|
||||
clean_tables()
|
||||
build_tables()
|
||||
- install_jupyter_hook()
|
||||
+ install_jupyter_hook(self.root if self.root else None)
|
||||
install.run(self)
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
From ed8b6ce37c76f62585a5cc86ac99194bf7115a84 Mon Sep 17 00:00:00 2001
|
||||
From: selepo <po.lenhoff@gmail.com>
|
||||
Date: Wed, 18 Nov 2015 18:50:17 +0100
|
||||
Subject: [PATCH] bugfix for issue 466 with xonsh.bat installed in non-windows
|
||||
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 0fb407b..7c10805 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -77,7 +77,7 @@ def main():
|
||||
platforms='Cross Platform',
|
||||
classifiers=['Programming Language :: Python :: 3'],
|
||||
packages=['xonsh'],
|
||||
- scripts=['scripts/xonsh', 'scripts/xonsh.bat'],
|
||||
+ scripts=['scripts/xonsh'] if 'win' not in sys.platform else ['scripts/xonsh.bat'],
|
||||
cmdclass={'install': xinstall, 'sdist': xsdist},
|
||||
)
|
||||
if HAVE_SETUPTOOLS:
|
@ -1,20 +0,0 @@
|
||||
#Patch by Jesus Rivero <neurogeek@gentoo.org>
|
||||
#Sent upstream on 2011-07-20
|
||||
diff -uNr yolk-0.4.1.orig/yolk/cli.py yolk-0.4.1/yolk/cli.py
|
||||
--- yolk-0.4.1.orig/yolk/cli.py 2008-08-11 10:36:54.000000000 -0400
|
||||
+++ yolk-0.4.1/yolk/cli.py 2011-07-20 10:53:26.000000000 -0400
|
||||
@@ -830,10 +830,12 @@
|
||||
"""
|
||||
pprinter = pprint.PrettyPrinter()
|
||||
try:
|
||||
- pprinter.pprint(pkg_resources.get_entry_map(self.options.entry_map))
|
||||
+ entry_map = pkg_resources.get_entry_map(self.options.show_entry_map)
|
||||
+ if entry_map:
|
||||
+ pprinter.pprint(entry_map)
|
||||
except pkg_resources.DistributionNotFound:
|
||||
self.logger.error("Distribution not found: %s" \
|
||||
- % self.options.entry_map)
|
||||
+ % self.options.show_entry_map)
|
||||
return 1
|
||||
return 0
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST ethon-0.8.1.gem 55296 SHA256 327a3413c1aac2be7d5a56ea4fdaf6e0c8878d9ce97732a10463e8aec9dedb29 SHA512 9626f4e4c98a8cdd925b528044ac1ee2bbff594ccb521db44c642019b4c99e05cab71ca567b85036683856a2cfe7dc663cede1ba815a32ed69ee9b678fe9dd76 WHIRLPOOL f01f154caad31ee6512a2a7567fe8d014dff6476d5438b86c21dda3500439bb5845d039e30efe8bf85e242ce3eff63d7798cc6834cfd4f03388d2fe65c85f5b7
|
||||
DIST ethon-0.9.0.gem 55808 SHA256 8e17d26b47c9fd335747c7c4d2fc2670d892121b1113ef9f3e28a5906ba48b1c SHA512 5061977f6a94b5cf03f361844aea1be38436810fc88d1faa37f12d798050e55da30530d46cda295d7623d810c2286b5683b638077cf01c0b90127bb78b298868 WHIRLPOOL 9311f6ad4ec099d6c41417779075ce896c7f23203348ead7824bf236ffd4b0f68cba8f4037c223ebfa263b593d5936043da270b76ea665076151f24df6352543
|
||||
DIST ethon-0.9.1.gem 55808 SHA256 c6b19fc2590a701b860f76ac1aee6fa5cde4a08dbf289c0a42c359f8c7b6758d SHA512 2104a463283340513c02ad97a6578140cf3d23bee664de40fa0ae4a7bb8aedac69ef09310edf3582f83bff5fa7d65feec9ace663568b9cb798833f2db61adb80 WHIRLPOOL 35498aa205a045d7bf13a5c2ccdcb6dc24524b3348e6a191a77f7fd8e3bbfcba79967f6bca2dbfc6dd79f351b1ded2b941cc4f2c2f66abaa838de77f78e31158
|
||||
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Very lightweight libcurl wrapper"
|
||||
HOMEPAGE="https://github.com/typhoeus/ethon"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND+=" net-misc/curl"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ffi-1.3.0"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/sinatra dev-ruby/mime-types )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -e '/bundler/I s:^:#:' \
|
||||
-e '1igem "sinatra"' -i Rakefile spec/spec_helper.rb || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST android-studio-ide-143.2915827-linux.zip 305181285 SHA256 baaa0555c96b542d047bce3b03ff41e38f422bed9e1a7f1e55fb1c4b3daac160 SHA512 42f0e6ebd51fc92f64f3bcfa980df3853922e6bff043ae23fbd7564b79cb905b30927bbee534613a52a92d24e60bad89ee577a06e382b301d5f7f773c166ce07 WHIRLPOOL a344331a3b308b2497e68ac5e13f4d1ef224c02e44d2fcf6cd48f0981bd25a4c87c9355f014fda23a5241e76719a5a6f79ed2424387c70fffc7c4cf964e526b9
|
||||
DIST android-studio-ide-143.3101438-linux.zip 286664165 SHA256 722f944124c395d0c82565257d23441ebc77775f7fae47099f8cd48c571c9ff6 SHA512 3890dcec1c773732a4b54e6e6dd90f9f9b63c396fb0d2712fa4a5b2b8487a055e910f983a8c4da8e3e5b103021267415eb6065f291bd35a633c4723e5cb648cb WHIRLPOOL f81dbb0c9e4f7a4ac6ff93dbf75022ac9d557503fd89901a24dc9afdf2850cb23c931c52a01101e7fbe87cb5e076f998823a2d7b7e2103d682fdbe7c2b9755b9
|
||||
DIST android-studio-ide-145.3276617-linux.zip 449256851 SHA256 b4b6c82c4d60be9887ac219ebc4efd3cba2508d1a2049242cbf1be3ca55dfe0c SHA512 71310d6b9fb071fc6b9810765389a2311a62cc706cbe71b2fe466167fb2ded7ebcc2441fe49d34a2942bb79d516f6acfcba5e214e1af42c9e2bc988a28c6fb79 WHIRLPOOL 19250788e2355fe85a30731da70d89ff7bf62b95afc17dbd18a82eb1e1b80b1d7325b2f57efbd19e107e30aa46b8a164056273aebe2c82f812df4661ed0c2fbd
|
||||
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils versionator
|
||||
|
||||
RESTRICT="strip"
|
||||
QA_PREBUILT="opt/${PN}/bin/libbreakgen*.so opt/${PN}/bin/fsnotifier*"
|
||||
if [[ $(get_version_component_count) -eq 6 ]]; then
|
||||
STUDIO_V=$(get_version_component_range 1-4)
|
||||
BUILD_V=$(get_version_component_range 5-6)
|
||||
else
|
||||
STUDIO_V=$(get_version_component_range 1-3)
|
||||
BUILD_V=$(get_version_component_range 4-5)
|
||||
fi
|
||||
|
||||
DESCRIPTION="A new Android development environment based on IntelliJ IDEA"
|
||||
HOMEPAGE="http://developer.android.com/sdk/installing/studio.html"
|
||||
SRC_URI="https://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="selinux"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="app-arch/zip"
|
||||
RDEPEND=">=virtual/jdk-1.7
|
||||
selinux? ( sec-policy/selinux-android )
|
||||
>=app-arch/bzip2-1.0.6-r4
|
||||
>=dev-libs/expat-2.1.0-r3
|
||||
>=dev-libs/libffi-3.0.13-r1
|
||||
>=media-libs/fontconfig-2.10.92
|
||||
>=media-libs/freetype-2.5.5
|
||||
>=media-libs/libpng-1.2.51
|
||||
>=media-libs/mesa-10.2.8
|
||||
|| ( >=sys-libs/ncurses-5.9-r3:5/5 >=sys-libs/ncurses-5.9-r3:0/5 )
|
||||
>=sys-libs/zlib-1.2.8-r1
|
||||
>=x11-libs/libX11-1.6.2
|
||||
>=x11-libs/libXau-1.0.7-r1
|
||||
>=x11-libs/libXdamage-1.1.4-r1
|
||||
>=x11-libs/libXdmcp-1.1.1-r1
|
||||
>=x11-libs/libXext-1.3.2
|
||||
>=x11-libs/libXfixes-5.0.1
|
||||
>=x11-libs/libXrender-0.9.8
|
||||
>=x11-libs/libXxf86vm-1.1.3
|
||||
>=x11-libs/libdrm-2.4.46
|
||||
>=x11-libs/libxcb-1.9.1
|
||||
>=x11-libs/libxshmfence-1.1"
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_install() {
|
||||
local dir="/opt/${PN}"
|
||||
|
||||
insinto "${dir}"
|
||||
doins -r *
|
||||
fperms 755 "${dir}/bin/studio.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64"
|
||||
|
||||
newicon "bin/studio.png" "${PN}.png"
|
||||
make_wrapper ${PN} ${dir}/bin/studio.sh
|
||||
make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST debootstrap_1.0.75.tar.gz 61897 SHA256 4fdc5daf7bce3816a7faa916e7cbd6d45357f241f0d845bec0015c06fd7c7cd6 SHA512 bbf4a9e33ee0b398064aa12ba77c7e2ad8fba0e050a8d821341c9c065f8554476aaa6c67f93e3255f85828b98643080f331aee9de6a901a9d5fb5cbcb8ed6beb WHIRLPOOL dca8e385102ef03ea970320fc1fea8a8f44fc09b78384591911df046afb0f14157e90fafb3cf8c021ea7568e22eea9f26674eb07cfb25b21ed72810cf0957c7a
|
||||
DIST debootstrap_1.0.81.tar.gz 64394 SHA256 344c7f841504c262d5088e9618f1d5f79bc122bffbb1dce2873c5e38029bdfb3 SHA512 3869f98070d3a5d2f41824fa9caaae97cfa408e01f356358568df91015970bf3624e93ed4b7666a086d42883fcb1d061f5854a8ece90d0ffdb685c898cb9462d WHIRLPOOL aa3ee424392fb0f26471ce1fc68418c2026cf452506e89388bdd9c29d0cf002b98aa67c0ad8997ec1d13679b22cb3823fe9ea3cd53e39c2cc706cc992f3e0b6d
|
||||
DIST debootstrap_1.0.82.tar.gz 64344 SHA256 db0dfad15d5338a8cdbcc3bbfda8dc59c58edf07511303f31746ef6fcc733835 SHA512 0279477b90271c12a4d73b075d45263d09dfe0f3d78e03d316a20644d697e40b65025e24fb6804f97d64eef79a7d250ea87f4557eb444ef37732bb8363cec718 WHIRLPOOL 3bf045167d14b75db4632071028b89dc96223cf950f2f4ed8c3761143ec8c17ac0c992b4fe286586aa0adfc0ec8e3cbb03de351842694f251a63682817695146
|
||||
DIST debootstrap_1.0.83.tar.gz 65551 SHA256 64d571e8807643ce098e2c4eff0ce17ae246569f1f07224244649be36eaac6b4 SHA512 5d0476f4be5dbfb5877b91499483079391296e2e04d11247f5ffd4b776851eacc85ac4036470cf742a3e9d81c53a061c8e8e9dcea952c9bf2ea7e856331d0fd3 WHIRLPOOL a4f762cefb12492f36a0cf191ce6cc250263c8b713a6b0661eceb89d83e07ada04fda4b74f73a599f77463c5a110f5a5015c4e672b27bd0aaa52fafa3f9c98be
|
||||
DIST devices.tar.gz 47835 SHA256 0d93f93c8b21160069d14e74f8f990a2e0e1e5a90dc828b29e6b3f5aa5829e48 SHA512 994ec8d72e3d52d2d872f7ff0da2336e4cbd3a5fa73bb6cdb9e06f5e7f5b8c69cea639c738fdba1186f382d6dcf62e7746fface664bfbd744aac24b16f034432 WHIRLPOOL 222963bb920e1311bc2f481bba04e49f386b60cce6ce0576424896277e0c4fc6a339d4403d587744c32b0bfb1db6391f200fa8d66117e3f21e1c12f35365d732
|
||||
|
@ -1 +1,2 @@
|
||||
DIST gnuchess-6.2.2.tar.gz 747054 SHA256 7776c114eeb5889dea69dc4715a3622ec57f65efab667987e7d7183cc05381a8 SHA512 3b9bbf8999301a867f6b0e277ee01240472553d4e6dd43b9c479558b3bba687ebaa188f23cc8dbcb8656ddbd5c9511d89cf68ae717c55824f0c797460c4ab101 WHIRLPOOL 454ee7ec902ffd342142d9d04ccb6cf0d4f6bfcd2575b039d39adb78c0b016b8971609016754704750edbc13b2ec962639cf306c27ca460ffaa8009764686eee
|
||||
DIST gnuchess-6.2.3.tar.gz 757846 SHA256 78999176b2f2b5e0325bcc69749b7b2cefb7b1ef4f02d101fa77ae24a1b31b82 SHA512 a5e65fedc8459356e0e0b4dc4438f068bc0239d368138a716365a436e34def97e9f85005219b54e8feb644d42375a1eafde01386c793c43e3c42548eb8c06231 WHIRLPOOL 0fb713e454dcc50aa1ab6bb7e5ac0d01f902d81abfa0413301b059a6386c4cfd3b79a7373b140e46c4b5f6e4c635115f844efcf24c004d8b6d6b447e70c7f753
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Console based chess interface"
|
||||
HOMEPAGE="https://www.gnu.org/software/chess/chess.html"
|
||||
SRC_URI="mirror://gnu/chess/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
src_configure() {
|
||||
strip-flags # bug #199097
|
||||
econf --without-readline # bug 491088
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST gimp-2.8.14.tar.bz2 20440077 SHA256 d82a958641c9c752d68e35f65840925c08e314cea90222ad845892a40e05b22d SHA512 533f6b931624d36525cb2f3fbc27fe27565d761bbe26873bb5445c06c01523c044d1814363a8cd76b6e381440db4c6e302b0d3f7a9e5aac7f60072770552f1ba WHIRLPOOL 8fd7b0fd5f8627b2df83481f7956727acd42eafcdc9c9116713d60faf8578005c2fb1e1d729f3b2c836a90e9bab063e477f9da5285e5c43a79f2dbe441a0565b
|
||||
DIST gimp-2.8.16.tar.bz2 20847212 SHA256 95e3857bd0b5162cf8d1eda8c78b741eef968c3e3ac6c1195aaac2a4e2574fb7 SHA512 480b49a7fc7775aa924bf2e7a5a5165b94df1318fc8439faf2e4263dd26efbca9d1d8ccc5b9b52114c33d2363e087d5a364fab86077c27bc19e58383880b13fd WHIRLPOOL 26e8e26cea15a4689a2efbecbaf1425f0bb645b9cf4f380ad2047e52606bb8d5f64261cd12b40d603a86f0d5e253dffcac18990a461c601294931a3a87e1d334
|
||||
DIST gimp-2.8.18.tar.bz2 20824198 SHA256 39dd2247c678deaf5cc664397d3c6bd4fb910d3472290fd54b52b441b5815441 SHA512 64b259aa5aa9d5afbf1da148ec7f162841f62db2f903c480710273362df62f00344e276b705a13619855e54948aabcd1d9a3788993360f2a52a58189b62fec2f WHIRLPOOL bd9c2b76ecf8de027ad1d99613135c065226be1cf2db28da50515ede376fb73800d4862944603adf9a14e5982ea389c52f4be183e3fa3bc3f61e25c9e1863c5d
|
||||
DIST gimp-2.9.2.tar.bz2 21370301 SHA256 85bed436b868b2e45ffab48d1bf5743006932770e8cca3322e345aefc000e29e SHA512 5c870a36d62de5fde0c7799dd28b78daca2d349bb7fdbc7b940db89ab00fc025256408b581ba6b4d795d6db9bc25672cf6a45552b22c3eae053ce94a2201fa37 WHIRLPOOL cfa5300659f97c75b7b4f4fbc6f3ad3d03a7c0e97153749d224859b8b618d041f8cbe9232578d720803589d8a48bc7ea9a785294991b626ba7b458512a3d4b2e
|
||||
DIST gimp-2.9.4.tar.bz2 24290911 SHA256 c13ac540fd0bd566d7bdd404afe8a04ec0cb1e547788995cd4e8b218c1057b8a SHA512 fb7e4bb08a3e3a87948bfeb4688d624ff8f9e452a1cd27b583bf40cda1a176b44d7d1dca6cfb52fbd930a728ab5550a1fa74730cc1dd1e7f7f8b9cb131e0f434 WHIRLPOOL 9c073f3a30f43bd36f7377b70037f09a74c033ff591b6fff06cd6cb91ca8b44109d4c6b67248c4b75715900f8f3108bc3f32c8a54ae9ca9caac9054711cac415
|
||||
|
@ -0,0 +1,170 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit versionator virtualx autotools eutils gnome2 fdo-mime multilib python-single-r1
|
||||
|
||||
DESCRIPTION="GNU Image Manipulation Program"
|
||||
HOMEPAGE="http://www.gimp.org/"
|
||||
SRC_URI="mirror://gimp/v$(get_version_component_range 1-2)/${P}.tar.bz2"
|
||||
LICENSE="GPL-3 LGPL-3"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
|
||||
IUSE="alsa aalib altivec aqua bzip2 curl dbus debug doc exif gnome postscript jpeg jpeg2k lcms cpu_flags_x86_mmx mng pdf png python smp cpu_flags_x86_sse svg tiff udev webkit wmf xpm"
|
||||
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" linguas_${lang}"
|
||||
done
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2.30.2:2
|
||||
>=dev-libs/atk-2.2.0
|
||||
>=x11-libs/gtk+-2.24.10:2
|
||||
>=x11-libs/gdk-pixbuf-2.24.1:2
|
||||
>=x11-libs/cairo-1.10.2
|
||||
>=x11-libs/pango-1.29.4
|
||||
xpm? ( x11-libs/libXpm )
|
||||
>=media-libs/freetype-2.1.7
|
||||
>=media-libs/fontconfig-2.2.0
|
||||
sys-libs/zlib
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
x11-themes/hicolor-icon-theme
|
||||
>=media-libs/babl-0.1.10
|
||||
>=media-libs/gegl-0.2.0:0
|
||||
aalib? ( media-libs/aalib )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
aqua? ( x11-libs/gtk-mac-integration )
|
||||
curl? ( net-misc/curl )
|
||||
dbus? ( dev-libs/dbus-glib )
|
||||
gnome? ( gnome-base/gvfs )
|
||||
webkit? ( >=net-libs/webkit-gtk-1.6.1:2 )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
exif? ( >=media-libs/libexif-0.6.15 )
|
||||
lcms? ( >=media-libs/lcms-2.2:2 )
|
||||
mng? ( media-libs/libmng )
|
||||
pdf? ( >=app-text/poppler-0.12.4[cairo] )
|
||||
png? ( >=media-libs/libpng-1.2.37:0 )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]
|
||||
)
|
||||
tiff? ( >=media-libs/tiff-3.5.7:0 )
|
||||
svg? ( >=gnome-base/librsvg-2.36.0:2 )
|
||||
wmf? ( >=media-libs/libwmf-0.2.8 )
|
||||
x11-libs/libXcursor
|
||||
sys-libs/zlib
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
udev? ( virtual/libgudev:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/findutils
|
||||
virtual/pkgconfig
|
||||
>=dev-util/intltool-0.40.1
|
||||
>=sys-devel/gettext-0.19
|
||||
doc? ( >=dev-util/gtk-doc-1 )
|
||||
>=sys-devel/libtool-2.2
|
||||
>=sys-devel/automake-1.11
|
||||
dev-util/gtk-doc-am" # due to our call to eautoreconf below (bug #386453)
|
||||
|
||||
DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
|
||||
|
||||
S="${WORKDIR}"/${P}
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
pkg_setup() {
|
||||
G2CONF="--enable-default-binary \
|
||||
--disable-silent-rules \
|
||||
$(use_with !aqua x) \
|
||||
$(use_with aalib aa) \
|
||||
$(use_with alsa) \
|
||||
$(use_enable altivec) \
|
||||
$(use_with bzip2) \
|
||||
$(use_with curl libcurl) \
|
||||
$(use_with dbus) \
|
||||
$(use_with gnome gvfs) \
|
||||
$(use_with webkit) \
|
||||
$(use_with jpeg libjpeg) \
|
||||
$(use_with jpeg2k libjasper) \
|
||||
$(use_with exif libexif) \
|
||||
$(use_with lcms lcms lcms2) \
|
||||
$(use_with postscript gs) \
|
||||
$(use_enable cpu_flags_x86_mmx mmx) \
|
||||
$(use_with mng libmng) \
|
||||
$(use_with pdf poppler) \
|
||||
$(use_with png libpng) \
|
||||
$(use_enable python) \
|
||||
$(use_enable smp mp) \
|
||||
$(use_enable cpu_flags_x86_sse sse) \
|
||||
$(use_with svg librsvg) \
|
||||
$(use_with tiff libtiff) \
|
||||
$(use_with udev gudev) \
|
||||
$(use_with wmf) \
|
||||
--with-xmc \
|
||||
$(use_with xpm libxpm) \
|
||||
--without-xvfb-run"
|
||||
|
||||
if use python; then
|
||||
python-single-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.8.14-blend-center.patch # bug 558878
|
||||
epatch "${FILESDIR}"/${PN}-2.7.4-no-deprecation.patch # bug 395695, comment 9 and 16
|
||||
epatch "${FILESDIR}"/${PN}-2.8.10-clang.patch # bug 449370 compile with clang
|
||||
|
||||
sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
|
||||
eautoreconf # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
_clean_up_locales() {
|
||||
einfo "Cleaning up locales..."
|
||||
for lang in ${LANGS}; do
|
||||
use "linguas_${lang}" && {
|
||||
einfo "- keeping ${lang}"
|
||||
continue
|
||||
}
|
||||
rm -Rf "${ED}"/usr/share/locale/"${lang}" || die
|
||||
done
|
||||
}
|
||||
|
||||
src_test() {
|
||||
Xemake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
if use python; then
|
||||
python_optimize
|
||||
fi
|
||||
|
||||
# Workaround for bug #321111 to give GIMP the least
|
||||
# precedence on PDF documents by default
|
||||
mv "${ED}"/usr/share/applications/{,zzz-}gimp.desktop || die
|
||||
|
||||
prune_libtool_files --all
|
||||
|
||||
# Prevent dead symlink gimp-console.1 from downstream man page compression (bug #433527)
|
||||
local gimp_app_version=$(get_version_component_range 1-2)
|
||||
mv "${ED}"/usr/share/man/man1/gimp-console{-${gimp_app_version},}.1 || die
|
||||
|
||||
_clean_up_locales
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST gogglesmm-1.1.0.tar.gz 1396485 SHA256 60d2f1dc0cd1d5f7e5d50d7ca1423091f463c35b573c6b2226be34060513b916 SHA512 6d78fdd23167c2ddbb24c10c6639fab68643c4cf5f621ee650f7ab243bcff50732aa306279a7869b51e7242908c72cd0e7e379317138d2bf8683f094e355f3cd WHIRLPOOL 768cbe2f6d585de693c787396ce85080f2f75008a33c63a322e1b1eddf7d55ac0e0e66c71e6583ffc63df34b5776c016bf9d4842286db79724458257a11fd9d2
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Fast and light music player"
|
||||
HOMEPAGE="http://gogglesmm.github.io/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+dbus +flac +mad +vorbis +ogg +opus +aac +pulseaudio +opengl nls"
|
||||
|
||||
RDEPEND="x11-libs/fox:=
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
dev-db/sqlite
|
||||
media-libs/taglib
|
||||
dev-libs/expat
|
||||
dev-libs/libgcrypt:=
|
||||
dbus? ( sys-apps/dbus )
|
||||
flac? ( media-libs/flac )
|
||||
mad? ( media-libs/libmad )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
ogg? ( media-libs/libogg )
|
||||
opus? ( media-libs/opus )
|
||||
aac? ( media-libs/faad2 )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
opengl? ( media-libs/libepoxy virtual/glu )"
|
||||
DEPEND="dev-util/cmake ${RDEPEND}"
|
||||
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_DBUS="$(usex dbus)"
|
||||
-DWITH_OPENGL="$(usex opengl)"
|
||||
-DWITH_NLS="$(usex nls)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zx2c4@gentoo.org</email>
|
||||
<name>Jason A. Donenfeld</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>sound@gentoo.org</email>
|
||||
<name>Gentoo Sound project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">gogglesmm/gogglesmm</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST quodlibet-3.5.1.tar.gz 3421676 SHA256 f168606ce931c30fcd478d354916bb07ae4ca9a61113af9b988e33f73adcb6c6 SHA512 c14447b17d15ad65fc54e4c81b26b190fa4622b1d83b0b7a4c85e42e332585fe067f93a2f0236bab20186072fb2af0a334bb2741660edb282f1e5e7a00a23c9d WHIRLPOOL 733a7bc88797561a27d2757422bb65bb09f366f91824772b54ac99aefa95b8769f1f566772424a8a819fc7e861bead048ab5c2f4ffc4656d46235454739d09b0
|
||||
DIST quodlibet-3.6.2.tar.gz 3454566 SHA256 289233ddd26d3d436139e63b01177ead3017b5aa51ff4bd6e6198ec177c6e318 SHA512 2551f5149feb4125087f2102e1e0cfb4b810b92b3ffd9f2b1ed37a7b821933c6b7d718c6b3674569eb2dfe1fd75176bf4d5e4b6587cbbb4f405229dcd7b4a850 WHIRLPOOL ef3acbf8e809fbcd2e638347de4c6af328919114adb9ee3aa17a220a42e2fee96177598a7730a48cfa7d977f055a58a7442694d5bd6c92e953732f4fa4303b05
|
||||
DIST quodlibet-3.7.0.tar.gz 3651906 SHA256 a7bf4bd1dadd6e0156380c5e82fbde396106da15a5600484f54c6904d2d9e550 SHA512 900fd49cc2ece6e681116962529e6648ed487fcb7492832940ad2210bf47a4a0fefb0500c1a1477bd440d2cb5be9a330a1b0e4a87b7d332d710e25bf087779fb WHIRLPOOL 5dc12fbe05b2a6c4ca86d510498bb6376e37cda8cfbda6614686cc543ef1ac926167ef03997caf40e83a136c8391dfb9aaa369106204e3a0cd57778340d099af
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue