parent
ca3c9de3de
commit
7928431e5f
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="all-in-one SFV checksum utility"
|
||||
HOMEPAGE="http://bsdsfv.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~m68k ~ppc ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-64bit.patch )
|
||||
|
||||
src_compile() {
|
||||
emake STRIP=true CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bsdsfv
|
||||
dodoc README MANUAL
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A set of tools for DVD+RW/-RW drives"
|
||||
HOMEPAGE="http://fy.chalmers.se/~appro/linux/DVD+RW/"
|
||||
SRC_URI="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/cdrtools"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/m4"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0-sysmacros.patch
|
||||
"${FILESDIR}"/${PN}-7.0-wctomb-r1.patch
|
||||
"${FILESDIR}"/${PN}-7.0-glibc2.6.90.patch
|
||||
"${FILESDIR}"/${PN}-7.0-dvddl-r1.patch
|
||||
"${FILESDIR}"/${PN}-7.0-wexit.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Linux compiler flags only include -O2 and are incremental.
|
||||
sed -i '/FLAGS/s:-O2::' Makefile.m4 || die "failed to sed out FLAGS"
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake SHELL="${EPREFIX}"/bin/bash CC="$(tc-getCC)" CXX="$(tc-getCXX)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake SHELL="${EPREFIX}"/bin/bash prefix="${ED}/usr" install
|
||||
dodoc index.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
||||
elog 'If you receive an error, "unable to anonymously mmap...'
|
||||
elog 'Resource temporarily unavailable" when running growisofs,'
|
||||
elog 'then you may need to run "ulimit -l unlimited".'
|
||||
fi
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
From 3f9235841ba4494962b3c7dafcd16fd3ff5f6575 Mon Sep 17 00:00:00 2001
|
||||
From: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
Date: Sat, 8 Apr 2017 20:27:17 +0300
|
||||
Subject: [PATCH] build: include sys/sysmacros.h for recent glibc
|
||||
|
||||
https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html
|
||||
|
||||
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
|
||||
---
|
||||
tcplay.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tcplay.c b/tcplay.c
|
||||
index cd882cf..a6d4655 100644
|
||||
--- a/tcplay.c
|
||||
+++ b/tcplay.c
|
||||
@@ -47,6 +47,7 @@
|
||||
#if defined(__linux__)
|
||||
#include <libdevmapper.h>
|
||||
#include <uuid/uuid.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#elif defined(__DragonFly__)
|
||||
#include <libdm.h>
|
||||
#include <uuid.h>
|
||||
--
|
||||
2.10.2
|
||||
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit elisp-common eutils
|
||||
|
||||
DESCRIPTION="Casting SPELs in Lisp - A Comic Book (Emacs Lisp Edition)"
|
||||
HOMEPAGE="https://code.google.com/p/casting-spels-emacs/"
|
||||
SRC_URI="https://casting-spels-emacs.googlecode.com/files/${PN}-v${PV}.zip"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/emacs"
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
edos2unix *.txt html/*.html {lisp,test}/*.el
|
||||
|
||||
# needs cl extensions
|
||||
epatch "${FILESDIR}/${P}-require-cl.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
elisp-install ${PN} lisp/*.el || die
|
||||
dohtml -r html/. images || die
|
||||
dosym html/images /usr/share/doc/${PF}/images
|
||||
dosym ${SITELISP}/${PN} /usr/share/doc/${PF}/lisp
|
||||
dodoc README.txt test/walk-through-commands.el
|
||||
}
|
@ -0,0 +1,405 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-any-r1 multiprocessing rpm
|
||||
|
||||
DESCRIPTION="A hackable text editor for the 21st Century"
|
||||
HOMEPAGE="https://atom.io"
|
||||
MY_PV="${PV//_/-}"
|
||||
|
||||
ELECTRON_V=1.3.13
|
||||
ELECTRON_SLOT=1.3
|
||||
|
||||
# All binary packages depend on this
|
||||
NAN_V=2.4.0
|
||||
|
||||
# Keep dep versions in sync with atom/package.json
|
||||
CACHED_RUN_IN_THIS_CONTEXT_V=0.4.1
|
||||
GIT_UTILS_V=4.1.2
|
||||
NODE_NSLOG_V=3.0.0
|
||||
NODE_ONIGURUMA_V=6.1.0
|
||||
NODE_PATHWATCHER_V=6.8.0
|
||||
NODE_RUNAS_V=3.1.1
|
||||
SCROLLBAR_STYLE_V=3.2.0
|
||||
SPELL_CHECK_V=0.70.2
|
||||
|
||||
# text-buffer dependencies
|
||||
SUPERSTRING_V=1.1.0
|
||||
|
||||
# apm dependency
|
||||
NODE_KEYTAR_V=3.0.2
|
||||
|
||||
# atom-keymap dependency
|
||||
KEYBOARD_LAYOUT_V=2.0.11
|
||||
|
||||
# symbols-view dependency
|
||||
NODE_CTAGS_V=3.0.0
|
||||
|
||||
# spell-check dependency
|
||||
NODE_SPELLCHECKER_V=3.2.3
|
||||
|
||||
ASAR_V=0.12.1
|
||||
|
||||
# The x86_64 arch below is irrelevant, as we will rebuild all binary packages.
|
||||
SRC_URI="
|
||||
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/atom.x86_64.rpm -> atom-${MY_PV}.rpm
|
||||
https://github.com/elprans/asar/releases/download/v${ASAR_V}-gentoo/asar-build.tar.gz -> asar-${ASAR_V}.tar.gz
|
||||
https://github.com/nodejs/nan/archive/v${NAN_V}.tar.gz -> nodejs-nan-${NAN_V}.tar.gz
|
||||
https://github.com/atom/cached-run-in-this-context/archive/v${CACHED_RUN_IN_THIS_CONTEXT_V}.tar.gz -> atom-cached-run-in-this-context-${CACHED_RUN_IN_THIS_CONTEXT_V}.tar.gz
|
||||
https://github.com/atom/node-ctags/archive/v${NODE_CTAGS_V}.tar.gz -> atom-node-ctags-${NODE_CTAGS_V}.tar.gz
|
||||
https://github.com/atom/git-utils/archive/v${GIT_UTILS_V}.tar.gz -> atom-git-utils-${GIT_UTILS_V}.tar.gz
|
||||
https://github.com/atom/keyboard-layout/archive/v${KEYBOARD_LAYOUT_V}.tar.gz -> atom-keyboard-layout-${KEYBOARD_LAYOUT_V}.tar.gz
|
||||
https://github.com/atom/superstring/archive/v${SUPERSTRING_V}.tar.gz -> atom-superstring-${SUPERSTRING_V}.tar.gz
|
||||
https://github.com/atom/node-keytar/archive/v${NODE_KEYTAR_V}.tar.gz -> atom-node-keytar-${NODE_KEYTAR_V}.tar.gz
|
||||
https://github.com/atom/node-nslog/archive/v${NODE_NSLOG_V}.tar.gz -> atom-node-nslog-${NODE_NSLOG_V}.tar.gz
|
||||
https://github.com/atom/node-oniguruma/archive/v${NODE_ONIGURUMA_V}.tar.gz -> atom-node-oniguruma-${NODE_ONIGURUMA_V}.tar.gz
|
||||
https://github.com/atom/node-pathwatcher/archive/v${NODE_PATHWATCHER_V}.tar.gz -> atom-node-pathwatcher-${NODE_PATHWATCHER_V}.tar.gz
|
||||
https://github.com/atom/node-runas/archive/v${NODE_RUNAS_V}.tar.gz -> atom-node-runas-${NODE_RUNAS_V}.tar.gz
|
||||
https://github.com/atom/scrollbar-style/archive/v${SCROLLBAR_STYLE_V}.tar.gz -> atom-scrollbar-style-${SCROLLBAR_STYLE_V}.tar.gz
|
||||
https://github.com/atom/node-spellchecker/archive/v${NODE_SPELLCHECKER_V}.tar.gz -> atom-node-spellchecker-${NODE_SPELLCHECKER_V}.tar.gz
|
||||
"
|
||||
|
||||
BINMODS="
|
||||
cached-run-in-this-context
|
||||
node-ctags
|
||||
git-utils
|
||||
keyboard-layout
|
||||
node-nslog
|
||||
node-oniguruma
|
||||
node-pathwatcher
|
||||
node-runas
|
||||
node-keytar
|
||||
scrollbar-style
|
||||
node-spellchecker
|
||||
superstring
|
||||
"
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=app-text/hunspell-1.3.3:=
|
||||
>=dev-libs/libgit2-0.23:=[ssh]
|
||||
>=gnome-base/libgnome-keyring-3.12:=
|
||||
>=dev-libs/oniguruma-5.9.5:=
|
||||
>=dev-util/ctags-5.8
|
||||
>=dev-util/electron-1.3.5:${ELECTRON_SLOT}
|
||||
x11-libs/libxkbfile"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!sys-apps/apmd
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
get_install_suffix() {
|
||||
local c=(${SLOT//\// })
|
||||
local slot=${c[0]}
|
||||
local suffix
|
||||
|
||||
if [[ "${slot}" == "0" ]]; then
|
||||
suffix=""
|
||||
else
|
||||
suffix="-${slot}"
|
||||
fi
|
||||
|
||||
echo -n "${suffix}"
|
||||
}
|
||||
|
||||
get_install_dir() {
|
||||
echo -n "/usr/$(get_libdir)/atom$(get_install_suffix)"
|
||||
}
|
||||
|
||||
get_electron_dir() {
|
||||
echo -n "/usr/$(get_libdir)/electron-${ELECTRON_SLOT}"
|
||||
}
|
||||
|
||||
get_electron_nodedir() {
|
||||
echo -n "/usr/include/electron-${ELECTRON_SLOT}/node/"
|
||||
}
|
||||
|
||||
enode_electron() {
|
||||
"$(get_electron_dir)"/node $@
|
||||
}
|
||||
|
||||
enodegyp_atom() {
|
||||
local apmpath="/usr/share/atom/resources/app/apm"
|
||||
local nodegyp="${S}/${apmpath}/node_modules/node-gyp/bin/node-gyp.js"
|
||||
|
||||
PATH="$(get_electron_dir):${PATH}" \
|
||||
enode_electron "${nodegyp}" \
|
||||
--nodedir="$(get_electron_nodedir)" $@ || die
|
||||
}
|
||||
|
||||
easar() {
|
||||
local asar="${WORKDIR}/$(package_dir asar)/node_modules/asar/bin/asar"
|
||||
echo "asar" $@
|
||||
enode_electron "${asar}" $@ || die
|
||||
}
|
||||
|
||||
package_dir() {
|
||||
local binmod="${1//-/_}"
|
||||
local binmod_v="${binmod^^}_V"
|
||||
echo -n ${1}-${!binmod_v}
|
||||
}
|
||||
|
||||
_unpack_npm_package() {
|
||||
local a="${1}" basename suffix
|
||||
|
||||
basename=${a%.*}
|
||||
suffix=${basename##*.}
|
||||
if [[ "${suffix}" == "tar" ]]; then
|
||||
basename=${basename%.*}
|
||||
fi
|
||||
|
||||
unpack ${a}
|
||||
mv package "${basename}" || die
|
||||
}
|
||||
|
||||
_have_patches_for() {
|
||||
local _patches="${1}-*.patch" _find
|
||||
_find=$(find "${FILESDIR}" -maxdepth 1 -name "${_patches}" -print -quit)
|
||||
test -n "$_find"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local a
|
||||
|
||||
for a in ${A} ; do
|
||||
case ${a} in
|
||||
*.rpm) srcrpm_unpack "${a}" ;;
|
||||
*) unpack "${a}" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
mkdir "${WORKDIR}/atom-${MY_PV}" || die
|
||||
mv "${WORKDIR}/usr" "${WORKDIR}/atom-${MY_PV}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
local patch binmod _s nan_s="${WORKDIR}/nan-${NAN_V}"
|
||||
|
||||
cd "${S}/usr/share/atom/resources/app" || die
|
||||
eapply "${FILESDIR}/${PN}-python.patch"
|
||||
eapply "${FILESDIR}/${PN}-unbundle-electron.patch"
|
||||
|
||||
sed -i -e "s|{{NPM_CONFIG_NODEDIR}}|$(get_electron_nodedir)|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_PATH}}|$(get_electron_dir)/electron|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_RESOURCE_PATH}}|${install_dir}/app.asar|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
local env="export NPM_CONFIG_NODEDIR=$(get_electron_nodedir)"
|
||||
sed -i -e \
|
||||
"s|\"\$binDir/\$nodeBin\"|${env}\nexec $(get_electron_dir)/node|g" \
|
||||
apm/bin/apm || die
|
||||
|
||||
sed -i -e \
|
||||
"s|^\([[:space:]]*\)node[[:space:]]\+|\1\"$(get_electron_dir)/node\" |g" \
|
||||
apm/node_modules/npm/bin/node-gyp-bin/node-gyp || die
|
||||
|
||||
rm apm/bin/node || die
|
||||
|
||||
sed -i -e "s|/usr/share/atom/atom|/usr/bin/atom|g" \
|
||||
"${S}/usr/share/applications/atom.desktop" || die
|
||||
|
||||
cd "${S}" || die
|
||||
|
||||
for binmod in ${BINMODS}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${_s}" || die
|
||||
if _have_patches_for "${binmod}"; then
|
||||
for patch in "${FILESDIR}"/${binmod}-*.patch; do
|
||||
eapply "${patch}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
# Unbundle bundled libs from modules
|
||||
|
||||
_s="${WORKDIR}/$(package_dir git-utils)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "git;libgit2;git2" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir node-oniguruma)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "onig_scanner;oniguruma;onig" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir node-spellchecker)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "spellchecker;hunspell;hunspell" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
for binmod in ${BINMODS}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
mkdir -p "${_s}/node_modules" || die
|
||||
ln -s "${nan_s}" "${_s}/node_modules/nan" || die
|
||||
done
|
||||
|
||||
# Unpack app.asar
|
||||
easar extract "${S}/usr/share/atom/resources/app.asar" "${S}/build/app"
|
||||
|
||||
cd "${S}" || die
|
||||
|
||||
eapply "${FILESDIR}/atom-1.13-apm-path.patch"
|
||||
eapply "${FILESDIR}/atom-license-path.patch"
|
||||
eapply "${FILESDIR}/atom-fix-app-restart.patch"
|
||||
eapply "${FILESDIR}/atom-marker-layer.patch"
|
||||
|
||||
sed -i -e "s|{{ATOM_SUFFIX}}|${suffix}|g" \
|
||||
"${S}/build/app/src/config-schema.js" || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local binmod _s
|
||||
|
||||
for binmod in ${BINMODS}; do
|
||||
einfo "Configuring ${binmod}..."
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${_s}" || die
|
||||
enodegyp_atom configure
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local binmod _s x
|
||||
local ctags_d="node_modules/symbols-view/vendor"
|
||||
local jobs=$(makeopts_jobs) gypopts
|
||||
|
||||
gypopts="--verbose"
|
||||
|
||||
if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
|
||||
gypopts+=" --jobs ${jobs}"
|
||||
fi
|
||||
|
||||
mkdir -p "${S}/build/modules/" || die
|
||||
|
||||
for binmod in ${BINMODS}; do
|
||||
einfo "Building ${binmod}..."
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${_s}" || die
|
||||
enodegyp_atom ${gypopts} build
|
||||
x=${binmod##node-}
|
||||
mkdir -p "${S}/build/modules/${x}" || die
|
||||
cp build/Release/*.node "${S}/build/modules/${x}" || die
|
||||
done
|
||||
|
||||
# Put compiled binary modules in place
|
||||
_fix_binmods "${S}/build" "app"
|
||||
_fix_binmods "${S}/usr/share/atom/resources" "app"
|
||||
|
||||
# Remove non-Linux vendored ctags binaries
|
||||
rm "${S}/build/app/${ctags_d}/ctags-darwin" \
|
||||
"${S}/build/app/${ctags_d}/ctags-win32.exe" || die
|
||||
|
||||
# Re-pack app.asar
|
||||
# Keep unpack rules in sync with build/tasks/generate-asar-task.coffee
|
||||
cd "${S}/build" || die
|
||||
x="--unpack={*.node,ctags-config,ctags-linux,**/node_modules/spellchecker/**,**/resources/atom.png}"
|
||||
easar pack "${x}" "app" "app.asar"
|
||||
cd "${S}" || die
|
||||
}
|
||||
|
||||
_fix_binmods() {
|
||||
local _dir="${2}" _prefix="${1}" path relpath modpath mod depth link f d
|
||||
local cruft
|
||||
|
||||
(find "${_prefix}/${_dir}" -name '*.node' -print || die) \
|
||||
| while IFS= read -r path; do
|
||||
f=$(basename "${path}")
|
||||
d=$(dirname "${path}")
|
||||
relpath=${path#${_prefix}}
|
||||
relpath=${relpath##/}
|
||||
relpath=${relpath#W${_dir}}
|
||||
modpath=$(dirname ${relpath})
|
||||
modpath=${modpath%build/Release}
|
||||
mod=$(basename ${modpath})
|
||||
|
||||
# must copy here as symlinks will cause the module loading to fail
|
||||
cp -f "${S}/build/modules/${mod}/${f}" "${path}" || die
|
||||
cruft=$(find "${d}" -name '*.a' -print)
|
||||
if [[ -n "${cruft}" ]]; then
|
||||
rm ${cruft} || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
_fix_executables() {
|
||||
local _dir="${1}" _node_sb="#!$(get_electron_dir)"/node
|
||||
|
||||
(find -L "${ED}/${_dir}" -maxdepth 1 -mindepth 1 -type f -print || die) \
|
||||
| while IFS= read -r f; do
|
||||
IFS= read -r shebang < "${f}"
|
||||
|
||||
if [[ ${shebang} == '#!'* ]]; then
|
||||
fperms +x "${f#${ED}}"
|
||||
if [[ "${shebang}" == "#!/usr/bin/env node" || "${shebang}" == "#!/usr/bin/node" ]]; then
|
||||
einfo "Fixing node shebang in ${f#${ED}}"
|
||||
sed --follow-symlinks -i \
|
||||
-e "1s:${shebang}$:${_node_sb}:" "${f}" || die
|
||||
fi
|
||||
fi
|
||||
done || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
local ctags_d="node_modules/symbols-view/vendor"
|
||||
|
||||
cd "${S}" || die
|
||||
|
||||
# Replace vendored ctags with a symlink to system ctags
|
||||
rm "${S}/build/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
ln -s "/usr/bin/ctags" \
|
||||
"${S}/build/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
|
||||
insinto "${install_dir}"
|
||||
|
||||
doins build/app.asar
|
||||
doins -r build/app.asar.unpacked
|
||||
doins -r usr/share/atom/resources/app
|
||||
|
||||
insinto /usr/share/applications/
|
||||
newins usr/share/applications/atom.desktop "atom${suffix}.desktop"
|
||||
|
||||
insinto /usr/share/icons/
|
||||
doins -r usr/share/icons/hicolor
|
||||
|
||||
exeinto "${install_dir}"
|
||||
newexe usr/share/atom/resources/app/atom.sh atom
|
||||
insinto /usr/share/licenses/"${PN}${suffix}"
|
||||
doins usr/share/atom/resources/LICENSE.md
|
||||
dosym "${install_dir}/atom" "/usr/bin/atom${suffix}"
|
||||
dosym "${install_dir}/app/apm/bin/apm" "/usr/bin/apm${suffix}"
|
||||
|
||||
_fix_executables "${install_dir}/app/apm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/.bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin/node-gyp-bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/node-gyp/bin"
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- a/build/app/node_modules/text-buffer/lib/marker-layer.js
|
||||
--- b/build/app/node_modules/text-buffer/lib/marker-layer.js
|
||||
@@ -192,7 +192,7 @@
|
||||
return function(markerId) {
|
||||
var marker;
|
||||
marker = _this.markersById[markerId];
|
||||
- if (!marker.matchesParams(params)) {
|
||||
+ if (marker == null || !marker.matchesParams(params)) {
|
||||
return;
|
||||
}
|
||||
return result.push(marker);
|
@ -0,0 +1,160 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
|
||||
|
||||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
|
||||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
||||
GRUB_URL=mirror://gnu-alpha/grub
|
||||
|
||||
UPSTREAM_VER=
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
|
||||
SRC_URI="
|
||||
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
||||
$GRUB_URL/grub-0.97.tar.gz
|
||||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
|
||||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2
|
||||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
|
||||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
|
||||
$XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz
|
||||
${UPSTREAM_PATCHSET_URI}"
|
||||
|
||||
S="${WORKDIR}/xen-${PV}"
|
||||
|
||||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="custom-cflags"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="sys-devel/gettext
|
||||
sys-devel/bin86
|
||||
sys-apps/texinfo
|
||||
x11-libs/pixman"
|
||||
|
||||
RDEPEND=">=app-emulation/xen-tools-${PV}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
retar-externals() {
|
||||
# Purely to unclutter src_prepare
|
||||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
|
||||
|
||||
# epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
|
||||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
|
||||
-i "${WORKDIR}"/zlib-1.2.3/configure
|
||||
sed -e 's:^AR=ar rc:AR=ar:' \
|
||||
-e s':$(AR) $@:$(AR) rc $@:' \
|
||||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
|
||||
einfo "zlib Makefile edited"
|
||||
|
||||
cd "${WORKDIR}"
|
||||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
|
||||
tar czp grub-0.97 -f grub-0.97.tar.gz
|
||||
tar czp lwip -f lwip-1.3.0.tar.gz
|
||||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
|
||||
tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
|
||||
mv $set "${S}"/stubdom/
|
||||
einfo "tarballs moved to source"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patch set"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
# try and remove all the default custom-cflags
|
||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} \;
|
||||
fi
|
||||
|
||||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues
|
||||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
|
||||
|
||||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
|
||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
|
||||
|
||||
# fix jobserver in Makefile
|
||||
epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
|
||||
|
||||
#Substitute for internal downloading. pciutils copied only due to the only .bz2
|
||||
cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
|
||||
retar-externals || die "re-tar procedure failed"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${PREFIX}/usr \
|
||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||
--libexecdir=${PREFIX}/usr/libexec \
|
||||
--disable-werror \
|
||||
--disable-xen"
|
||||
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
|
||||
|
||||
if use x86; then
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
||||
elif use amd64; then
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
|
||||
if has_multilib_profile; then
|
||||
multilib_toolchain_setup x86
|
||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use x86; then
|
||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
||||
fi
|
||||
if use amd64; then
|
||||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
|
||||
if has_multilib_profile; then
|
||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
}
|
@ -1,5 +1,9 @@
|
||||
DIST xen-4.7.1-upstream-patches-0.tar.xz 16420 SHA256 cb4724fedadc408ec390f99e9928a44ec75e793fb55cb97793f09980855b6a32 SHA512 79e117c48c6cc3d5783c818218ac11ec494735ce89755b5e263a64c23fb1f0a425bc65b567a24ce2e348b6e3839b26133c7e2c36411e5cc7acb54b855149dfbe WHIRLPOOL 982165da62cbb28cd72d32662c366ca7dac91a511b356eb58bced4b4af5cbc0d94c7e280a2400e5d9c92938d2afee86abd7c688926c2b9cb191d4554be828844
|
||||
DIST xen-4.7.1.tar.gz 20706864 SHA256 e87f4b0575e78657ee23d31470a15ecf1ce8c3a92a771cda46bbcd4d0d671ffe SHA512 eb03244f5fa7b54402fcc1d38f1e69c0ea4536d5ab2f9859b41b5e94920ad9db20fb146e3c3d3635e9ca1d12e93ce0429e57f24bf53d4a2c4b69babc76ec724e WHIRLPOOL 5d7ba29ea58bdedb6a237f7cb1c0aacf361dc35ebb07ec8e55773e07b1f38c1b151615b526e14daeca7c2db235114bde0b6d124219e8818c6e529873b5151fec
|
||||
DIST xen-4.7.2-upstream-patches-0.tar.xz 45944 SHA256 e7783bc9adc939167eaef91e96fda506d2d52815f709b31952229891357e6b67 SHA512 6d4e23fb5a63fd191f893e31194b6397a394956846f356ae0119c656a92e7e22296e728286a98109b64a5736241b2317969f54915e7b487b4d7a64aae534614c WHIRLPOOL e185ce40085559d00a302eae8814b4c013817a5e4c0a2a9c56a6b4983b38e7103e44d0407fa78ea79fdbe8eefde346b994812851d8b4bad0bf08cb5721507c37
|
||||
DIST xen-4.7.2.tar.gz 20714281 SHA256 61494a56d9251e2108080f95b0dc8e3d175f1ba4da34603fc07b91cfebf358d5 SHA512 8f447e7feffec81fea5b5a4098968b8b8cebc6989e7b6a845413317644d5d328d6f12181d09266366200878ab6a29ab34c7235c1af7b55463a3fdaea40ee1500 WHIRLPOOL 27f3fd88846724e03bf9bb53133046cb79139950c9162dd9c9a85798e169259f73dc2fe4212e750ce9a8fd1d0abd99f1f76108faceb7bf1934ce0495377ee756
|
||||
DIST xen-4.8.0-upstream-patches-0.tar.xz 78984 SHA256 278603b1b739e94099184f7266c77806595bf53c7236267f32b9f8fad9ebe76e SHA512 1466e33705f54e3799412298917485bb8acb6847dbacb61cfb394415b6b3bc51aed9317928e948161e00c8134fcc0a4b07361df3dec76b1038aa41e3b1b63b3a WHIRLPOOL 4c3a1524db00be1c475fd84e2148143bc4f3be2987e7d785bee880603c72d6bdb417acf1f1935c2b53b369d8428eed736b92644f6ce62e05ad16479ecca18410
|
||||
DIST xen-4.8.0.tar.gz 22499917 SHA256 1e15c713ab7ba3bfda8b4a285ed973529364fd1100e6dd5a61f29583dc667b04 SHA512 70b95553f9813573b12e52999a4df8701dec430f23c36a8dc70d25a46bb4bc9234e5b7feb74a04062af4c8d6b6bcfe947d90b2b172416206812e54bac9797454 WHIRLPOOL 1296c25a05e3ab81730a2587ea1c07c7c022f05cfefc580224185c8d5fc9853531031c1292f69eff944ae2752492c4b95f13e160be3c449a7626aeadf1a21102
|
||||
DIST xen-security-patches-21.tar.xz 6888 SHA256 76e43fb4c41a606cb1a5e56045dedff0ed3c94b535d89a736664965ee4a44699 SHA512 eb889d90630b6a7c4b9785bf8c2db1d83c7878cec3aa125601b38f75f70a965e52aa5003024feec40d35ee940975dfd766eeb806cdcff717991876d50ce0839b WHIRLPOOL 9039cc7410fbb0e36e1ab74d597c7b1075f92e43b9d22bcb198c0594a0802fca50f86a9fa4343cea83a68eacd6acb6fa0ef73fbd20c19a27f5e92c3f32711af8
|
||||
DIST xen-security-patches-24.tar.xz 8848 SHA256 1aa2be3a15771473d3b043ccd703f7893618473a77193feb1703bf552aa777fa SHA512 d9ccee8ad3ffe2e035de9e95bf7ef850f31cf368dd228e62acf867ff6a8948e8c2882e64f341ff3458349f8317185241a40178f30f804edfa51b2b7cf6c6cda0 WHIRLPOOL cd632b7bf95e929f5037be6a16a59d3fcde50e47cc034cc0d44c29bc16c42a9a01c720a4401804fa9df8fa908f4fc8e75f2fcbef3d56381b7dca81d45618e773
|
||||
DIST xen-security-patches-25.tar.xz 9208 SHA256 ceaa520d4d98ab7b6ce5b58c380499372cb513dda0c8236106cdf878385d4458 SHA512 18539c1f42bc95a06f7b06855614fafb4ed7c07a145d9ab90e02954ba405d21fc4c379908e3233ddfb85ccaa04515b261ac4bbf3987ce00e4479158f03edd917 WHIRLPOOL 4cff34c29a5c38e6a5bd0d4f4fe89d8daf944740934b05cd61f4b8a345ddb4d8a8b2de6db27a723154169e3f28d5b34a43eddd08c909cfa3d6d5aee26fcae693
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- ./todo_completion 2017-04-08 15:18:23.102736966 +0200
|
||||
+++ ./todo_completion 2017-04-08 15:18:56.839725605 +0200
|
||||
@@ -85,6 +85,9 @@
|
||||
}
|
||||
complete -F _todo todo.sh
|
||||
|
||||
+# Gentoo bug 614400
|
||||
+complete -F _todo todotxt
|
||||
+
|
||||
# If you define an alias (e.g. "t") to todo.sh, you need to explicitly enable
|
||||
# completion for it, too:
|
||||
#complete -F _todo t
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
DESCRIPTION="A CLI-based TODO list manager"
|
||||
HOMEPAGE="http://todotxt.com/"
|
||||
SRC_URI="https://github.com/ginatrapani/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="app-shells/bash"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-bash-completion.patch" )
|
||||
|
||||
S="${WORKDIR}/${PN}.txt-cli-${PV}"
|
||||
|
||||
DOCS=( README.textile CONTRIBUTING.md LICENSE todo.cfg )
|
||||
|
||||
src_test() {
|
||||
make test || die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}.sh"
|
||||
dosym "/usr/bin/${PN}.sh" "/usr/bin/${PN}txt"
|
||||
newbashcomp "${PN}_completion" "${PN}.sh"
|
||||
bashcomp_alias "${PN}.sh" "${PN}txt"
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mpv-bash-completion-3.3.11.tar.gz 19225 SHA256 b74a180c3318bafc9e8d240bb90f2de1f26a653776abd18f6f7c188fe8a38626 SHA512 ac0244c048c7d468fb6f971e58c631c39c919be9a049bb600abed9df9b2ae1429aba918714f6ad60b3cec48bf4dbcf81673946bc5736c0deb0d57585af460f21 WHIRLPOOL 1e25ffb8baba95381463d9ddd1b6ca18d8e954470fa8a384d00645049978869bc00408e7596fe0878c6a6a7e8fe8cf5567ad47a71a1f69945ca469dc560aa799
|
||||
DIST mpv-bash-completion-3.3.12.tar.gz 19310 SHA256 9291ef730af6f69cc0efc82e88d170d43d79266a1500461b08719130507870ef SHA512 f019e9a66072333b40213437f07097cacb9f01a1f322fded763e695ef5ef4656016ca07fcb402d406fd99785026dba1fc7292a2c04a14ac18a24557bb8ab2cd1 WHIRLPOOL 96db10c112767d8c8e648a989f416cb02123018e8406842ee27bfc603f5f6ca9ee6360f6aa46a19e14a194f44d510eb971219b10bb598785720c3a6f23047f6c
|
||||
DIST mpv-bash-completion-3.3.8.tar.gz 19002 SHA256 67bb3565daafb1e3f64b24262b0859f7843ac052960e0159e3fe3a375ffed181 SHA512 4d6cfc3ac2d1fd6a28be1a40e3ca28d61f5d9ed40a850c5c60e45501b958b929d6ef9266027d2be95ed0c2b0dedccfdbb04fe4115bb7bcfd39435cb73f2dc452 WHIRLPOOL 62012925d3fb212c473e889930c1add93ce36533313a677cc9ddbc7acce2d9dfc1a18f9054dad901f7a0cb2b57c56a05f302f1fadc83b4bbeda5baa06fb2c7c8
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit bash-completion-r1
|
||||
|
||||
DESCRIPTION="Bash completion for the mpv video player"
|
||||
HOMEPAGE="https://2ion.github.io/mpv-bash-completion/"
|
||||
SRC_URI="https://github.com/2ion/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="luajit"
|
||||
|
||||
COMMON_DEPEND=">=media-video/mpv-0.14.0[cli]"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-shells/bash-completion-2.3-r1
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
!luajit? ( dev-lang/lua:* )
|
||||
luajit? ( dev-lang/luajit:2 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
# Avoid 'mpv' make target that supports lua only.
|
||||
sed -i -e 's|check: mpv|check:|' Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
$(usex luajit 'luajit' 'lua') gen.lua > mpv || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobashcomp mpv
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version 'x11-apps/xrandr'; then
|
||||
elog
|
||||
elog "If you want completion of window sizes, please install 'x11-apps/xrandr'."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST glibmm-2.48.1.tar.xz 6235724 SHA256 dc225f7d2f466479766332483ea78f82dc349d59399d30c00de50e5073157cdf SHA512 280949315e592ff8f3f7cfa6376d129211ffb6832146578d6533c4792aafef8b4ea5354943d5623ebf34ce31b8c71b6055a51de2b8ae8cfb419e6e033d9f98fa WHIRLPOOL 81c369bf7bf7ebc1f88e47943ed4b352644cad05566ec2fa04f0974a9e48dbc56b3cbd2f3bde9f55412da886e9b99fde096a1936834c65c77ede3781be30e0fd
|
||||
DIST glibmm-2.50.0.tar.xz 6435208 SHA256 df726e3c6ef42b7621474b03b644a2e40ec4eef94a1c5a932c1e740a78f95e94 SHA512 ed1043fbb5d16dfcb1e71f73e2c998110aa0dbc42b3fc9d8d1cc03e299b171021f2d2ac3055f5685d11b4dc1ddef42d9378eaac895163ddd80f39a627cecdc60 WHIRLPOOL b9c6867876311381b986f5123b6574bae01b45054e80a00c83688d756ed2a8e213dc3b1153a0aeb2672d9db998771fd6f538e1d592ffcb695ff7ac6147094975
|
||||
DIST glibmm-2.50.1.tar.xz 6444576 SHA256 1fd85051da9cb402cc8348cec72dfe4d79f9345df4a1dbf68703a4ded45846a4 SHA512 4f25c75c1628ca2f4db1c29cebc63187d372603066b06aa6a66c6da792f9e02cb4a413e41f058a81e2d5a2b38d625de13df76115b278f010ce2fc493fe6e6bbb WHIRLPOOL 54b656e04550a050994061db1498a3ac066b1e37643faa218ec1ef04604c0d37c799572b546e79c29f1b35586b1a5b0c354eca72151756eb99f4434a27fa7ae2
|
||||
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2 multilib-minimal
|
||||
|
||||
DESCRIPTION="C++ interface for glib2"
|
||||
HOMEPAGE="http://www.gtkmm.org"
|
||||
|
||||
LICENSE="LGPL-2.1+ GPL-2+" # GPL-2+ applies only to the build system
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc debug test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libsigc++-2.9.1:2[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/glib-2.50.0:2[${MULTILIB_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
# dev-cpp/mm-common needed for eautoreconf
|
||||
|
||||
src_prepare() {
|
||||
if ! use test; then
|
||||
# don't waste time building tests
|
||||
sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
|
||||
-i Makefile.am Makefile.in || die "sed 1 failed"
|
||||
fi
|
||||
|
||||
# don't build examples - we want to install example sources, not binaries
|
||||
sed 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
|
||||
-i Makefile.am Makefile.in || die "sed 2 failed"
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" gnome2_src_configure \
|
||||
$(use_enable debug debug-refcounting) \
|
||||
$(multilib_native_use_enable doc documentation) \
|
||||
--enable-deprecated-api
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
cd tests
|
||||
default
|
||||
|
||||
for i in */test; do
|
||||
${i} || die "Running tests failed at ${i}"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
gnome2_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
find examples -type d -name '.deps' -exec rm -rf {} \; 2>/dev/null
|
||||
find examples -type f -name 'Makefile*' -exec rm -f {} \; 2>/dev/null
|
||||
dodoc -r examples
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST cryptopp562.zip 1137964 SHA256 5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574 SHA512 016ca7ebad1091d67ad0bc5ccb7549d96d4af6b563d9d5a612cae27b3d1a3514c41b954e319fed91c820e8c701e3aa43da186e0864bf959ce4afd1539248ebbe WHIRLPOOL e31203da48a31b09e6ea48a75aa64fe5fd27fd370a1a609c4387526f09daab7582716563b688c0c81a8c3b200b8ffa7bdb2b981e5911640e5f1c172d6027f6ac
|
||||
DIST cryptopp565.zip 4220843 SHA256 a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34 SHA512 f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 WHIRLPOOL 376e8d7ad497d03f19542fd183181f26c83f38dfef800529cb5d5ce7238978f005d36e3e7cce63322af9b7dfc3a69fdb615c435bcf092bbd6abf6781dfd6d8a3
|
||||
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs autotools
|
||||
|
||||
DESCRIPTION="C++ class library of cryptographic schemes"
|
||||
HOMEPAGE="http://cryptopp.com"
|
||||
SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 sparc x86 ~x64-macos"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND="app-arch/unzip
|
||||
sys-devel/libtool"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-r1-make.patch
|
||||
epatch "${FILESDIR}"/${P}-cve-2015-2141.patch
|
||||
epatch "${FILESDIR}"/${P}-c++11.patch
|
||||
|
||||
# Generate our own libtool script for building.
|
||||
cat <<-EOF > configure.ac
|
||||
AC_INIT(lt, 0)
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PROG_CXX
|
||||
LT_INIT
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_OUTPUT
|
||||
EOF
|
||||
touch NEWS README AUTHORS ChangeLog Makefile.am
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# higher optimizations cause problems
|
||||
replace-flags -O? -O1
|
||||
filter-flags -fomit-frame-pointer
|
||||
# ASM isn't Darwin/Mach-O ready, #479554, buildsys doesn't grok CPPFLAGS
|
||||
[[ ${CHOST} == *-darwin* ]] && append-flags -DCRYPTOPP_DISABLE_X86ASM
|
||||
|
||||
emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" LIBTOOL="./libtool"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# ensure that all test vectors have Unix line endings
|
||||
local file
|
||||
for file in TestVectors/* ; do
|
||||
edos2unix ${file}
|
||||
done
|
||||
|
||||
if ! emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" test ; then
|
||||
eerror "Crypto++ self-tests failed."
|
||||
eerror "Try to remove some optimization flags and reemerge Crypto++."
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" LIBTOOL="./libtool" install
|
||||
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libcroco-0.6.11.tar.xz 477312 SHA256 132b528a948586b0dfa05d7e9e059901bca5a3be675b6071a90a90b81ae5a056 SHA512 441b9c6d9b6acd4ff908100573c6f24bcf46a20ec94360bdcf4765e37a7d45dc59e6a0889917f3486503b274d05cd79a63178e74d029209c16b8e3351a1160da WHIRLPOOL e4874167bd8d1336ed2ad6180d7780962da0f84ac09b24652105baea34a46769881f8112900e606312bf1d7c01045d8cfc187c8c327bbd834bba70a982edbcb9
|
||||
DIST libcroco-0.6.12.tar.xz 482028 SHA256 ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860 SHA512 af9a171d5ccded255b57f170576e67155f12fa0f61ab3e379e907975f77afc37e82e22772c6019b2897cffc15b2425faf3ccfda92b1a45b23eda2519debabeb6 WHIRLPOOL b3626257b56b9e104307cd3da01366a5eb929d0afc6669a80f4a94748c434afdc8c3828e008ab786ab28ca72d799a79804e9a296d9428504829521516366e039
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue