parent
470be38ec1
commit
b06bbd6c52
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/at-spi2-atk/at-spi2-atk-2.12.1-r1.ebuild,v 1.2 2014/11/24 01:41:11 tetromino Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit eutils gnome2 multilib-minimal virtualx
|
||||
|
||||
DESCRIPTION="Gtk module for bridging AT-SPI to Atk"
|
||||
HOMEPAGE="http://live.gnome.org/Accessibility"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.11.2[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/atk-2.11.90[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}]
|
||||
>=sys-apps/dbus-1.5[${MULTILIB_USEDEP}]
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<gnome-extra/at-spi-1.32.0-r1
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-gtklibs-20140508-r3
|
||||
!app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig[${MULTILIB_USEDEP}]
|
||||
"
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
gnome2_src_configure --enable-p2p
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
Xemake check
|
||||
}
|
||||
|
||||
multilib_src_compile() { gnome2_src_compile; }
|
||||
multilib_src_install() { gnome2_src_install; }
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/at-spi2-core/at-spi2-core-2.12.0-r1.ebuild,v 1.2 2014/11/24 01:40:34 tetromino Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit eutils gnome2 multilib-minimal
|
||||
|
||||
DESCRIPTION="D-Bus accessibility specifications and registration daemon"
|
||||
HOMEPAGE="http://live.gnome.org/Accessibility"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="2"
|
||||
IUSE="+X +introspection"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
|
||||
# x11-libs/libSM is needed until upstream #719808 is solved either
|
||||
# making the dep unneeded or fixing their configure
|
||||
# Only libX11 is optional right now
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
|
||||
>=sys-apps/dbus-1[${MULTILIB_USEDEP}]
|
||||
x11-libs/libSM[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXtst[${MULTILIB_USEDEP}]
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.6 )
|
||||
X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-gtklibs-20140508-r3
|
||||
!app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-util/gtk-doc-am-1.9
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig[${MULTILIB_USEDEP}]
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# disable teamspaces test since that requires Novell.ICEDesktop.Daemon
|
||||
epatch "${FILESDIR}/${PN}-2.0.2-disable-teamspaces-test.patch"
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# xevie is deprecated/broken since xorg-1.6/1.7
|
||||
ECONF_SOURCE=${S} \
|
||||
gnome2_src_configure \
|
||||
--disable-xevie \
|
||||
$(multilib_native_use_enable introspection) \
|
||||
$(use_enable X x11)
|
||||
|
||||
# work-around gtk-doc out-of-source brokedness
|
||||
if multilib_is_native_abi; then
|
||||
ln -s "${S}"/doc/libatspi/html doc/libatspi/html || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() { gnome2_src_compile; }
|
||||
multilib_src_install() { gnome2_src_install; }
|
@ -1,14 +0,0 @@
|
||||
diff -Naur flite-1.2-release.orig/tools/find_sts_main.c flite-1.2-release/tools/find_sts_main.c
|
||||
--- tools/find_sts_main.c 2002-12-26 17:18:30.000000000 +0000
|
||||
+++ tools/find_sts_main.c 2004-05-31 10:28:14.399281736 +0000
|
||||
@@ -40,6 +40,10 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
+
|
||||
+/* to allow some normally const fields to be manipulated during building */
|
||||
+#define const
|
||||
+
|
||||
#include "cst_wave.h"
|
||||
#include "cst_track.h"
|
||||
#include "cst_sigpr.h"
|
@ -1,50 +0,0 @@
|
||||
From a85193f122b7ec0d377e0a39ac58c64f12c51085 Mon Sep 17 00:00:00 2001
|
||||
From: Rui Matos <tiagomatos@gmail.com>
|
||||
Date: Mon, 6 Jan 2014 13:45:00 +0000
|
||||
Subject: [PATCH] auserver.c: Only write audio data to a file in debug builds
|
||||
|
||||
This isn't useful in regular builds and is actually a security
|
||||
concern.
|
||||
---
|
||||
src/audio/auserver.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/audio/auserver.c b/src/audio/auserver.c
|
||||
index 29716d3..3e838d0 100644
|
||||
--- a/src/audio/auserver.c
|
||||
+++ b/src/audio/auserver.c
|
||||
@@ -58,9 +58,11 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
int q,i,n,r;
|
||||
unsigned char bytes[CST_AUDIOBUFFSIZE];
|
||||
short shorts[CST_AUDIOBUFFSIZE];
|
||||
+#ifdef DEBUG
|
||||
cst_file fff;
|
||||
|
||||
fff = cst_fopen("/tmp/awb.wav",CST_OPEN_WRITE|CST_OPEN_BINARY);
|
||||
+#endif
|
||||
|
||||
if ((audio_device = audio_open(header->sample_rate,1,
|
||||
(header->encoding == CST_SND_SHORT) ?
|
||||
@@ -107,7 +109,9 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
for (q=r; q > 0; q-=n)
|
||||
{
|
||||
n = audio_write(audio_device,shorts,q);
|
||||
+#ifdef DEBUG
|
||||
cst_fwrite(fff,shorts,2,q);
|
||||
+#endif
|
||||
if (n <= 0)
|
||||
{
|
||||
audio_close(audio_device);
|
||||
@@ -116,7 +120,9 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
}
|
||||
}
|
||||
audio_close(audio_device);
|
||||
+#ifdef DEBUG
|
||||
cst_fclose(fff);
|
||||
+#endif
|
||||
|
||||
return CST_OK_FORMAT;
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -1,333 +0,0 @@
|
||||
diff -uNr flite-1.3-release/configure.in flite-1.3-release-mod/configure.in
|
||||
--- flite-1.3-release/configure.in 2005-08-13 13:43:21.000000000 +0200
|
||||
+++ flite-1.3-release-mod/configure.in 2006-11-13 21:16:27.000000000 +0200
|
||||
@@ -206,10 +206,10 @@
|
||||
AC_CHECK_HEADER(sys/audioio.h,
|
||||
[AUDIODRIVER="sun"
|
||||
AUDIODEFS=-DCST_AUDIO_SUNOS])
|
||||
-dnl AC_CHECK_HEADER(sys/asoundlib.h,
|
||||
-dnl [AUDIODRIVER="alsa"
|
||||
-dnl AUDIODEFS=-DCST_AUDIO_ALSA
|
||||
-dnl AUDIOLIBS=-lasound])
|
||||
+AC_CHECK_HEADER(alsa/asoundlib.h,
|
||||
+ [AUDIODRIVER="alsa"
|
||||
+ AUDIODEFS=-DCST_AUDIO_ALSA
|
||||
+ AUDIOLIBS=-lasound])
|
||||
AC_CHECK_HEADER(mmsystem.h,
|
||||
[AUDIODRIVER="wince"
|
||||
AUDIODEFS=-DCST_AUDIO_WINCE
|
||||
diff -uNr flite-1.3-release/src/audio/au_alsa.c flite-1.3-release-mod/src/audio/au_alsa.c
|
||||
--- flite-1.3-release/src/audio/au_alsa.c 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ flite-1.3-release-mod/src/audio/au_alsa.c 2006-11-13 21:16:54.000000000 +0200
|
||||
@@ -0,0 +1,311 @@
|
||||
+/*************************************************************************/
|
||||
+/* */
|
||||
+/* Language Technologies Institute */
|
||||
+/* Carnegie Mellon University */
|
||||
+/* Copyright (c) 2000 */
|
||||
+/* All Rights Reserved. */
|
||||
+/* */
|
||||
+/* Permission is hereby granted, free of charge, to use and distribute */
|
||||
+/* this software and its documentation without restriction, including */
|
||||
+/* without limitation the rights to use, copy, modify, merge, publish, */
|
||||
+/* distribute, sublicense, and/or sell copies of this work, and to */
|
||||
+/* permit persons to whom this work is furnished to do so, subject to */
|
||||
+/* the following conditions: */
|
||||
+/* 1. The code must retain the above copyright notice, this list of */
|
||||
+/* conditions and the following disclaimer. */
|
||||
+/* 2. Any modifications must be clearly marked as such. */
|
||||
+/* 3. Original authors' names are not deleted. */
|
||||
+/* 4. The authors' names are not used to endorse or promote products */
|
||||
+/* derived from this software without specific prior written */
|
||||
+/* permission. */
|
||||
+/* */
|
||||
+/* CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK */
|
||||
+/* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
|
||||
+/* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
|
||||
+/* SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE */
|
||||
+/* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
|
||||
+/* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
|
||||
+/* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
|
||||
+/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
|
||||
+/* THIS SOFTWARE. */
|
||||
+/* */
|
||||
+/*********************************************************************** */
|
||||
+/* Author: Lukas Loehrer ( */
|
||||
+/* Date: January 2005 */
|
||||
+/*************************************************************************/
|
||||
+/* */
|
||||
+/* Native access to alsa audio devices on Linux */
|
||||
+/* Tested with libasound version 1.0.10 */
|
||||
+/*************************************************************************/
|
||||
+
|
||||
+#include <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
+#include <assert.h>
|
||||
+#include <errno.h>
|
||||
+
|
||||
+#include "cst_string.h"
|
||||
+#include "cst_wave.h"
|
||||
+#include "cst_audio.h"
|
||||
+
|
||||
+#include <alsa/asoundlib.h>
|
||||
+
|
||||
+
|
||||
+/*static char *pcm_dev_name = "hw:0,0"; */
|
||||
+static char *pcm_dev_name ="default";
|
||||
+
|
||||
+static inline void print_pcm_state(snd_pcm_t *handle, char *msg)
|
||||
+{
|
||||
+ fprintf(stderr, "PCM state at %s = %s\n", msg,
|
||||
+ snd_pcm_state_name(snd_pcm_state(handle)));
|
||||
+}
|
||||
+
|
||||
+cst_audiodev *audio_open_alsa(int sps, int channels, cst_audiofmt fmt)
|
||||
+{
|
||||
+ cst_audiodev *ad;
|
||||
+ unsigned int real_rate;
|
||||
+ int err;
|
||||
+
|
||||
+ /* alsa specific stuff */
|
||||
+ snd_pcm_t *pcm_handle;
|
||||
+ snd_pcm_stream_t stream = SND_PCM_STREAM_PLAYBACK;
|
||||
+ snd_pcm_hw_params_t *hwparams;
|
||||
+ snd_pcm_format_t format;
|
||||
+ snd_pcm_access_t access = SND_PCM_ACCESS_RW_INTERLEAVED;
|
||||
+
|
||||
+ /* Allocate the snd_pcm_hw_params_t structure on the stack. */
|
||||
+ snd_pcm_hw_params_alloca(&hwparams);
|
||||
+
|
||||
+ /* Open pcm device */
|
||||
+ err = snd_pcm_open(&pcm_handle, pcm_dev_name, stream, 0);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_open_alsa: failed to open audio device %s. %s\n",
|
||||
+ pcm_dev_name, snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Init hwparams with full configuration space */
|
||||
+ err = snd_pcm_hw_params_any(pcm_handle, hwparams);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to get hardware parameters from audio device. %s\n", snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Set access mode */
|
||||
+ err = snd_pcm_hw_params_set_access(pcm_handle, hwparams, access);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to set access mode. %s.\n", snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Determine matching alsa sample format */
|
||||
+ /* This could be implemented in a more */
|
||||
+ /* flexible way (byte order conversion). */
|
||||
+ switch (fmt)
|
||||
+ {
|
||||
+ case CST_AUDIO_LINEAR16:
|
||||
+ if (CST_LITTLE_ENDIAN)
|
||||
+ format = SND_PCM_FORMAT_S16_LE;
|
||||
+ else
|
||||
+ format = SND_PCM_FORMAT_S16_BE;
|
||||
+ break;
|
||||
+ case CST_AUDIO_LINEAR8:
|
||||
+ format = SND_PCM_FORMAT_U8;
|
||||
+ break;
|
||||
+ case CST_AUDIO_MULAW:
|
||||
+ format = SND_PCM_FORMAT_MU_LAW;
|
||||
+ break;
|
||||
+ default:
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to find suitable format.\n");
|
||||
+ return NULL;
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ /* Set samble format */
|
||||
+ err = snd_pcm_hw_params_set_format(pcm_handle, hwparams, format);
|
||||
+ if (err <0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to set format. %s.\n", snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Set sample rate near the disired rate */
|
||||
+ real_rate = sps;
|
||||
+ err = snd_pcm_hw_params_set_rate_near(pcm_handle, hwparams, &real_rate, 0);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to set sample rate near %d. %s.\n", sps, snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ /*FIXME: This is probably too strict */
|
||||
+ assert(sps == real_rate);
|
||||
+
|
||||
+ /* Set number of channels */
|
||||
+ assert(channels >0);
|
||||
+ err = snd_pcm_hw_params_set_channels(pcm_handle, hwparams, channels);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to set number of channels to %d. %s.\n", channels, snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Commit hardware parameters */
|
||||
+ err = snd_pcm_hw_params(pcm_handle, hwparams);
|
||||
+ if (err < 0)
|
||||
+ {
|
||||
+ snd_pcm_close(pcm_handle);
|
||||
+ cst_errmsg("audio_open_alsa: failed to set hw parameters. %s.\n", snd_strerror(err));
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ /* Make sure the device is ready to accept data */
|
||||
+ assert(snd_pcm_state(pcm_handle) == SND_PCM_STATE_PREPARED);
|
||||
+
|
||||
+ /* Write hardware parameters to flite audio device data structure */
|
||||
+ ad = cst_alloc(cst_audiodev, 1);
|
||||
+ assert(ad != NULL);
|
||||
+ ad->real_sps = ad->sps = sps;
|
||||
+ ad->real_channels = ad->channels = channels;
|
||||
+ ad->real_fmt = ad->fmt = fmt;
|
||||
+ ad->platform_data = (void *) pcm_handle;
|
||||
+
|
||||
+ return ad;
|
||||
+}
|
||||
+
|
||||
+int audio_close_alsa(cst_audiodev *ad)
|
||||
+{
|
||||
+ int result;
|
||||
+ snd_pcm_t *pcm_handle;
|
||||
+
|
||||
+ if (ad == NULL)
|
||||
+ return 0;
|
||||
+
|
||||
+ pcm_handle = (snd_pcm_t *) ad->platform_data;
|
||||
+ result = snd_pcm_close(pcm_handle);
|
||||
+ if (result < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_close_alsa: Error: %s.\n", snd_strerror(result));
|
||||
+ }
|
||||
+ cst_free(ad);
|
||||
+ return result;
|
||||
+}
|
||||
+
|
||||
+/* Returns zero if recovery was successful. */
|
||||
+static int recover_from_error(snd_pcm_t *pcm_handle, ssize_t res)
|
||||
+{
|
||||
+ if (res == -EPIPE) /* xrun */
|
||||
+ {
|
||||
+ res = snd_pcm_prepare(pcm_handle);
|
||||
+ if (res < 0)
|
||||
+ {
|
||||
+ /* Failed to recover from xrun */
|
||||
+ cst_errmsg("recover_from_write_error: failed to recover from xrun. %s\n.", snd_strerror(res));
|
||||
+ return res;
|
||||
+ }
|
||||
+ }
|
||||
+ else if (res == -ESTRPIPE) /* Suspend */
|
||||
+ {
|
||||
+ while ((res = snd_pcm_resume(pcm_handle)) == -EAGAIN)
|
||||
+ {
|
||||
+ snd_pcm_wait(pcm_handle, 1000);
|
||||
+ }
|
||||
+ if (res < 0)
|
||||
+ {
|
||||
+ res = snd_pcm_prepare(pcm_handle);
|
||||
+ if (res <0)
|
||||
+ {
|
||||
+ /* Resume failed */
|
||||
+ cst_errmsg("audio_recover_from_write_error: failed to resume after suspend. %s\n.", snd_strerror(res));
|
||||
+ return res;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ else if (res < 0)
|
||||
+ {
|
||||
+ /* Unknown failure */
|
||||
+ cst_errmsg("audio_recover_from_write_error: %s.\n", snd_strerror(res));
|
||||
+ return res;
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+int audio_write_alsa(cst_audiodev *ad, void *samples, int num_bytes)
|
||||
+{
|
||||
+ size_t frame_size;
|
||||
+ ssize_t num_frames, res;
|
||||
+ snd_pcm_t *pcm_handle;
|
||||
+ char *buf = (char *) samples;
|
||||
+
|
||||
+ /* Determine frame size in bytes */
|
||||
+ frame_size = audio_bps(ad->real_fmt) * ad->real_channels;
|
||||
+ /* Require that only complete frames are handed in */
|
||||
+ assert((num_bytes % frame_size) == 0);
|
||||
+ num_frames = num_bytes / frame_size;
|
||||
+ pcm_handle = (snd_pcm_t *) ad->platform_data;
|
||||
+
|
||||
+ while (num_frames > 0)
|
||||
+ {
|
||||
+ res = snd_pcm_writei(pcm_handle, buf, num_frames);
|
||||
+ if (res != num_frames)
|
||||
+ {
|
||||
+ if (res == -EAGAIN || (res > 0 && res < num_frames))
|
||||
+ {
|
||||
+ snd_pcm_wait(pcm_handle, 100);
|
||||
+ }
|
||||
+ else if (recover_from_error(pcm_handle, res) < 0)
|
||||
+ {
|
||||
+ return -1;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (res >0)
|
||||
+ {
|
||||
+ num_frames -= res;
|
||||
+ buf += res * frame_size;
|
||||
+ }
|
||||
+ }
|
||||
+ return num_bytes;
|
||||
+}
|
||||
+
|
||||
+int audio_flush_alsa(cst_audiodev *ad)
|
||||
+{
|
||||
+ int result;
|
||||
+ result = snd_pcm_drain((snd_pcm_t *) ad->platform_data);
|
||||
+ if (result < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_flush_alsa: Error: %s.\n", snd_strerror(result));
|
||||
+ }
|
||||
+ /* Prepare device for more data */
|
||||
+ result = snd_pcm_prepare((snd_pcm_t *) ad->platform_data);
|
||||
+if (result < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_flush_alsa: Error: %s.\n", snd_strerror(result));
|
||||
+ }
|
||||
+ return result;
|
||||
+}
|
||||
+
|
||||
+int audio_drain_alsa(cst_audiodev *ad)
|
||||
+{
|
||||
+ int result;
|
||||
+ result = snd_pcm_drop((snd_pcm_t *) ad->platform_data);
|
||||
+ if (result < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_drain_alsa: Error: %s.\n", snd_strerror(result));
|
||||
+ }
|
||||
+/* Prepare device for more data */
|
||||
+ result = snd_pcm_prepare((snd_pcm_t *) ad->platform_data);
|
||||
+if (result < 0)
|
||||
+ {
|
||||
+ cst_errmsg("audio_drain_alsa: Error: %s.\n", snd_strerror(result));
|
||||
+ }
|
||||
+ return result;
|
||||
+}
|
@ -1,29 +0,0 @@
|
||||
diff -Naur flite-1.3-release/main/Makefile flite-1.3-release.new/main/Makefile
|
||||
--- flite-1.3-release/main/Makefile 2014-02-12 12:08:32.222776141 -0800
|
||||
+++ flite-1.3-release.new/main/Makefile 2014-02-12 12:29:32.308048276 -0800
|
||||
@@ -48,15 +48,23 @@
|
||||
ALL = $(BINDIR)/flite$(EXEEXT) $(BINDIR)/flite_time$(EXEEXT) \
|
||||
$(BINDIR)/t2p$(EXEEXT)
|
||||
|
||||
+include $(TOP)/config/common_make_rules
|
||||
+
|
||||
flite_LIBS = flite_$(FL_VOX) flite_$(FL_LANG) flite_$(FL_LEX)
|
||||
flite_LIBS_flags = -L$(LIBDIR) $(flite_LIBS:%=-l%)
|
||||
+ifdef SHFLAGS
|
||||
flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.so)
|
||||
+else
|
||||
+flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.a)
|
||||
+endif
|
||||
|
||||
flite_time_LIBS = flite_cmu_time_awb flite_$(FL_LANG) flite_$(FL_LEX)
|
||||
flite_time_LIBS_flags = -L$(LIBDIR) $(flite_time_LIBS:%=-l%)
|
||||
+ifdef SHFLAGS
|
||||
flite_time_LIBS_deps = $(flite_time_LIBS:%=$(LIBDIR)/lib%.so)
|
||||
-
|
||||
-include $(TOP)/config/common_make_rules
|
||||
+else
|
||||
+flite_time_LIBS_deps = $(flite_time_LIBS:%=$(LIBDIR)/lib%.a)
|
||||
+endif
|
||||
|
||||
$(BINDIR)/flite$(EXEEXT): flite_main.o $(FLITELIBS) $(flite_LIBS_deps)
|
||||
$(CC) $(CFLAGS) -o $@ flite_main.o $(flite_LIBS_flags) $(LDFLAGS)
|
@ -1,11 +0,0 @@
|
||||
--- flite-1.3-release/config/common_make_rules 2013-04-03 15:28:04.004893371 +0100
|
||||
+++ flite-1.3-release/config/common_make_rules 2013-04-03 15:27:50.574992901 +0100
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
ifdef SHFLAGS
|
||||
FLITELIBS = $(LIBDIR)/libflite.so
|
||||
-LDFLAGS += -L$(LIBDIR) -lflite $(OTHERLIBS)
|
||||
+LDFLAGS += -L$(LIBDIR) -lflite -lm $(OTHERLIBS)
|
||||
else
|
||||
FLITELIBS = $(LIBDIR)/libflite.a
|
||||
LDFLAGS += -L$(LIBDIR) -lflite -lm $(AUDIOLIBS) $(OTHERLIBS)
|
@ -1,24 +0,0 @@
|
||||
diff -Naur flite-1.3-release/config/common_make_rules flite-1.3-release.new/config/common_make_rules
|
||||
--- flite-1.3-release/config/common_make_rules 2014-02-12 09:56:23.058678651 -0800
|
||||
+++ flite-1.3-release.new/config/common_make_rules 2014-02-12 11:27:18.039561163 -0800
|
||||
@@ -67,6 +67,11 @@
|
||||
|
||||
BUILDDIRS=$(OBJDIR) $(BINDIR) $(LIBDIR)
|
||||
|
||||
+ifndef SO_LDFLAGS
|
||||
+SO_LDFLAGS := $(LDFLAGS)
|
||||
+endif
|
||||
+export SO_LDFLAGS
|
||||
+
|
||||
ifdef SHFLAGS
|
||||
FLITELIBS = $(LIBDIR)/libflite.so
|
||||
LDFLAGS += -L$(LIBDIR) -lflite -lm $(OTHERLIBS)
|
||||
@@ -130,7 +135,7 @@
|
||||
@ rm -rf shared_os && mkdir shared_os
|
||||
@ rm -f $@ $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
|
||||
@ (cd shared_os && ar x ../$<)
|
||||
- @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os -L../ $($(@:%.so=%_LDLIBS)))
|
||||
+ @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} $(SO_LDFLAGS) -o ../$@.${PROJECT_VERSION} *.os -L../ $($(@:%.so=%_LDLIBS)))
|
||||
@ ln -s $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
|
||||
@ ln -s $@.${PROJECT_SHLIB_VERSION} $@
|
||||
@ rm -rf shared_os
|
@ -1,170 +0,0 @@
|
||||
diff -uNr flite-1.3-release/config/common_make_rules flite-1.3-release-mod/config/common_make_rules
|
||||
--- flite-1.3-release/config/common_make_rules 2004-12-20 00:20:43.000000000 +0200
|
||||
+++ flite-1.3-release-mod/config/common_make_rules 2006-11-12 12:17:25.000000000 +0200
|
||||
@@ -59,27 +59,35 @@
|
||||
endif
|
||||
OBJDIR=$(BUILDDIR)/obj/$(DIRNAME)
|
||||
BINDIR=$(BUILDDIR)/bin
|
||||
+LIBDIR=$(BUILDDIR)/lib
|
||||
ifeq ($(HOST_PLATFORM),$(TARGET_PLATFORM))
|
||||
BINDIR=$(TOP)/bin
|
||||
+LIBDIR=$(TOP)/lib
|
||||
endif
|
||||
|
||||
-LIBDIR=$(BUILDDIR)/lib
|
||||
BUILDDIRS=$(OBJDIR) $(BINDIR) $(LIBDIR)
|
||||
|
||||
-FLITELIBS = $(BUILDDIR)/lib/libflite.a
|
||||
-LDFLAGS += -L$(BUILDDIR)/lib -lflite -lm $(AUDIOLIBS) $(OTHERLIBS)
|
||||
+ifdef SHFLAGS
|
||||
+FLITELIBS = $(LIBDIR)/libflite.so
|
||||
+LDFLAGS += -L$(LIBDIR) -lflite $(OTHERLIBS)
|
||||
+else
|
||||
+FLITELIBS = $(LIBDIR)/libflite.a
|
||||
+LDFLAGS += -L$(LIBDIR) -lflite -lm $(AUDIOLIBS) $(OTHERLIBS)
|
||||
+endif
|
||||
|
||||
FULLOBJS = $(OBJS:%=$(OBJDIR)/%)
|
||||
ifdef SHFLAGS
|
||||
SOOBJS = $(OBJS:.o=.os)
|
||||
-FULLSHOBJS = $(SOOBJS:%=$(OBJDIR)/%)
|
||||
+FULLSOOBJS = $(SOOBJS:%=$(OBJDIR)/%)
|
||||
ifdef LIBNAME
|
||||
ALL += $(OBJDIR)/.build_so
|
||||
endif
|
||||
-endif
|
||||
+else
|
||||
ifdef LIBNAME
|
||||
ALL += $(OBJDIR)/.build_lib
|
||||
endif
|
||||
+endif
|
||||
+
|
||||
# Only do some directories when you are not cross compiling
|
||||
ifeq ($(HOST_PLATFORM),$(TARGET_PLATFORM))
|
||||
OTHER_BUILD_DIRS = $(HOST_ONLY_DIRS)
|
||||
@@ -117,14 +125,14 @@
|
||||
@ touch $(OBJDIR)/.build_so
|
||||
|
||||
# Used in the lib/ directory and in building new voices
|
||||
-$(OBJDIR)/%.so: %.shared.a
|
||||
+%.so: %.shared.a
|
||||
@ echo making $@
|
||||
@ rm -rf shared_os && mkdir shared_os
|
||||
- @ rm -f $@ $(LIBDIR)/$@.${PROJECT_VERSION} $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION}
|
||||
+ @ rm -f $@ $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
|
||||
@ (cd shared_os && ar x ../$<)
|
||||
- @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os)
|
||||
- @ ln -s $(LIBDIR)/$@.${PROJECT_VERSION} $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION}
|
||||
- @ ln -s $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION} $(LIBDIR)/$@
|
||||
+ @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os -L../ $($(@:%.so=%_LDLIBS)))
|
||||
+ @ ln -s $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
|
||||
+ @ ln -s $@.${PROJECT_SHLIB_VERSION} $@
|
||||
@ rm -rf shared_os
|
||||
|
||||
$(OBJDIR)/.make_build_dirs:
|
||||
diff -uNr flite-1.3-release/lib/Makefile flite-1.3-release-mod/lib/Makefile
|
||||
--- flite-1.3-release/lib/Makefile 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ flite-1.3-release-mod/lib/Makefile 2006-11-12 12:17:40.000000000 +0200
|
||||
@@ -0,0 +1,73 @@
|
||||
+###########################################################################
|
||||
+## ##
|
||||
+## Language Technologies Institute ##
|
||||
+## Carnegie Mellon University ##
|
||||
+## Copyright (c) 1999 ##
|
||||
+## All Rights Reserved. ##
|
||||
+## ##
|
||||
+## Permission is hereby granted, free of charge, to use and distribute ##
|
||||
+## this software and its documentation without restriction, including ##
|
||||
+## without limitation the rights to use, copy, modify, merge, publish, ##
|
||||
+## distribute, sublicense, and/or sell copies of this work, and to ##
|
||||
+## permit persons to whom this work is furnished to do so, subject to ##
|
||||
+## the following conditions: ##
|
||||
+## 1. The code must retain the above copyright notice, this list of ##
|
||||
+## conditions and the following disclaimer. ##
|
||||
+## 2. Any modifications must be clearly marked as such. ##
|
||||
+## 3. Original authors' names are not deleted. ##
|
||||
+## 4. The authors' names are not used to endorse or promote products ##
|
||||
+## derived from this software without specific prior written ##
|
||||
+## permission. ##
|
||||
+## ##
|
||||
+## CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK ##
|
||||
+## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ##
|
||||
+## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ##
|
||||
+## SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE ##
|
||||
+## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ##
|
||||
+## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ##
|
||||
+## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ##
|
||||
+## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ##
|
||||
+## THIS SOFTWARE. ##
|
||||
+## ##
|
||||
+###########################################################################
|
||||
+## ##
|
||||
+## FLITE libraries ##
|
||||
+## ##
|
||||
+###########################################################################
|
||||
+TOP=..
|
||||
+DIRNAME=lib
|
||||
+BUILD_DIRS =
|
||||
+ALL_DIRS=
|
||||
+FILES = Makefile
|
||||
+LIBNAMES = flite flite_cmulex flite_usenglish \
|
||||
+ flite_cmu_us_kal flite_cmu_us_kal16 flite_cmu_time_awb
|
||||
+
|
||||
+STATICLIBS= $(LIBNAMES:%=lib%.a)
|
||||
+SHAREDARLIBS= $(LIBNAMES:%=lib%.shared.a)
|
||||
+#SHAREDLIBS = $(LIBNAMES:%=lib%.so)
|
||||
+SHAREDLIBS = $(SHAREDARLIBS:%.shared.a=%.so)
|
||||
+VERSIONSHAREDLIBS = $(SHAREDLIBS:%=%.${PROJECT_VERSION}) \
|
||||
+ $(SHAREDLIBS:%=%.${PROJECT_SHLIB_VERSION})
|
||||
+ALL_LIBS = $(SHAREDLIBS) $(VERSIONSHAREDLIBS)
|
||||
+
|
||||
+ALL = shared_libs
|
||||
+
|
||||
+LOCAL_CLEAN=*.a *.so *.so.${PROJECT_VERSION} *.so.${PROJECT_SHLIB_VERSION}
|
||||
+
|
||||
+include $(TOP)/config/common_make_rules
|
||||
+
|
||||
+ifdef SHFLAGS
|
||||
+shared_libs: $(SHAREDLIBS)
|
||||
+libflite_LDLIBS = -lm $(AUDIOLIBS)
|
||||
+libflite_cmulex_LDLIBS = -lflite
|
||||
+libflite_usenglish_LDLIBS = -lflite
|
||||
+libflite_cmu_us_kal_LDLIBS = -lflite_cmulex -lflite_usenglish
|
||||
+libflite_cmu_us_kal16_LDLIBS = -lflite_cmulex -lflite_usenglish
|
||||
+libflite_cmu_time_awb_LDLIBS = -lflite -lflite_cmulex -lflite_usenglish
|
||||
+else
|
||||
+shared_libs: nothing
|
||||
+endif
|
||||
+
|
||||
+install:
|
||||
+ @ tar cvf - $(ALL_LIBS) | ( cd $(INSTALLLIBDIR) && tar xf -)
|
||||
+
|
||||
diff -uNr flite-1.3-release/main/Makefile flite-1.3-release-mod/main/Makefile
|
||||
--- flite-1.3-release/main/Makefile 2005-08-08 00:38:42.000000000 +0200
|
||||
+++ flite-1.3-release-mod/main/Makefile 2006-11-12 11:44:46.000000000 +0200
|
||||
@@ -50,11 +50,11 @@
|
||||
|
||||
flite_LIBS = flite_$(FL_VOX) flite_$(FL_LANG) flite_$(FL_LEX)
|
||||
flite_LIBS_flags = -L$(LIBDIR) $(flite_LIBS:%=-l%)
|
||||
-flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.a)
|
||||
+flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.so)
|
||||
|
||||
flite_time_LIBS = flite_cmu_time_awb flite_$(FL_LANG) flite_$(FL_LEX)
|
||||
flite_time_LIBS_flags = -L$(LIBDIR) $(flite_time_LIBS:%=-l%)
|
||||
-flite_time_LIBS_deps = $(flite_time_LIBS:%=$(LIBDIR)/lib%.a)
|
||||
+flite_time_LIBS_deps = $(flite_time_LIBS:%=$(LIBDIR)/lib%.so)
|
||||
|
||||
include $(TOP)/config/common_make_rules
|
||||
|
||||
diff -uNr flite-1.3-release/Makefile flite-1.3-release-mod/Makefile
|
||||
--- flite-1.3-release/Makefile 2005-11-01 15:40:45.000000000 +0200
|
||||
+++ flite-1.3-release-mod/Makefile 2006-11-12 11:44:46.000000000 +0200
|
||||
@@ -41,7 +41,7 @@
|
||||
###########################################################################
|
||||
TOP=.
|
||||
DIRNAME=
|
||||
-BUILD_DIRS = include src lang doc
|
||||
+BUILD_DIRS = include src lang lib doc
|
||||
ALL_DIRS=config $(BUILD_DIRS) testsuite sapi palm tools main
|
||||
CONFIG=configure configure.in config.sub config.guess \
|
||||
missing install-sh mkinstalldirs
|
@ -1,50 +0,0 @@
|
||||
From a85193f122b7ec0d377e0a39ac58c64f12c51085 Mon Sep 17 00:00:00 2001
|
||||
From: Rui Matos <tiagomatos@gmail.com>
|
||||
Date: Mon, 6 Jan 2014 13:45:00 +0000
|
||||
Subject: [PATCH] auserver.c: Only write audio data to a file in debug builds
|
||||
|
||||
This isn't useful in regular builds and is actually a security
|
||||
concern.
|
||||
---
|
||||
src/audio/auserver.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/audio/auserver.c b/src/audio/auserver.c
|
||||
index 29716d3..3e838d0 100644
|
||||
--- a/src/audio/auserver.c
|
||||
+++ b/src/audio/auserver.c
|
||||
@@ -58,9 +58,11 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
int q,i,n,r;
|
||||
unsigned char bytes[CST_AUDIOBUFFSIZE];
|
||||
short shorts[CST_AUDIOBUFFSIZE];
|
||||
+#ifdef DEBUG
|
||||
cst_file fff;
|
||||
|
||||
fff = cst_fopen("/tmp/awb.wav",CST_OPEN_WRITE|CST_OPEN_BINARY);
|
||||
+#endif
|
||||
|
||||
if ((audio_device = audio_open(header->sample_rate,1,
|
||||
(header->encoding == CST_SND_SHORT) ?
|
||||
@@ -107,7 +109,9 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
for (q=r; q > 0; q-=n)
|
||||
{
|
||||
n = audio_write(audio_device,shorts,q);
|
||||
+#ifdef DEBUG
|
||||
cst_fwrite(fff,shorts,2,q);
|
||||
+#endif
|
||||
if (n <= 0)
|
||||
{
|
||||
audio_close(audio_device);
|
||||
@@ -116,7 +120,9 @@ static int play_wave_from_socket(snd_header *header,int audiostream)
|
||||
}
|
||||
}
|
||||
audio_close(audio_device);
|
||||
+#ifdef DEBUG
|
||||
cst_fclose(fff);
|
||||
+#endif
|
||||
|
||||
return CST_OK_FORMAT;
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.2-r1.ebuild,v 1.16 2013/08/25 14:42:09 jer Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Flite text to speech engine"
|
||||
HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
|
||||
SRC_URI="http://www.speech.cs.cmu.edu/flite/packed/${P}/${P}-release.tar.bz2
|
||||
http://www.speech.cs.cmu.edu/flite/packed/${P}/${PN}_lexfix.tar.gz"
|
||||
|
||||
LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=" ~alpha amd64 ppc sparc x86"
|
||||
IUSE="static"
|
||||
|
||||
S=${WORKDIR}/${P}-release
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}-release.tar.bz2
|
||||
unpack ${PN}_lexfix.tar.gz
|
||||
|
||||
# Move the update into ${S}
|
||||
cd ${PN}
|
||||
tar -cf - . | (cd "${S}"; tar -xf -)
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/const.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf
|
||||
if ! use static ; then
|
||||
myconf="${myconf} --enable-shared"
|
||||
fi
|
||||
myconf="${myconf} --with-vox=cmu_us_kal16"
|
||||
|
||||
econf ${myconf} || die "Failed configuration"
|
||||
# -j2 borks when we make the shared libs
|
||||
emake -j1 || die "Failed compilation"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/* || die
|
||||
dodoc ACKNOWLEDGEMENTS README
|
||||
|
||||
if use static ; then
|
||||
dolib.a lib/*.a
|
||||
else
|
||||
for lib in lib/*.so*; do
|
||||
if [ -f ${lib} ]; then
|
||||
dolib.so ${lib}
|
||||
lib=`basename ${lib}`
|
||||
majlib=`echo ${lib} | sed 's:\(\.so\.[0-9]\)\(\.[0-9]*\)*$:\1:'`
|
||||
noverlib=`echo ${lib} | sed 's:\(\.so\)\(\.[0-9]*\)*$:\1:'`
|
||||
|
||||
dosym ${lib} /usr/lib/${majlib}
|
||||
dosym ${lib} /usr/lib/${noverlib}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
insinto /usr/include/flite
|
||||
cd "${S}"/include
|
||||
for file in *.h; do
|
||||
doins ${file}
|
||||
dosed 's:#include "\(.*\)":#include <flite/\1>:g' /usr/include/flite/${file}
|
||||
done
|
||||
|
||||
dosym flite/flite.h /usr/include/flite.h
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.2-r2.ebuild,v 1.4 2014/08/02 11:19:45 armin76 Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Flite text to speech engine"
|
||||
HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
|
||||
SRC_URI="http://www.speech.cs.cmu.edu/flite/packed/${P}/${P}-release.tar.bz2
|
||||
http://www.speech.cs.cmu.edu/flite/packed/${P}/${PN}_lexfix.tar.gz"
|
||||
|
||||
LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~ppc sparc ~x86"
|
||||
IUSE="static"
|
||||
|
||||
S=${WORKDIR}/${P}-release
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}-release.tar.bz2
|
||||
unpack ${PN}_lexfix.tar.gz
|
||||
|
||||
# Move the update into ${S}
|
||||
cd ${PN}
|
||||
tar -cf - . | (cd "${S}"; tar -xf -)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/const.patch
|
||||
epatch "${FILESDIR}"/${P}-tempfile.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if ! use static ; then
|
||||
myconf="${myconf} --enable-shared"
|
||||
fi
|
||||
myconf="${myconf} --with-vox=cmu_us_kal16"
|
||||
|
||||
econf ${myconf}
|
||||
# -j2 borks when we make the shared libs
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
dodoc ACKNOWLEDGEMENTS README
|
||||
|
||||
if use static ; then
|
||||
dolib.a lib/*.a
|
||||
else
|
||||
for lib in lib/*.so*; do
|
||||
if [ -f ${lib} ]; then
|
||||
dolib.so ${lib}
|
||||
lib=`basename ${lib}`
|
||||
majlib=`echo ${lib} | sed 's:\(\.so\.[0-9]\)\(\.[0-9]*\)*$:\1:'`
|
||||
noverlib=`echo ${lib} | sed 's:\(\.so\)\(\.[0-9]*\)*$:\1:'`
|
||||
|
||||
dosym ${lib} /usr/lib/${majlib}
|
||||
dosym ${lib} /usr/lib/${noverlib}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
insinto /usr/include/flite
|
||||
cd "${S}"/include
|
||||
for file in *.h; do
|
||||
doins ${file}
|
||||
sed -i -e 's:#include "\(.*\)":#include <flite/\1>:g' \
|
||||
"${D}"/usr/include/flite/${file} || die "sed failed"
|
||||
done
|
||||
|
||||
dosym flite/flite.h /usr/include/flite.h
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.3-r1.ebuild,v 1.6 2014/08/02 11:19:45 armin76 Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Flite text to speech engine"
|
||||
HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
|
||||
SRC_URI="http://www.speech.cs.cmu.edu/flite/packed/${P}/${P}-release.tar.gz"
|
||||
|
||||
LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~ppc ~ppc64 sparc x86"
|
||||
IUSE="alsa static"
|
||||
|
||||
S=${WORKDIR}/${P}-release
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-tempfile.patch
|
||||
if use alsa; then
|
||||
epatch "${FILESDIR}"/${P}-alsa-support.patch
|
||||
fi
|
||||
epatch "${FILESDIR}"/${P}-shared-libs.patch
|
||||
epatch "${FILESDIR}"/${P}-fix-static.patch
|
||||
epatch "${FILESDIR}"/${P}-respect-ldflags.patch
|
||||
epatch "${FILESDIR}"/${P}-libm.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if ! use static ; then
|
||||
myconf="--enable-shared"
|
||||
fi
|
||||
myconf="${myconf} --with-vox=cmu_us_kal16"
|
||||
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
dodoc ACKNOWLEDGEMENTS README
|
||||
|
||||
if use static ; then
|
||||
dolib.a lib/*.a
|
||||
else
|
||||
for lib in lib/*.so*; do
|
||||
if [ -f ${lib} ]; then
|
||||
dolib.so ${lib}
|
||||
lib=`basename ${lib}`
|
||||
majlib=`echo ${lib} | sed 's:\(\.so\.[0-9]\)\(\.[0-9]*\)*$:\1:'`
|
||||
noverlib=`echo ${lib} | sed 's:\(\.so\)\(\.[0-9]*\)*$:\1:'`
|
||||
|
||||
dosym ${lib} /usr/lib/${majlib}
|
||||
dosym ${lib} /usr/lib/${noverlib}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
insinto /usr/include/flite
|
||||
cd "${S}"/include
|
||||
for file in *.h; do
|
||||
doins ${file}
|
||||
sed -i -e 's:#include "\(.*\)":#include <flite/\1>:g' \
|
||||
"${D}"/usr/include/flite/${file} || die "sed failed"
|
||||
done
|
||||
|
||||
dosym flite/flite.h /usr/include/flite.h
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.3.ebuild,v 1.14 2013/08/25 14:42:09 jer Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Flite text to speech engine"
|
||||
HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
|
||||
SRC_URI="http://www.speech.cs.cmu.edu/flite/packed/${P}/${P}-release.tar.gz"
|
||||
|
||||
LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86"
|
||||
IUSE="alsa static"
|
||||
|
||||
S=${WORKDIR}/${P}-release
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}-release.tar.gz
|
||||
if use alsa; then
|
||||
epatch "${FILESDIR}"/${P}-alsa-support.patch
|
||||
fi
|
||||
epatch "${FILESDIR}"/${P}-shared-libs.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf
|
||||
if ! use static ; then
|
||||
myconf="--enable-shared"
|
||||
fi
|
||||
myconf="${myconf} --with-vox=cmu_us_kal16"
|
||||
|
||||
econf ${myconf} || die "Failed configuration"
|
||||
emake -j1 || die "Failed compilation"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/* || die
|
||||
dodoc ACKNOWLEDGEMENTS README
|
||||
|
||||
if use static ; then
|
||||
dolib.a lib/*.a
|
||||
else
|
||||
for lib in lib/*.so*; do
|
||||
if [ -f ${lib} ]; then
|
||||
dolib.so ${lib}
|
||||
lib=`basename ${lib}`
|
||||
majlib=`echo ${lib} | sed 's:\(\.so\.[0-9]\)\(\.[0-9]*\)*$:\1:'`
|
||||
noverlib=`echo ${lib} | sed 's:\(\.so\)\(\.[0-9]*\)*$:\1:'`
|
||||
|
||||
dosym ${lib} /usr/lib/${majlib}
|
||||
dosym ${lib} /usr/lib/${noverlib}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
insinto /usr/include/flite
|
||||
cd "${S}"/include
|
||||
for file in *.h; do
|
||||
doins ${file}
|
||||
dosed 's:#include "\(.*\)":#include <flite/\1>:g' /usr/include/flite/${file}
|
||||
done
|
||||
|
||||
dosym flite/flite.h /usr/include/flite.h
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/flite/flite-1.4-r3.ebuild,v 1.1 2014/02/12 21:21:11 teiresias Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="Flite text to speech engine"
|
||||
HOMEPAGE="http://www.speech.cs.cmu.edu/flite/index.html"
|
||||
SRC_URI=" http://www.speech.cs.cmu.edu/${PN}/packed/${P}/${P}-release.tar.bz2"
|
||||
|
||||
LICENSE="BSD freetts public-domain regexp-UofT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=" ~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="alsa oss static-libs"
|
||||
|
||||
DEPEND="alsa? ( >=media-libs/alsa-lib-1.0.24.1 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${P}-release
|
||||
|
||||
get_audio() {
|
||||
if use alsa; then
|
||||
echo alsa
|
||||
elif use oss; then
|
||||
echo oss
|
||||
else
|
||||
echo none
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-tempfile.patch
|
||||
epatch "${FILESDIR}"/${P}-fix-parallel-builds.patch
|
||||
epatch "${FILESDIR}"/${P}-respect-destdir.patch
|
||||
epatch "${FILESDIR}"/${P}-ldflags.patch
|
||||
epatch "${FILESDIR}"/${P}-audio-interface.patch
|
||||
sed -i main/Makefile \
|
||||
-e '/-rpath/s|$(LIBDIR)|$(INSTALLLIBDIR)|g' \
|
||||
|| die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if ! use static-libs; then
|
||||
myconf=--enable-shared
|
||||
fi
|
||||
myconf="${myconf} --with-audio=$(get_audio)"
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc ACKNOWLEDGEMENTS README
|
||||
if ! use static-libs; then
|
||||
rm -rf "${D}"/usr/lib*/*.a
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ "$(get_audio)" = "none" ]; then
|
||||
ewarn "you have built flite without audio support."
|
||||
ewarn "If you want audio support, re-emerge"
|
||||
ewarn "flite with alsa or oss in your use flags."
|
||||
fi
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/ccze/ccze-0.2.1-r2.ebuild,v 1.8 2012/03/18 15:51:16 armin76 Exp $
|
||||
|
||||
inherit fixheadtails autotools eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A flexible and fast logfile colorizer"
|
||||
HOMEPAGE="http://dev.gentoo.org/~joker/ccze/ccze.txt"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/libpcre"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}"/ccze-fbsd.patch || die "epatch ccze-fbsd.patch failed"
|
||||
epatch "${FILESDIR}"/ccze-segfault.patch || die "epatch ccze-segfault.patch"
|
||||
|
||||
# GCC 4.x fixes
|
||||
sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \
|
||||
-i src/Makefile.in
|
||||
sed -e '/AC_CHECK_TYPE(error_t, int)/d' \
|
||||
-i configure.ac
|
||||
|
||||
eautoreconf
|
||||
|
||||
ht_fix_file Rules.mk.in
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Bug #243314
|
||||
tc-export CC
|
||||
econf || die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
dodoc AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -100,6 +100,7 @@
|
||||
strndup strstr])
|
||||
|
||||
AC_CHECK_LIB(ncurses, initscr, [], [AC_ERROR(NCurses library not found)])
|
||||
+AC_SEARCH_LIBS(stdscr, tinfo,,[AC_ERROR([Cannot find a library providing stdscr])])
|
||||
AC_CHECK_FUNC(dlopen, [], [AC_CHECK_LIB(dl, dlopen)])
|
||||
AC_CHECK_FUNC(getopt_long, [], [AC_CHECK_LIB(gnugetopt, getopt_long)])
|
||||
|
@ -0,0 +1,24 @@
|
||||
diff -ur pax-3.4-orig/lib/fts.c pax-3.4/lib/fts.c
|
||||
--- pax-3.4-orig/lib/fts.c 2005-07-29 09:55:25.000000000 +0200
|
||||
+++ pax-3.4/lib/fts.c 2014-10-30 21:38:42.404092744 +0100
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
-#include <fts.h>
|
||||
+#include "fts.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
diff -ur pax-3.4-orig/src/ftree.c pax-3.4/src/ftree.c
|
||||
--- pax-3.4-orig/src/ftree.c 2005-07-29 09:46:06.000000000 +0200
|
||||
+++ pax-3.4/src/ftree.c 2014-10-30 21:39:14.876093149 +0100
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
-#include <fts.h>
|
||||
+#include "../lib/fts.h"
|
||||
#include "pax.h"
|
||||
#include "ftree.h"
|
||||
#include "extern.h"
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/pax/pax-3.4.12.16-r1.ebuild,v 1.1 2014/11/23 17:45:44 remi Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils rpm versionator autotools
|
||||
|
||||
MY_PV=$(get_version_component_range 1-2)
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
RPM_PV=$(get_version_component_range 3)
|
||||
FC_PV=$(get_version_component_range 4)
|
||||
|
||||
DESCRIPTION="pax (Portable Archive eXchange) is the POSIX standard archive tool"
|
||||
HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/bin/pax/"
|
||||
SRC_URI="mirror://fedora-dev/releases/${FC_PV}/Everything/source/SRPMS/${MY_P}-${RPM_PV}.fc${FC_PV}.src.rpm"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
rpm_spec_epatch ../${PN}.spec
|
||||
epatch "${FILESDIR}"/pax-3.4-x32.patch
|
||||
epatch "${FILESDIR}"/pax-3.4-fix-fts-includes.patch
|
||||
sed -i configure.in \
|
||||
-e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
|
||||
-e '/AC_PROG_RANLIB/a AC_PROG_MKDIR_P' \
|
||||
|| die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-dicts/opendict/opendict-0.6.3-r1.ebuild,v 1.1 2014/11/23 20:15:44 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
GCONF_DEBUG="no" # We skip gnome2_src_configure entirely
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils gnome2 python-single-r1 readme.gentoo
|
||||
|
||||
DESCRIPTION="OpenDict is a free cross-platform dictionary program"
|
||||
HOMEPAGE="http://opendict.sourceforge.net/"
|
||||
SRC_URI="http://opendict.idiles.com/files/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/wxpython:2.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="If you want system-wide plugins, unzip them into
|
||||
${ROOT}usr/share/${PN}/dictionaries/plugins
|
||||
|
||||
Some are available from http://opendict.sourceforge.net/?cid=3"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-pyxml.patch
|
||||
|
||||
sed -e "s:), '..')):), '../../../../..', 'share', 'opendict')):g" \
|
||||
-i "${S}/lib/info.py"
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# override gnome2_src_configure
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# evil makefile
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# makefile is broken, do it manually
|
||||
|
||||
dodir /usr/share/${PN}/dictionaries/plugins # global dictionary plugins folder
|
||||
|
||||
# Needed by GUI
|
||||
insinto /usr/share/${PN}
|
||||
doins "${S}"/copying.html
|
||||
|
||||
insinto /usr/share/${PN}/pixmaps
|
||||
doins "${S}"/pixmaps/*
|
||||
|
||||
DHOME="$(python_get_sitedir)/opendict"
|
||||
insinto "${DHOME}/lib"
|
||||
doins -r "${S}"/lib/*
|
||||
exeinto "${DHOME}"
|
||||
python_fix_shebang opendict.py
|
||||
doexe opendict.py
|
||||
|
||||
dosym "${DHOME}/opendict.py" /usr/bin/opendict
|
||||
|
||||
domenu misc/${PN}.desktop
|
||||
|
||||
insinto /usr/share/icons/hicolor/24x24/apps/
|
||||
newins "${S}/pixmaps/icon-24x24.png" opendict.png
|
||||
insinto /usr/share/icons/hicolor/32x32/apps/
|
||||
newins "${S}/pixmaps/icon-32x32.png" opendict.png
|
||||
insinto /usr/share/icons/hicolor/48x48/apps/
|
||||
newins "${S}/pixmaps/icon-48x48.png" opendict.png
|
||||
insinto /usr/share/icons/hicolor/scalable/apps/
|
||||
newins "${S}/pixmaps/SVG/icon-rune.svg" opendict.svg
|
||||
|
||||
doman opendict.1
|
||||
dodoc README.txt TODO.txt doc/Plugin-HOWTO.html
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -0,0 +1,405 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/gvim/gvim-7.4.527.ebuild,v 1.1 2014/11/24 03:47:09 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
PYTHON_REQ_USE=threads
|
||||
inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 prefix python-single-r1
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}
|
||||
http://dev.gentoo.org/~radhermit/vim/vim-${VIM_VERSION}-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GUI version of the Vim text editor"
|
||||
HOMEPAGE="http://www.vim.org/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
luajit? ( lua )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
~app-editors/vim-core-${PV}
|
||||
>=app-admin/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
!aqua? (
|
||||
gtk? (
|
||||
>=x11-libs/gtk+-2.6:2
|
||||
x11-libs/libXft
|
||||
gnome? ( >=gnome-base/libgnomeui-2.6 )
|
||||
)
|
||||
!gtk? (
|
||||
motif? ( >=x11-libs/motif-2.3:0 )
|
||||
!motif? (
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
!neXt? ( x11-libs/libXaw )
|
||||
)
|
||||
)
|
||||
)
|
||||
cscope? ( dev-util/cscope )
|
||||
lua? (
|
||||
luajit? ( dev-lang/luajit )
|
||||
!luajit? ( dev-lang/lua[deprecated] )
|
||||
)
|
||||
nls? ( virtual/libintl )
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 ) )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
session? ( x11-libs/libSM )
|
||||
tcl? ( dev-lang/tcl )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=app-admin/eselect-vi-1.1
|
||||
dev-util/ctags
|
||||
sys-devel/autoconf
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/patches/ ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches/
|
||||
fi
|
||||
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 '/-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
|
||||
|
||||
epatch_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
|
||||
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf="--with-features=huge --disable-gpm --enable-multibyte"
|
||||
myconf+=" $(use_enable acl)"
|
||||
myconf+=" $(use_enable cscope)"
|
||||
myconf+=" $(use_enable lua luainterp)"
|
||||
myconf+=" $(use_with luajit)"
|
||||
myconf+=" $(use_enable netbeans)"
|
||||
myconf+=" $(use_enable nls)"
|
||||
myconf+=" $(use_enable perl perlinterp)"
|
||||
myconf+=" $(use_enable racket mzschemeinterp)"
|
||||
myconf+=" $(use_enable ruby rubyinterp)"
|
||||
myconf+=" $(use_enable selinux)"
|
||||
myconf+=" $(use_enable session xsmp)"
|
||||
myconf+=" $(use_enable tcl tclinterp)"
|
||||
|
||||
if use python ; then
|
||||
if [[ ${EPYTHON} == python3* ]] ; then
|
||||
myconf+=" --enable-python3interp"
|
||||
export vi_cv_path_python3="${PYTHON}"
|
||||
else
|
||||
myconf+=" --enable-pythoninterp"
|
||||
export vi_cv_path_python="${PYTHON}"
|
||||
fi
|
||||
else
|
||||
myconf+=" --disable-pythoninterp --disable-python3interp"
|
||||
fi
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope ; then
|
||||
sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
|
||||
die "couldn't disable cscope"
|
||||
fi
|
||||
|
||||
# gvim's GUI preference order is as follows:
|
||||
# aqua CARBON (not tested)
|
||||
# -aqua gtk gnome GNOME2
|
||||
# -aqua gtk -gnome GTK2
|
||||
# -aqua -gtk motif MOTIF
|
||||
# -aqua -gtk -motif neXt NEXTAW
|
||||
# -aqua -gtk -motif -neXt ATHENA
|
||||
echo ; echo
|
||||
if use aqua ; then
|
||||
einfo "Building gvim with the Carbon GUI"
|
||||
myconf+=" --enable-darwin --enable-gui=carbon"
|
||||
elif use gtk ; then
|
||||
myconf+=" --enable-gtk2-check"
|
||||
if use gnome ; then
|
||||
einfo "Building gvim with the Gnome 2 GUI"
|
||||
myconf+=" --enable-gui=gnome2"
|
||||
else
|
||||
einfo "Building gvim with the gtk+-2 GUI"
|
||||
myconf+=" --enable-gui=gtk2"
|
||||
fi
|
||||
elif use motif ; then
|
||||
einfo "Building gvim with the MOTIF GUI"
|
||||
myconf+=" --enable-gui=motif"
|
||||
elif use neXt ; then
|
||||
einfo "Building gvim with the neXtaw GUI"
|
||||
myconf+=" --enable-gui=nextaw"
|
||||
else
|
||||
einfo "Building gvim with the Athena GUI"
|
||||
myconf+=" --enable-gui=athena"
|
||||
fi
|
||||
echo ; echo
|
||||
|
||||
# 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"
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
# avoid finding of this function, to avoid having to patch either
|
||||
# configure or the source, which would be much more hackish.
|
||||
# after all vim does it right, only interix is badly broken (again)
|
||||
export ac_cv_func_sigaction=no
|
||||
fi
|
||||
|
||||
econf \
|
||||
--with-modified-by=Gentoo-${PVR} \
|
||||
--with-vim-name=gvim --with-x \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
echo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
echo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# We've got to call make test from within testdir, since the Makefiles
|
||||
# don't pass through our VIMPROG argument
|
||||
cd "${S}"/src/testdir
|
||||
|
||||
# Test 49 won't work inside a portage environment
|
||||
einfo "Test 49 isn't sandbox-friendly, so it will be skipped."
|
||||
sed -i 's~test49.out~~g' Makefile
|
||||
|
||||
# We don't want to rebuild vim before running the tests
|
||||
sed -i 's,: \$(VIMPROG),: ,' Makefile
|
||||
|
||||
# Make gvim not try to connect to X. See :help gui-x11-start
|
||||
# in vim for how this evil trickery works.
|
||||
ln -s "${S}"/src/gvim "${S}"/src/testvim
|
||||
|
||||
# Don't try to do the additional GUI test
|
||||
emake -j1 VIMPROG=../testvim nongui
|
||||
}
|
||||
|
||||
# Make convenience symlinks, hopefully without stepping on toes. Some
|
||||
# of these links are "owned" by the vim ebuild when it is installed,
|
||||
# but they might be good for gvim as well (see bug 45828)
|
||||
update_vim_symlinks() {
|
||||
has "${EAPI:-0}" 0 1 2 && use !prefix && EROOT="${ROOT}"
|
||||
local f syms
|
||||
syms="vimdiff rvim rview"
|
||||
einfo "Calling eselect vi update..."
|
||||
# Call this with --if-unset to respect user's choice (bug 187449)
|
||||
eselect vi update --if-unset
|
||||
|
||||
# Make or remove convenience symlink, vim -> gvim
|
||||
if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
|
||||
ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
|
||||
elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
rm "${EROOT}"/usr/bin/vim
|
||||
fi
|
||||
|
||||
# Make or remove convenience symlinks to vim
|
||||
if [[ -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
for f in ${syms}; do
|
||||
ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
|
||||
done
|
||||
else
|
||||
for f in ${syms}; do
|
||||
if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
|
||||
rm -f "${EROOT}"/usr/bin/${f}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# This will still break if you merge then remove the vi package,
|
||||
# but there's only so much you can do, eh? Unfortunately we don't
|
||||
# have triggers like are done in rpm-land.
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
dobin src/gvim
|
||||
dosym gvim /usr/bin/gvimdiff
|
||||
dosym gvim /usr/bin/evim
|
||||
dosym gvim /usr/bin/eview
|
||||
dosym gvim /usr/bin/gview
|
||||
dosym gvim /usr/bin/rgvim
|
||||
dosym gvim /usr/bin/rgview
|
||||
|
||||
dodir /usr/share/man/man1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
|
||||
echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
|
||||
echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
|
||||
|
||||
insinto /etc/vim
|
||||
newins "${FILESDIR}"/gvimrc-r1 gvimrc
|
||||
eprefixify "${ED}"/etc/vim/gvimrc
|
||||
|
||||
newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop
|
||||
doicon "${FILESDIR}"/gvim.xpm
|
||||
|
||||
# bash completion script, bug #79018.
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
|
||||
# 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
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
fdo-mime_mime_database_update
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
echo
|
||||
elog "Vim 7 includes an integrated spell checker. You need to install"
|
||||
elog "word list files before you can use it. There are ebuilds for"
|
||||
elog "some of these named app-vim/vim-spell-*. If your language of"
|
||||
elog "choice is not included, please consult vim-spell.eclass for"
|
||||
elog "instructions on how to make a package."
|
||||
echo
|
||||
ewarn "Note that the English word lists are no longer installed by"
|
||||
ewarn "default."
|
||||
echo
|
||||
fi
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Update fdo mime stuff, bug #78394
|
||||
fdo-mime_mime_database_update
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
@ -1,230 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.169.ebuild,v 1.1 2014/02/06 07:00:46 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
|
||||
# Patches for vim-core only (runtime/*)
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/gentoo/patches-core/
|
||||
fi
|
||||
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
|
||||
}
|
||||
|
||||
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} \
|
||||
--with-features=tiny \
|
||||
--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}}
|
||||
cd src || die "cd src failed"
|
||||
emake \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
install-icons \
|
||||
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-r4 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
|
||||
}
|
@ -1,232 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.193.ebuild,v 1.1 2014/03/10 19:08:30 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
|
||||
# Patches for vim-core only (runtime/*)
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/gentoo/patches-core/
|
||||
fi
|
||||
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
|
||||
|
||||
epatch_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} \
|
||||
--with-features=tiny \
|
||||
--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}}
|
||||
cd src || die "cd src failed"
|
||||
emake \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
install-icons \
|
||||
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-r4 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
|
||||
}
|
@ -1,232 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.326.ebuild,v 1.1 2014/06/16 05:57:58 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
|
||||
# Patches for vim-core only (runtime/*)
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/gentoo/patches-core/
|
||||
fi
|
||||
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
|
||||
|
||||
epatch_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} \
|
||||
--with-features=tiny \
|
||||
--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}}
|
||||
cd src || die "cd src failed"
|
||||
emake \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
install-icons \
|
||||
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-r4 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
|
||||
}
|
@ -1,232 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.417.ebuild,v 1.1 2014/08/25 00:03:56 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
|
||||
# Patches for vim-core only (runtime/*)
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/gentoo/patches-core/
|
||||
fi
|
||||
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
|
||||
|
||||
epatch_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} \
|
||||
--with-features=tiny \
|
||||
--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}}
|
||||
cd src || die "cd src failed"
|
||||
emake \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
install-icons \
|
||||
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-r4 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
|
||||
}
|
@ -1,233 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.52.ebuild,v 1.1 2013/10/15 23:13:15 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r3.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="nls acl minimal"
|
||||
|
||||
DEPEND="sys-devel/autoconf"
|
||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
|
||||
# Patches for vim-core only (runtime/*)
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/gentoo/patches-core/
|
||||
fi
|
||||
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"
|
||||
|
||||
# Patch to build with ruby-1.8.0_pre5 and following
|
||||
sed -i 's/defout/stdout/g' "${S}"/src/if_ruby.c
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
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} \
|
||||
--with-features=tiny \
|
||||
--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}}
|
||||
cd src || die "cd src failed"
|
||||
emake \
|
||||
installruntime \
|
||||
installmanlinks \
|
||||
installmacros \
|
||||
installtutor \
|
||||
installtutorbin \
|
||||
installtools \
|
||||
install-languages \
|
||||
install-icons \
|
||||
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-r4 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,378 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-7.4.527.ebuild,v 1.1 2014/11/24 03:45:46 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
VIM_VERSION="7.4"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
PYTHON_REQ_USE=threads
|
||||
inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-single-r1
|
||||
|
||||
if [[ ${PV} == 9999* ]] ; then
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://vim.googlecode.com/hg/"
|
||||
EHG_PROJECT="vim"
|
||||
else
|
||||
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
|
||||
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
|
||||
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}
|
||||
http://dev.gentoo.org/~radhermit/vim/vim-${VIM_VERSION}-gentoo-patches.tar.bz2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~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, an improved vi-style text editor"
|
||||
HOMEPAGE="http://www.vim.org/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="vim"
|
||||
IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
luajit? ( lua )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=app-admin/eselect-vi-1.1
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )
|
||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||
cscope? ( dev-util/cscope )
|
||||
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||
lua? (
|
||||
luajit? ( dev-lang/luajit )
|
||||
!luajit? ( dev-lang/lua[deprecated] )
|
||||
)
|
||||
!minimal? (
|
||||
~app-editors/vim-core-${PV}
|
||||
dev-util/ctags
|
||||
)
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
racket? ( dev-scheme/racket )
|
||||
ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 ) )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
tcl? ( dev-lang/tcl )
|
||||
X? ( x11-libs/libXt )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=app-admin/eselect-vi-1.1
|
||||
sys-devel/autoconf
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/vim${VIM_VERSION/.}
|
||||
|
||||
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
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
|
||||
# Apply any patches available from vim.org for this version
|
||||
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
|
||||
fi
|
||||
|
||||
if [[ -d "${WORKDIR}"/patches/ ]]; then
|
||||
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches/
|
||||
fi
|
||||
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
|
||||
|
||||
# conditionally make the manpager.sh script
|
||||
if use vim-pager ; then
|
||||
cat <<-END > "${S}"/runtime/macros/manpager.sh
|
||||
#!/bin/sh
|
||||
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
|
||||
vim \\
|
||||
-c 'let no_plugin_maps = 1' \\
|
||||
-c 'set nolist nomod ft=man' \\
|
||||
-c 'let g:showmarks_enable=0' \\
|
||||
-c 'runtime! macros/less.vim' -
|
||||
END
|
||||
fi
|
||||
|
||||
# Try to avoid sandbox problems. Bug #114475.
|
||||
if [[ -d "${S}"/src/po ]] ; then
|
||||
sed -i '/-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
|
||||
|
||||
epatch_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
|
||||
|
||||
if use minimal ; then
|
||||
myconf="--with-features=tiny \
|
||||
--disable-nls \
|
||||
--disable-multibyte \
|
||||
--disable-acl \
|
||||
--enable-gui=no \
|
||||
--without-x \
|
||||
--disable-darwin \
|
||||
--disable-luainterp \
|
||||
--disable-perlinterp \
|
||||
--disable-pythoninterp \
|
||||
--disable-mzschemeinterp \
|
||||
--disable-rubyinterp \
|
||||
--disable-selinux \
|
||||
--disable-tclinterp \
|
||||
--disable-gpm"
|
||||
else
|
||||
use debug && append-flags "-DDEBUG"
|
||||
|
||||
myconf="--with-features=huge --enable-multibyte"
|
||||
myconf+=" $(use_enable acl)"
|
||||
myconf+=" $(use_enable cscope)"
|
||||
myconf+=" $(use_enable gpm)"
|
||||
myconf+=" $(use_enable lua luainterp)"
|
||||
myconf+=" $(use_with luajit)"
|
||||
myconf+=" $(use_enable nls)"
|
||||
myconf+=" $(use_enable perl perlinterp)"
|
||||
myconf+=" $(use_enable racket mzschemeinterp)"
|
||||
myconf+=" $(use_enable ruby rubyinterp)"
|
||||
myconf+=" $(use_enable selinux)"
|
||||
myconf+=" $(use_enable tcl tclinterp)"
|
||||
|
||||
if use python ; then
|
||||
if [[ ${EPYTHON} == python3* ]] ; then
|
||||
myconf+=" --enable-python3interp"
|
||||
export vi_cv_path_python3="${PYTHON}"
|
||||
else
|
||||
myconf+=" --enable-pythoninterp"
|
||||
export vi_cv_path_python="${PYTHON}"
|
||||
fi
|
||||
else
|
||||
myconf+=" --disable-pythoninterp --disable-python3interp"
|
||||
fi
|
||||
|
||||
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||
if ! use cscope ; then
|
||||
sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
|
||||
die "couldn't disable cscope"
|
||||
fi
|
||||
|
||||
# don't test USE=X here ... see bug #19115
|
||||
# but need to provide a way to link against X ... see bug #20093
|
||||
myconf+=" --enable-gui=no --disable-darwin $(use_with X x)"
|
||||
fi
|
||||
|
||||
# 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} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The following allows emake to be used
|
||||
emake -j1 -C src auto/osdef.h objects
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo
|
||||
einfo "Starting vim tests. Several error messages will be shown"
|
||||
einfo "while the tests run. This is normal behaviour and does not"
|
||||
einfo "indicate a fault."
|
||||
echo
|
||||
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||
ewarn "state. Usually, running 'reset' will fix this."
|
||||
echo
|
||||
|
||||
# Don't let vim talk to X
|
||||
unset DISPLAY
|
||||
|
||||
# We've got to call make test from within testdir, since the Makefiles
|
||||
# don't pass through our VIMPROG argument
|
||||
cd "${S}"/src/testdir
|
||||
|
||||
# Test 49 won't work inside a portage environment
|
||||
einfo "Test 49 isn't sandbox-friendly, so it will be skipped."
|
||||
sed -i 's~test49.out~~g' Makefile
|
||||
|
||||
# We don't want to rebuild vim before running the tests
|
||||
sed -i 's,: \$(VIMPROG),: ,' Makefile
|
||||
|
||||
# Don't try to do the additional GUI test
|
||||
emake -j1 VIMPROG=../vim nongui
|
||||
}
|
||||
|
||||
# Make convenience symlinks, hopefully without stepping on toes. Some
|
||||
# of these links are "owned" by the vim ebuild when it is installed,
|
||||
# but they might be good for gvim as well (see bug 45828)
|
||||
update_vim_symlinks() {
|
||||
has "${EAPI:-0}" 0 1 2 && use !prefix && EROOT="${ROOT}"
|
||||
local f syms
|
||||
syms="vimdiff rvim rview"
|
||||
einfo "Calling eselect vi update..."
|
||||
# Call this with --if-unset to respect user's choice (bug 187449)
|
||||
eselect vi update --if-unset
|
||||
|
||||
# Make or remove convenience symlink, vim -> gvim
|
||||
if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
|
||||
ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
|
||||
elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
rm "${EROOT}"/usr/bin/vim
|
||||
fi
|
||||
|
||||
# Make or remove convenience symlinks to vim
|
||||
if [[ -f "${EROOT}"/usr/bin/vim ]]; then
|
||||
for f in ${syms}; do
|
||||
ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
|
||||
done
|
||||
else
|
||||
for f in ${syms}; do
|
||||
if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
|
||||
rm -f "${EROOT}"/usr/bin/${f}
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# This will still break if you merge then remove the vi package,
|
||||
# but there's only so much you can do, eh? Unfortunately we don't
|
||||
# have triggers like are done in rpm-land.
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||
|
||||
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
|
||||
# managed by eselect-vi
|
||||
dobin src/vim
|
||||
dosym vim /usr/bin/vimdiff
|
||||
dosym vim /usr/bin/rvim
|
||||
dosym vim /usr/bin/rview
|
||||
if use vim-pager ; then
|
||||
dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
|
||||
dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
|
||||
insinto ${vimfiles}/macros
|
||||
doins runtime/macros/manpager.sh
|
||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||
fi
|
||||
|
||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||
# keep in sync with 'complete ... -F' list
|
||||
bashcomp_alias vim ex vi view rvim rview vimdiff
|
||||
|
||||
# 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
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
if use X ; then
|
||||
echo
|
||||
elog "The 'X' USE flag enables vim <-> X communication, like"
|
||||
elog "updating the xterm titlebar. It does not install a GUI."
|
||||
fi
|
||||
echo
|
||||
elog "To install a GUI version of vim, use the app-editors/gvim"
|
||||
elog "package."
|
||||
echo
|
||||
elog "Vim 7 includes an integrated spell checker. You need to install"
|
||||
elog "word list files before you can use it. There are ebuilds for"
|
||||
elog "some of these named app-vim/vim-spell-*. If your language of"
|
||||
elog "choice is not included, please consult vim-spell.eclass for"
|
||||
elog "instructions on how to make a package."
|
||||
echo
|
||||
ewarn "Note that the English word lists are no longer installed by"
|
||||
ewarn "default."
|
||||
fi
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Update documentation tags (from vim-doc.eclass)
|
||||
update_vim_helptags
|
||||
|
||||
# Make convenience symlinks
|
||||
update_vim_symlinks
|
||||
}
|
@ -0,0 +1,138 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20140508-r5.ebuild,v 1.1 2014/11/24 02:50:47 tetromino Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit emul-linux-x86
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 FTL LGPL-2.1 LGPL-3 MPL-1.1 MIT"
|
||||
KEYWORDS="-* ~amd64"
|
||||
IUSE="abi_x86_32"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="~app-emulation/emul-linux-x86-baselibs-${PV}
|
||||
~app-emulation/emul-linux-x86-xlibs-${PV}
|
||||
~app-emulation/emul-linux-x86-opengl-${PV}
|
||||
!abi_x86_32? (
|
||||
!>=media-gfx/graphite2-1.2.4-r1[abi_x86_32(-)]
|
||||
!>=media-libs/harfbuzz-0.9.26-r1[abi_x86_32(-)]
|
||||
!>=app-accessibility/at-spi2-core-2.12.0-r1[abi_x86_32(-)]
|
||||
!>=app-accessibility/at-spi2-atk-2.12.1-r1[abi_x86_32(-)]
|
||||
!>=x11-libs/gtk+-3.12.2-r1[abi_x86_32(-)]
|
||||
!>=x11-libs/libnotify-0.7.6-r1[abi_x86_32(-)]
|
||||
)
|
||||
abi_x86_32? (
|
||||
>=x11-libs/pixman-0.32.4[abi_x86_32(-)]
|
||||
>=x11-libs/cairo-1.12.16-r2[abi_x86_32(-)]
|
||||
>=x11-libs/gdk-pixbuf-2.30.7[abi_x86_32(-)]
|
||||
>=media-gfx/graphite2-1.2.4-r1[abi_x86_32(-)]
|
||||
>=media-libs/harfbuzz-0.9.26-r1[abi_x86_32(-)]
|
||||
>=x11-libs/pango-1.36.3[abi_x86_32(-)]
|
||||
>=x11-libs/pangox-compat-0.0.2-r1[abi_x86_32(-)]
|
||||
>=media-libs/imlib-1.9.15-r4[abi_x86_32(-)]
|
||||
>=dev-libs/atk-2.10.0-r1[abi_x86_32(-)]
|
||||
>=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
|
||||
>=gnome-base/gconf-3.2.6-r3[abi_x86_32(-)]
|
||||
>=gnome-base/gnome-vfs-2.24.4-r2[abi_x86_32(-)]
|
||||
>=gnome-base/libglade-2.6.4-r2[abi_x86_32(-)]
|
||||
>=app-accessibility/at-spi2-core-2.12.0-r1[abi_x86_32(-)]
|
||||
>=app-accessibility/at-spi2-atk-2.12.1-r1[abi_x86_32(-)]
|
||||
>=x11-libs/gtk+-3.12.2-r1[abi_x86_32(-)]
|
||||
>=x11-libs/libnotify-0.7.6-r1[abi_x86_32(-)]
|
||||
)"
|
||||
# RDEPEND on opengl stuff needed due cairo, bug #410213
|
||||
|
||||
my_gdk_pixbuf_query_loaders() {
|
||||
# causes segfault if set
|
||||
unset __GL_NO_DSO_FINALIZER
|
||||
|
||||
local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders)
|
||||
if [ -z "${tmp_file}" ]; then
|
||||
ewarn "Cannot create temporary file"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if gdk-pixbuf-query-loaders32 > "${tmp_file}"; then
|
||||
cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
||||
else
|
||||
ewarn "Warning, gdk-pixbuf-query-loaders32 failed."
|
||||
fi
|
||||
rm "${tmp_file}"
|
||||
}
|
||||
|
||||
my_pango_querymodules() {
|
||||
PANGO_CONFDIR="/etc/pango/i686-pc-linux-gnu"
|
||||
einfo "Generating pango modules listing..."
|
||||
|
||||
mkdir -p "${PANGO_CONFDIR}"
|
||||
local pango_conf="${PANGO_CONFDIR}/pango.modules"
|
||||
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXpango_querymodules)
|
||||
if [ -z "${tmp_file}" ]; then
|
||||
ewarn "Cannot create temporary file"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if pango-querymodules32 > "${tmp_file}"; then
|
||||
cat "${tmp_file}" > "${pango_conf}"
|
||||
else
|
||||
ewarn "Cannot update pango.modules, file generation failed"
|
||||
fi
|
||||
rm "${tmp_file}"
|
||||
}
|
||||
|
||||
my_gtk_query_immodules() {
|
||||
GTK2_CONFDIR="/etc/gtk-2.0/i686-pc-linux-gnu"
|
||||
einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing..."
|
||||
|
||||
mkdir -p "${GTK2_CONFDIR}"
|
||||
local gtk_conf="${ROOT}${GTK2_CONFDIR}/gtk.immodules"
|
||||
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules)
|
||||
if [ -z "${tmp_file}" ]; then
|
||||
ewarn "Cannot create temporary file"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if gtk-query-immodules-2.0-32 > "${tmp_file}"; then
|
||||
cat "${tmp_file}" > "${gtk_conf}"
|
||||
else
|
||||
ewarn "Cannot update gtk.immodules, file generation failed"
|
||||
fi
|
||||
rm "${tmp_file}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
query_tools="${S}/usr/bin/gtk-query-immodules-2.0|${S}/usr/bin/gdk-pixbuf-query-loaders|${S}/usr/bin/i686-pc-linux-gnu-gdk-pixbuf-query-loaders|${S}/usr/bin/pango-querymodules"
|
||||
ALLOWED="(${S}/etc/env.d|${S}/etc/gtk-2.0|${S}/etc/pango/i686-pc-linux-gnu|${query_tools})"
|
||||
emul-linux-x86_src_prepare
|
||||
|
||||
# these tools generate an index in /etc/{pango,gtk-2.0}/${CHOST}
|
||||
mv -f "${S}/usr/bin/pango-querymodules"{,32} || die
|
||||
mv -f "${S}/usr/bin/gtk-query-immodules-2.0"{,-32} || die
|
||||
mv -f "${S}/usr/bin/gdk-pixbuf-query-loaders"{,32} || die
|
||||
|
||||
# Remove migrated stuff.
|
||||
use abi_x86_32 && rm -f $(cat "${FILESDIR}/remove-native-${PVR}")
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
#bug 169058
|
||||
for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do
|
||||
[[ -L ${l} ]] && rm -f ${l}
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use abi_x86_32; then
|
||||
my_pango_querymodules
|
||||
my_gdk_pixbuf_query_loaders
|
||||
my_gtk_query_immodules
|
||||
fi
|
||||
|
||||
# gdk-pixbuf.loaders should be in their CHOST directories respectively.
|
||||
if [[ -e "${ROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]] ; then
|
||||
ewarn
|
||||
ewarn "File /etc/gtk-2.0/gdk-pixbuf.loaders shouldn't be present on"
|
||||
ewarn "multilib systems, please remove it by hand."
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
usr/lib32/libpixman-1.so
|
||||
usr/lib32/libpixman-1.so.0
|
||||
usr/lib32/libpixman-1.so.0.32.4
|
||||
usr/lib32/pkgconfig/pixman-1.pc
|
||||
usr/lib32/cairo/cairo-fdr.so
|
||||
usr/lib32/cairo/cairo-fdr.so.0
|
||||
usr/lib32/cairo/cairo-fdr.so.0.0.0
|
||||
usr/lib32/cairo/cairo-sphinx.so
|
||||
usr/lib32/cairo/cairo-sphinx.so.0
|
||||
usr/lib32/cairo/cairo-sphinx.so.0.0.0
|
||||
usr/lib32/cairo/libcairo-trace.so
|
||||
usr/lib32/cairo/libcairo-trace.so.0
|
||||
usr/lib32/cairo/libcairo-trace.so.0.0.0
|
||||
usr/lib32/libcairo-gobject.so
|
||||
usr/lib32/libcairo-gobject.so.2
|
||||
usr/lib32/libcairo-gobject.so.2.11200.16
|
||||
usr/lib32/libcairo-script-interpreter.so
|
||||
usr/lib32/libcairo-script-interpreter.so.2
|
||||
usr/lib32/libcairo-script-interpreter.so.2.11200.16
|
||||
usr/lib32/libcairo.so
|
||||
usr/lib32/libcairo.so.2
|
||||
usr/lib32/libcairo.so.2.11200.16
|
||||
usr/lib32/pkgconfig/cairo-egl.pc
|
||||
usr/lib32/pkgconfig/cairo-fc.pc
|
||||
usr/lib32/pkgconfig/cairo-ft.pc
|
||||
usr/lib32/pkgconfig/cairo-gl.pc
|
||||
usr/lib32/pkgconfig/cairo-glx.pc
|
||||
usr/lib32/pkgconfig/cairo-gobject.pc
|
||||
usr/lib32/pkgconfig/cairo-pdf.pc
|
||||
usr/lib32/pkgconfig/cairo-png.pc
|
||||
usr/lib32/pkgconfig/cairo-ps.pc
|
||||
usr/lib32/pkgconfig/cairo-script.pc
|
||||
usr/lib32/pkgconfig/cairo-svg.pc
|
||||
usr/lib32/pkgconfig/cairo-tee.pc
|
||||
usr/lib32/pkgconfig/cairo-xlib-xrender.pc
|
||||
usr/lib32/pkgconfig/cairo-xlib.pc
|
||||
usr/lib32/pkgconfig/cairo.pc
|
||||
usr/bin/gdk-pixbuf-query-loaders32
|
||||
usr/lib32/libgdk_pixbuf_xlib-2.0.so.0.3000.7
|
||||
usr/lib32/libgdk_pixbuf-2.0.so
|
||||
usr/lib32/libgdk_pixbuf_xlib-2.0.so
|
||||
usr/lib32/pkgconfig/gdk-pixbuf-2.0.pc
|
||||
usr/lib32/pkgconfig/gdk-pixbuf-xlib-2.0.pc
|
||||
usr/lib32/libgdk_pixbuf-2.0.so.0.3000.7
|
||||
usr/lib32/libgdk_pixbuf_xlib-2.0.so.0
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so
|
||||
usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
|
||||
usr/lib32/libgdk_pixbuf-2.0.so.0
|
||||
usr/bin/pango-querymodules32
|
||||
usr/lib32/libpango-1.0.so
|
||||
usr/lib32/libpango-1.0.so.0
|
||||
usr/lib32/libpango-1.0.so.0.3600.3
|
||||
usr/lib32/libpangocairo-1.0.so
|
||||
usr/lib32/libpangocairo-1.0.so.0
|
||||
usr/lib32/libpangocairo-1.0.so.0.3600.3
|
||||
usr/lib32/libpangoft2-1.0.so
|
||||
usr/lib32/libpangoft2-1.0.so.0
|
||||
usr/lib32/libpangoft2-1.0.so.0.3600.3
|
||||
usr/lib32/libpangox-1.0.so
|
||||
usr/lib32/libpangox-1.0.so.0
|
||||
usr/lib32/libpangox-1.0.so.0.0.0
|
||||
usr/lib32/libpangoxft-1.0.so
|
||||
usr/lib32/libpangoxft-1.0.so.0
|
||||
usr/lib32/libpangoxft-1.0.so.0.3600.3
|
||||
usr/lib32/pango/1.8.0/modules/pango-arabic-lang.so
|
||||
usr/lib32/pango/1.8.0/modules/pango-indic-lang.so
|
||||
usr/lib32/pango/1.8.0/modules/pango-basic-fc.so
|
||||
usr/lib32/pkgconfig/pango.pc
|
||||
usr/lib32/pkgconfig/pangocairo.pc
|
||||
usr/lib32/pkgconfig/pangoft2.pc
|
||||
usr/lib32/pkgconfig/pangox.pc
|
||||
usr/lib32/pkgconfig/pangoxft.pc
|
||||
usr/lib32/libgraphite2.so
|
||||
usr/lib32/libgraphite2.so.3
|
||||
usr/lib32/libgraphite2.so.3.0.1
|
||||
usr/lib32/pkgconfig/graphite2.pc
|
||||
usr/lib32/libharfbuzz-gobject.so
|
||||
usr/lib32/libharfbuzz-gobject.so.0
|
||||
usr/lib32/libharfbuzz-gobject.so.0.923.0
|
||||
usr/lib32/libharfbuzz.so
|
||||
usr/lib32/libharfbuzz.so.0
|
||||
usr/lib32/libharfbuzz.so.0.923.0
|
||||
usr/lib32/pkgconfig/harfbuzz-gobject.pc
|
||||
usr/lib32/pkgconfig/harfbuzz.pc
|
||||
usr/lib32/libImlib.so
|
||||
usr/lib32/libImlib.so.1
|
||||
usr/lib32/libImlib.so.1.9.15
|
||||
usr/lib32/pkgconfig/imlib.pc
|
||||
usr/lib32/libatk-1.0.so
|
||||
usr/lib32/libatk-1.0.so.0
|
||||
usr/lib32/libatk-1.0.so.0.21009.1
|
||||
usr/lib32/pkgconfig/atk.pc
|
||||
usr/lib32/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so
|
||||
usr/lib32/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
|
||||
usr/lib32/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libpixmap.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-am-et.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-inuktitut.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-cedilla.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-viqr.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-thai.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-ipa.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-ti-et.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-ti-er.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-multipress.so
|
||||
usr/lib32/gtk-2.0/2.10.0/immodules/im-xim.so
|
||||
usr/lib32/gtk-2.0/include/gdkconfig.h
|
||||
usr/lib32/gtk-2.0/modules/libgail.so
|
||||
usr/lib32/gtk-2.0/modules/libferret.so
|
||||
usr/lib32/libgailutil.so
|
||||
usr/lib32/libgailutil.so.18
|
||||
usr/lib32/libgailutil.so.18.0.1
|
||||
usr/lib32/libgdk-x11-2.0.so
|
||||
usr/lib32/libgdk-x11-2.0.so.0
|
||||
usr/lib32/libgdk-x11-2.0.so.0.2400.23
|
||||
usr/lib32/libgtk-x11-2.0.so
|
||||
usr/lib32/libgtk-x11-2.0.so.0
|
||||
usr/lib32/libgtk-x11-2.0.so.0.2400.23
|
||||
usr/lib32/pkgconfig/gail.pc
|
||||
usr/lib32/pkgconfig/gdk-2.0.pc
|
||||
usr/lib32/pkgconfig/gdk-x11-2.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-2.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-unix-print-2.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-x11-2.0.pc
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libmurrine.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libmist.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libthinice.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libglide.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libhcengine.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libclearlooks.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libxfce.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libindustrial.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libredmond95.so
|
||||
usr/lib32/gtk-2.0/2.10.0/engines/libcrux-engine.so
|
||||
usr/lib32/pkgconfig/gtk-engines-2.pc
|
||||
usr/lib32/GConf/2/libgconfbackend-evoldap.so
|
||||
usr/lib32/GConf/2/libgconfbackend-oldxml.so
|
||||
usr/lib32/GConf/2/libgconfbackend-xml.so
|
||||
usr/lib32/gio/modules/libgsettingsgconfbackend.so
|
||||
usr/lib32/libgconf-2.so
|
||||
usr/lib32/libgconf-2.so.4
|
||||
usr/lib32/libgconf-2.so.4.1.5
|
||||
usr/lib32/pkgconfig/gconf-2.0.pc
|
||||
usr/lib32/gnome-vfs-2.0/include/gnome-vfs-file-size.h
|
||||
usr/lib32/gnome-vfs-2.0/modules/libbzip2.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libcomputer.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libdns-sd.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libfile.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libftp.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libgzip.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libhttp.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libnetwork.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libnntp.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libsftp.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libtar.so
|
||||
usr/lib32/gnome-vfs-2.0/modules/libvfs-test.so
|
||||
usr/lib32/libgnomevfs-2.so
|
||||
usr/lib32/libgnomevfs-2.so.0
|
||||
usr/lib32/libgnomevfs-2.so.0.2400.4
|
||||
usr/lib32/pkgconfig/gnome-vfs-2.0.pc
|
||||
usr/lib32/pkgconfig/gnome-vfs-module-2.0.pc
|
||||
usr/lib32/libglade-2.0.so
|
||||
usr/lib32/libglade-2.0.so.0
|
||||
usr/lib32/libglade-2.0.so.0.0.7
|
||||
usr/lib32/pkgconfig/libglade-2.0.pc
|
||||
usr/lib32/libatspi.so
|
||||
usr/lib32/libatspi.so.0
|
||||
usr/lib32/libatspi.so.0.0.1
|
||||
usr/lib32/pkgconfig/atspi-2.pc
|
||||
usr/lib32/libatk-bridge-2.0.so
|
||||
usr/lib32/libatk-bridge-2.0.so.0
|
||||
usr/lib32/libatk-bridge-2.0.so.0.0.0
|
||||
usr/lib32/gtk-2.0/modules/libatk-bridge.so
|
||||
usr/lib32/pkgconfig/atk-bridge-2.0.pc
|
||||
usr/lib32/libgdk-3.so
|
||||
usr/lib32/libgdk-3.so.0
|
||||
usr/lib32/libgdk-3.so.0.1000.8
|
||||
usr/lib32/libgtk-3.so
|
||||
usr/lib32/libgtk-3.so.0
|
||||
usr/lib32/libgtk-3.so.0.1000.8
|
||||
usr/lib32/libgailutil-3.so
|
||||
usr/lib32/libgailutil-3.so.0
|
||||
usr/lib32/libgailutil-3.so.0.0.0
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-am-et.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-cedilla.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-inuktitut.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-ipa.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-multipress.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-thai.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-ti-er.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-ti-et.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-viqr.so
|
||||
usr/lib32/gtk-3.0/3.0.0/immodules/im-xim.so
|
||||
usr/lib32/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so
|
||||
usr/lib32/gtk-3.0/3.0.0/printbackends/libprintbackend-file.so
|
||||
usr/lib32/gtk-3.0/3.0.0/printbackends/libprintbackend-lpr.so
|
||||
usr/lib32/pkgconfig/gdk-3.0.pc
|
||||
usr/lib32/pkgconfig/gdk-x11-3.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-3.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-unix-print-3.0.pc
|
||||
usr/lib32/pkgconfig/gtk+-x11-3.0.pc
|
||||
usr/lib32/pkgconfig/gail-3.0.pc
|
||||
usr/lib32/libnotify.so
|
||||
usr/lib32/libnotify.so.4
|
||||
usr/lib32/libnotify.so.4.0.0
|
||||
usr/lib32/pkgconfig/libnotify.pc
|
@ -1,3 +1,4 @@
|
||||
DIST appliance-1.20.0.tar.xz 53676256 SHA256 2ce9950c303b4e01b8d9d9e46248b4256a2a290dd44cc6c593cb1029a05272e8 SHA512 f4dcf6b33e2fe8620e343fd29e1b7340700fc8c654a4b2c4fbf122e6d5775a613b542d08f81aae750f973e593764da57cb3da331ae1922aea992392a2c404252 WHIRLPOOL 10a0685a98246b2701c17cae44e37ef7a6d6154489e62b634e00986b5380f72132d8be059cd516330f86478fffb38855b9792321fefd3e8fb9554c0806428314
|
||||
DIST appliance-1.24.8.tar.xz 68687024 SHA256 dfd113257b8416a52211ccc250b190082831b688f6a4bbbe8d22f0ad0f4ff8ac SHA512 c20d7c40602409907654eafdbbeec752c146ca8f9b6e372911a282416de94aedf06ca97555b62da7fb07f65c5c005529fac7693c9ff7034835568bffefd47b7d WHIRLPOOL 9f9250ee09a2faeb99d0cdc688dde1de6bb094c127767ff608b1306425d9bf84d45d2430fc97e54d96ee6ff4cf1fe42213531022e3317eb28fa393ab41479017
|
||||
DIST appliance-1.26.0.tar.xz 94753208 SHA256 446e8f0cfb24977843049984879d471760a1f56dd9f891f2a66c16827c7dfbcf SHA512 5d493ed6e8601dde8d5a45debfee71696b96a36d0f69d428388a6f2a2d49e12c0a66bcee210fe606fc9b2b41cb42d0d2a9f5d12425f2b234423194b2609f081f WHIRLPOOL 18cb09b44ce568e4270e574fffe7ffd935c4d64564abaae66c3d70202db9df75b013a0ed8add639ac13ea4ebd0ec9d74645a774d2e969686c8bc0d616587f625
|
||||
DIST appliance-1.28.1.tar.xz 100065044 SHA256 d6aa214ba05666ca7b8494b2f1814f2f291e569a9476e837e4b9d061ff92cfa2 SHA512 f13c556953d3542f92c2c007d3e97c3568382a1879e7a558471dbeac8962bd2809e446bbf0f4647002967112abe8f9a9a06910b74e9b7d72694cf49859a26330 WHIRLPOOL fa80fc747e4270fb3bc3b853ea9abf62fd655cab4c72eb6a084d319078a9f89baf2a8c00b34c9dcbc8fb875f1526c0a8e681a6f4917710934a9c2a8d99010e04
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libguestfs-appliance/libguestfs-appliance-1.28.1.ebuild,v 1.1 2014/11/23 17:30:16 maksbotan Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
CHECKREQS_DISK_USR=500M
|
||||
CHECKREQS_DISK_BUILD=500M
|
||||
|
||||
inherit check-reqs
|
||||
|
||||
DESCRIPTION="VM appliance disk image used in libguestfs package"
|
||||
HOMEPAGE="http://libguestfs.org/"
|
||||
SRC_URI="http://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/xz-utils"
|
||||
# Mixing libguestfs versions causes weird problems. #501588
|
||||
RDEPEND="!<app-emulation/libguestfs-${PV}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
# We'll unpack the tarball directly into ${D} to speed up install.
|
||||
# Otherwise we need to duplicate hundreds of data.
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/guestfs
|
||||
cd "${ED}"/usr/share/guestfs
|
||||
unpack ${A}
|
||||
cd appliance || die
|
||||
dodoc README*
|
||||
rm README* || die
|
||||
chmod 755 . || die
|
||||
chmod 644 * || die
|
||||
|
||||
newenvd "${FILESDIR}"/env.file 99"${PN}"
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-4.3.20.ebuild,v 1.1 2014/11/23 14:17:54 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_PN=VBoxGuestAdditions
|
||||
MY_PV="${PV/beta/BETA}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
MY_P=${MY_PN}_${MY_PV}
|
||||
|
||||
DESCRIPTION="CD image containing guest additions for VirtualBox"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="mirror"
|
||||
|
||||
RDEPEND="!app-emulation/virtualbox-bin
|
||||
!=app-emulation/virtualbox-9999"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
return 0
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN/-additions}
|
||||
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
|
||||
}
|
@ -0,0 +1,357 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-4.3.20.96996.ebuild,v 1.1 2014/11/23 14:17:09 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime gnome2 pax-utils udev unpacker versionator
|
||||
|
||||
MAIN_PV="$(get_version_component_range 1-3)"
|
||||
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||
MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
|
||||
MY_PV="${MY_PV/beta/BETA}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
else
|
||||
MY_PV="${MAIN_PV}"
|
||||
fi
|
||||
VBOX_BUILD_ID="$(get_version_component_range 4)"
|
||||
VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
|
||||
MY_P="VirtualBox-${VBOX_PV}-Linux"
|
||||
# needed as sometimes the extpack gets another build ID
|
||||
EXTP_PV="${VBOX_PV}"
|
||||
EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
|
||||
EXTP_P="${EXTP_PN}-${EXTP_PV}"
|
||||
# needed as sometimes the SDK gets another build ID
|
||||
SDK_PV="${VBOX_PV}"
|
||||
SDK_P="VirtualBoxSDK-${SDK_PV}"
|
||||
|
||||
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
|
||||
x86? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
|
||||
http://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 PUEL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
|
||||
RESTRICT="mirror"
|
||||
|
||||
if [[ "${PV}" != *beta* ]] ; then
|
||||
SRC_URI+="
|
||||
sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
|
||||
IUSE+=" sdk"
|
||||
fi
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
RDEPEND="!!app-emulation/virtualbox
|
||||
!app-emulation/virtualbox-additions
|
||||
~app-emulation/virtualbox-modules-${MAIN_PV}
|
||||
!headless? (
|
||||
x11-libs/libXcursor
|
||||
media-libs/libsdl[X]
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXfixes
|
||||
media-libs/libpng
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXft
|
||||
media-libs/freetype
|
||||
media-libs/fontconfig
|
||||
x11-libs/libXext
|
||||
dev-libs/glib
|
||||
chm? ( dev-libs/expat )
|
||||
)
|
||||
x11-libs/libXt
|
||||
dev-libs/libxml2
|
||||
x11-libs/libXau
|
||||
x11-libs/libX11
|
||||
x11-libs/libXmu
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
x11-libs/libXdmcp
|
||||
python? ( dev-lang/python:2.7 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_TEXTRELS_amd64="opt/VirtualBox/VBoxVMM.so"
|
||||
QA_TEXTRELS_x86="opt/VirtualBox/VBoxGuestPropSvc.so
|
||||
opt/VirtualBox/VBoxSDL.so
|
||||
opt/VirtualBox/VBoxDbg.so
|
||||
opt/VirtualBox/VBoxSharedFolders.so
|
||||
opt/VirtualBox/VBoxDD2.so
|
||||
opt/VirtualBox/VBoxOGLrenderspu.so
|
||||
opt/VirtualBox/VBoxPython.so
|
||||
opt/VirtualBox/VBoxPython2_7.so
|
||||
opt/VirtualBox/VBoxDD.so
|
||||
opt/VirtualBox/VBoxVRDP.so
|
||||
opt/VirtualBox/VBoxDDU.so
|
||||
opt/VirtualBox/VBoxREM64.so
|
||||
opt/VirtualBox/VBoxSharedClipboard.so
|
||||
opt/VirtualBox/VBoxHeadless.so
|
||||
opt/VirtualBox/VBoxRT.so
|
||||
opt/VirtualBox/VRDPAuth.so
|
||||
opt/VirtualBox/VBoxREM.so
|
||||
opt/VirtualBox/VBoxSettings.so
|
||||
opt/VirtualBox/VBoxKeyboard.so
|
||||
opt/VirtualBox/VBoxSharedCrOpenGL.so
|
||||
opt/VirtualBox/VBoxVMM.so
|
||||
opt/VirtualBox/VirtualBox.so
|
||||
opt/VirtualBox/VBoxOGLhosterrorspu.so
|
||||
opt/VirtualBox/components/VBoxC.so
|
||||
opt/VirtualBox/components/VBoxSVCM.so
|
||||
opt/VirtualBox/VBoxREM32.so
|
||||
opt/VirtualBox/VBoxXPCOMC.so
|
||||
opt/VirtualBox/VBoxOGLhostcrutil.so
|
||||
opt/VirtualBox/VBoxNetDHCP.so
|
||||
opt/VirtualBox/VBoxGuestControlSvc.so"
|
||||
QA_PRESTRIPPED="opt/VirtualBox/VBoxDD.so
|
||||
opt/VirtualBox/VBoxDD2.so
|
||||
opt/VirtualBox/VBoxDDU.so
|
||||
opt/VirtualBox/VBoxDbg.so
|
||||
opt/VirtualBox/VBoxGuestControlSvc.so
|
||||
opt/VirtualBox/VBoxGuestPropSvc.so
|
||||
opt/VirtualBox/VBoxHeadless
|
||||
opt/VirtualBox/VBoxHeadless.so
|
||||
opt/VirtualBox/VBoxKeyboard.so
|
||||
opt/VirtualBox/VBoxManage
|
||||
opt/VirtualBox/VBoxNetAdpCtl
|
||||
opt/VirtualBox/VBoxNetDHCP
|
||||
opt/VirtualBox/VBoxNetDHCP.so
|
||||
opt/VirtualBox/VBoxOGLhostcrutil.so
|
||||
opt/VirtualBox/VBoxOGLhosterrorspu.so
|
||||
opt/VirtualBox/VBoxOGLrenderspu.so
|
||||
opt/VirtualBox/VBoxPython.so
|
||||
opt/VirtualBox/VBoxPython2_7.so
|
||||
opt/VirtualBox/VBoxREM.so
|
||||
opt/VirtualBox/VBoxREM32.so
|
||||
opt/VirtualBox/VBoxREM64.so
|
||||
opt/VirtualBox/VBoxRT.so
|
||||
opt/VirtualBox/VBoxSDL
|
||||
opt/VirtualBox/VBoxSDL.so
|
||||
opt/VirtualBox/VBoxSVC
|
||||
opt/VirtualBox/VBoxSettings.so
|
||||
opt/VirtualBox/VBoxSharedClipboard.so
|
||||
opt/VirtualBox/VBoxSharedCrOpenGL.so
|
||||
opt/VirtualBox/VBoxSharedFolders.so
|
||||
opt/VirtualBox/VBoxTestOGL
|
||||
opt/VirtualBox/VBoxTunctl
|
||||
opt/VirtualBox/VBoxVMM.so
|
||||
opt/VirtualBox/VBoxVRDP.so
|
||||
opt/VirtualBox/VBoxXPCOM.so
|
||||
opt/VirtualBox/VBoxXPCOMC.so
|
||||
opt/VirtualBox/VBoxXPCOMIPCD
|
||||
opt/VirtualBox/VRDPAuth.so
|
||||
opt/VirtualBox/VirtualBox
|
||||
opt/VirtualBox/VirtualBox.so
|
||||
opt/VirtualBox/accessible/libqtaccessiblewidgets.so
|
||||
opt/VirtualBox/components/VBoxC.so
|
||||
opt/VirtualBox/components/VBoxSVCM.so
|
||||
opt/VirtualBox/components/VBoxXPCOMIPCC.so
|
||||
opt/VirtualBox/kchmviewer
|
||||
opt/VirtualBox/libQtCoreVBox.so.4
|
||||
opt/VirtualBox/libQtGuiVBox.so.4
|
||||
opt/VirtualBox/libQtNetworkVBox.so.4
|
||||
opt/VirtualBox/libQtOpenGLVBox.so.4
|
||||
opt/VirtualBox/vboxwebsrv"
|
||||
|
||||
PYTHON_UPDATER_IGNORE="1"
|
||||
|
||||
src_unpack() {
|
||||
unpack_makeself ${MY_P}_${ARCH}.run
|
||||
unpack ./VirtualBox.tar.bz2
|
||||
|
||||
mkdir "${S}"/${EXTP_PN} || die
|
||||
pushd "${S}"/${EXTP_PN} &>/dev/null || die
|
||||
unpack ${EXTP_P}.tar.gz
|
||||
popd &>/dev/null || die
|
||||
|
||||
if [[ "${PV}" != *beta* ]] && use sdk ; then
|
||||
unpack VirtualBoxSDK-${SDK_PV}.zip
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# create virtualbox configurations files
|
||||
insinto /etc/vbox
|
||||
newins "${FILESDIR}/${PN}-config" vbox.cfg
|
||||
|
||||
if ! use headless ; then
|
||||
pushd "${S}"/icons &>/dev/null || die
|
||||
for size in * ; do
|
||||
if [ -f "${size}/virtualbox.png" ] ; then
|
||||
insinto "/usr/share/icons/hicolor/${size}/apps"
|
||||
newins "${size}/virtualbox.png" ${PN}.png
|
||||
fi
|
||||
done
|
||||
dodir /usr/share/pixmaps
|
||||
cp "48x48/virtualbox.png" "${D}/usr/share/pixmaps/${PN}.png" \
|
||||
|| die
|
||||
popd &>/dev/null || die
|
||||
|
||||
newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
|
||||
fi
|
||||
|
||||
pushd "${S}"/${EXTP_PN} &>/dev/null || die
|
||||
insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
|
||||
doins -r linux.${ARCH}
|
||||
doins ExtPack* PXE-Intel.rom
|
||||
popd &>/dev/null || die
|
||||
rm -rf "${S}"/${EXTP_PN}
|
||||
|
||||
insinto /opt/VirtualBox
|
||||
dodir /opt/bin
|
||||
|
||||
doins UserManual.pdf
|
||||
|
||||
if [[ "${PV}" != *beta* ]] && use sdk ; then
|
||||
doins -r sdk
|
||||
fi
|
||||
|
||||
if use additions; then
|
||||
doins -r additions
|
||||
fi
|
||||
|
||||
if use vboxwebsrv; then
|
||||
doins vboxwebsrv
|
||||
fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
|
||||
fperms 0750 /opt/VirtualBox/vboxwebsrv
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
|
||||
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
|
||||
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
|
||||
fi
|
||||
|
||||
if use rdesktop-vrdp; then
|
||||
doins rdesktop-vrdp
|
||||
doins -r rdesktop-vrdp-keymaps
|
||||
fperms 0750 /opt/VirtualBox/rdesktop-vrdp
|
||||
dosym /opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
|
||||
fi
|
||||
|
||||
if ! use headless && use chm; then
|
||||
doins kchmviewer VirtualBox.chm
|
||||
fowners root:vboxusers /opt/VirtualBox/kchmviewer
|
||||
fperms 0750 /opt/VirtualBox/kchmviewer
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
local pyslot
|
||||
for pyslot in 2.7 ; do
|
||||
if has_version "dev-lang/python:${pyslot}" && [ -f "${S}/VBoxPython${pyslot/./_}.so" ] ; then
|
||||
doins VBoxPython${pyslot/./_}.so
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
|
||||
vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
|
||||
VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
|
||||
webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
|
||||
90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
|
||||
VBoxPython?_*.so
|
||||
|
||||
if use headless ; then
|
||||
rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
|
||||
fi
|
||||
|
||||
doins -r * || die
|
||||
|
||||
# create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
|
||||
dosym /opt/VirtualBox/VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
|
||||
dosym /opt/VirtualBox/VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
|
||||
dosym /opt/VirtualBox/VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
|
||||
dosym /opt/VirtualBox/VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
|
||||
dosym /opt/VirtualBox/VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
|
||||
|
||||
local each
|
||||
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
|
||||
fowners root:vboxusers /opt/VirtualBox/${each}
|
||||
fperms 0750 /opt/VirtualBox/${each}
|
||||
pax-mark -m "${D}"/opt/VirtualBox/${each}
|
||||
done
|
||||
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
|
||||
fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
|
||||
fperms 4750 /opt/VirtualBox/VBoxNetDHCP
|
||||
fperms 4750 /opt/VirtualBox/VBoxNetNAT
|
||||
|
||||
if ! use headless ; then
|
||||
# Hardened build: Mark selected binaries set-user-ID-on-execution
|
||||
for each in VBox{SDL,Headless} VirtualBox; do
|
||||
fowners root:vboxusers /opt/VirtualBox/${each}
|
||||
fperms 4510 /opt/VirtualBox/${each}
|
||||
pax-mark -m "${D}"/opt/VirtualBox/${each}
|
||||
done
|
||||
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/VirtualBox
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxSDL
|
||||
else
|
||||
# Hardened build: Mark selected binaries set-user-ID-on-execution
|
||||
fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
|
||||
fperms 4510 /opt/VirtualBox/VBoxHeadless
|
||||
pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
|
||||
fi
|
||||
|
||||
exeinto /opt/VirtualBox
|
||||
newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
|
||||
fowners root:vboxusers /opt/VirtualBox/VBox.sh
|
||||
fperms 0750 /opt/VirtualBox/VBox.sh
|
||||
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxManage
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxVRDP
|
||||
dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxHeadless
|
||||
dosym /opt/VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
|
||||
|
||||
# set an env-variable for 3rd party tools
|
||||
echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
|
||||
doenvd "${T}/90virtualbox"
|
||||
|
||||
local udevdir="$(get_udevdir)"
|
||||
insinto ${udevdir}/rules.d
|
||||
doins "${FILESDIR}"/10-virtualbox.rules
|
||||
sed "s@%UDEVDIR%@${udevdir}@" \
|
||||
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
|
||||
# move udev scripts into ${udevdir} (bug #372491)
|
||||
mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die
|
||||
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
gnome2_icon_cache_update
|
||||
|
||||
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
|
||||
|
||||
elog ""
|
||||
if ! use headless ; then
|
||||
elog "To launch VirtualBox just type: \"VirtualBox\""
|
||||
elog ""
|
||||
fi
|
||||
elog "You must be in the vboxusers group to use VirtualBox."
|
||||
elog ""
|
||||
elog "For advanced networking setups you should emerge:"
|
||||
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
|
||||
elog ""
|
||||
elog "Please visit http://www.virtualbox.org/wiki/Editions for"
|
||||
elog "an overview about the different features of ${PN}"
|
||||
elog "and virtualbox-ose"
|
||||
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
|
||||
elog ""
|
||||
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
|
||||
elog "or else USB in ${PN} won't work."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.3.20.96996.ebuild,v 1.1 2014/11/23 14:18:48 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib versionator
|
||||
|
||||
MAIN_PV="$(get_version_component_range 1-3)"
|
||||
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
|
||||
MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
|
||||
MY_PV="${MY_PV/beta/BETA}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
else
|
||||
MY_PV="${MAIN_PV}"
|
||||
fi
|
||||
VBOX_BUILD_ID="$(get_version_component_range 4)"
|
||||
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
|
||||
MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
|
||||
|
||||
DESCRIPTION="PUEL extensions for VirtualBox"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="PUEL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
RDEPEND="~app-emulation/virtualbox-${MAIN_PV}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="/usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}/.*"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
|
||||
doins -r linux.${ARCH}
|
||||
doins ExtPack* PXE-Intel.rom
|
||||
}
|
@ -0,0 +1,213 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.3.20.ebuild,v 1.1 2014/11/23 14:22:45 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils linux-mod systemd user
|
||||
|
||||
MY_PV="${PV/beta/BETA}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
MY_P=VirtualBox-${MY_PV}
|
||||
DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV}
|
||||
x11-apps/xrandr
|
||||
x11-apps/xrefresh
|
||||
x11-libs/libXmu
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
x11-libs/libXext
|
||||
x11-libs/libXau
|
||||
x11-libs/libXdmcp
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
x11-proto/glproto )
|
||||
sys-apps/dbus
|
||||
!!x11-drivers/xf86-input-virtualbox"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/kbuild-0.1.9998_pre20131130
|
||||
>=dev-lang/yasm-0.6.2
|
||||
sys-devel/bin86
|
||||
sys-libs/pam
|
||||
sys-power/iasl
|
||||
X? ( x11-proto/renderproto )
|
||||
!X? ( x11-proto/xproto )"
|
||||
|
||||
BUILD_TARGETS="all"
|
||||
BUILD_TARGET_ARCH="${ARCH}"
|
||||
MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
|
||||
vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
|
||||
enewgroup vboxguest
|
||||
enewuser vboxguest -1 /bin/sh /dev/null vboxguest
|
||||
# automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
|
||||
enewgroup vboxsf
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# Create and unpack a tarball with the sources of the Linux guest
|
||||
# kernel modules, to include all the needed files
|
||||
"${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
|
||||
unpack ./vbox-kmod.tar.gz
|
||||
|
||||
# Remove shipped binaries (kBuild,yasm), see bug #232775
|
||||
cd "${S}"
|
||||
rm -rf kBuild/bin tools
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# PaX fixes (see bug #298988)
|
||||
pushd "${WORKDIR}" &>/dev/null || die
|
||||
epatch "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
|
||||
popd &>/dev/null || die
|
||||
|
||||
# Disable things unused or splitted into separate ebuilds
|
||||
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk || die
|
||||
|
||||
# stupid new header references...
|
||||
for vboxheader in {product,revision}-generated.h ; do
|
||||
for mdir in vbox{guest,sf} ; do
|
||||
ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
|
||||
"${WORKDIR}/${mdir}/${vboxheader}"
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# build the user-space tools, warnings are harmless
|
||||
./configure --nofatal \
|
||||
--disable-xpcom \
|
||||
--disable-sdl-ttf \
|
||||
--disable-pulse \
|
||||
--disable-alsa \
|
||||
--build-headless || die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
source ./env.sh
|
||||
|
||||
for each in /src/VBox/{Runtime,Additions/common} \
|
||||
/src/VBox/Additions/linux/sharedfolders ; do
|
||||
cd "${S}"${each} || die
|
||||
MAKE="kmk" \
|
||||
emake TOOL_YASM_AS=yasm \
|
||||
KBUILD_PATH="${S}/kBuild" \
|
||||
KBUILD_VERBOSE=2
|
||||
done
|
||||
|
||||
if use X; then
|
||||
cd "${S}"/src/VBox/Additions/x11/VBoxClient || die
|
||||
MAKE="kmk" \
|
||||
emake TOOL_YASM_AS=yasm \
|
||||
KBUILD_PATH="${S}/kBuild"
|
||||
fi
|
||||
|
||||
# Now creating the kernel modules. We must do this _after_
|
||||
# we compiled the user-space tools as we need two of the
|
||||
# automatically generated header files. (>=3.2.0)
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
|
||||
cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
|
||||
|
||||
insinto /sbin
|
||||
newins mount.vboxsf mount.vboxsf
|
||||
fperms 4755 /sbin/mount.vboxsf
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
|
||||
|
||||
insinto /usr/sbin/
|
||||
newins VBoxService vboxguest-service
|
||||
fperms 0755 /usr/sbin/vboxguest-service
|
||||
|
||||
insinto /usr/bin
|
||||
doins VBoxControl
|
||||
fperms 0755 /usr/bin/VBoxControl
|
||||
|
||||
# VBoxClient user service and xrandr wrapper
|
||||
if use X ; then
|
||||
doins VBoxClient
|
||||
fperms 0755 /usr/bin/VBoxClient
|
||||
|
||||
pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
|
||||
|| die
|
||||
newins 98vboxadd-xclient VBoxClient-all
|
||||
fperms 0755 /usr/bin/VBoxClient-all
|
||||
popd &>/dev/null || die
|
||||
fi
|
||||
|
||||
# udev rule for vboxdrv
|
||||
local udev_rules_dir="/lib/udev/rules.d"
|
||||
dodir ${udev_rules_dir}
|
||||
echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
|
||||
>> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
|
||||
|| die
|
||||
echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
|
||||
>> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
|
||||
|| die
|
||||
|
||||
# VBoxClient autostart file
|
||||
insinto /etc/xdg/autostart
|
||||
doins "${FILESDIR}"/vboxclient.desktop
|
||||
|
||||
# sample xorg.conf
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins "${FILESDIR}"/xorg.conf.vbox
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
if ! use X ; then
|
||||
elog "use flag X is off, enable it to install the"
|
||||
elog "X Window System video driver."
|
||||
fi
|
||||
elog ""
|
||||
elog "Please add users to the \"vboxguest\" group so they can"
|
||||
elog "benefit from seamless mode, auto-resize and clipboard."
|
||||
elog ""
|
||||
elog "The vboxsf group has been added to make automount services work."
|
||||
elog "These services are part of the shared folders support."
|
||||
elog ""
|
||||
elog "Please add:"
|
||||
elog "/etc/init.d/${PN}"
|
||||
elog "to the default runlevel in order to start"
|
||||
elog "needed services."
|
||||
elog "To use the VirtualBox X driver, use the following"
|
||||
elog "file as your /etc/X11/xorg.conf:"
|
||||
elog " /usr/share/doc/${PF}/xorg.conf.vbox"
|
||||
elog ""
|
||||
elog "Also make sure you use the Mesa library for OpenGL:"
|
||||
elog " eselect opengl set xorg-x11"
|
||||
elog ""
|
||||
elog "An autostart .desktop file has been installed to start"
|
||||
elog "VBoxClient in desktop sessions."
|
||||
elog ""
|
||||
elog "You can mount shared folders with:"
|
||||
elog " mount -t vboxsf <shared_folder_name> <mount_point>"
|
||||
elog ""
|
||||
elog "Warning:"
|
||||
elog "this ebuild is only needed if you are running gentoo"
|
||||
elog "inside a VirtualBox Virtual Machine, you don't need"
|
||||
elog "it to run VirtualBox itself."
|
||||
elog ""
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.3.20.ebuild,v 1.1 2014/11/23 14:15:36 polynomial-c Exp $
|
||||
|
||||
# XXX: the tarball here is just the kernel modules split out of the binary
|
||||
# package that comes from virtualbox-bin
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils linux-mod user
|
||||
|
||||
MY_P=vbox-kernel-module-src-${PV}
|
||||
DESCRIPTION="Kernel Modules for Virtualbox"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="pax_kernel"
|
||||
|
||||
RDEPEND="!=app-emulation/virtualbox-9999"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
BUILD_TARGETS="all"
|
||||
BUILD_TARGET_ARCH="${ARCH}"
|
||||
MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
|
||||
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
|
||||
enewgroup vboxusers
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if kernel_is -ge 2 6 33 ; then
|
||||
# evil patch for new kernels - header moved
|
||||
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
|
||||
fi
|
||||
|
||||
if use pax_kernel && kernel_is -ge 3 0 0 ; then
|
||||
epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
insinto /usr/lib/modules-load.d/
|
||||
doins "${FILESDIR}"/virtualbox.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
elog "If you are using sys-apps/openrc, please add \"vboxdrv\", \"vboxnetflt\""
|
||||
elog "and \"vboxnetadp\" to:"
|
||||
elog " /etc/conf.d/modules"
|
||||
}
|
@ -0,0 +1,401 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.3.20.ebuild,v 1.1 2014/11/23 14:20:48 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 qt4-r2 toolchain-funcs udev
|
||||
|
||||
MY_PV="${PV/beta/BETA}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
MY_P=VirtualBox-${MY_PV}
|
||||
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-4.3.16-patches-01.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
|
||||
HOMEPAGE="http://www.virtualbox.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
|
||||
|
||||
RDEPEND="!app-emulation/virtualbox-bin
|
||||
~app-emulation/virtualbox-modules-${PV}
|
||||
dev-libs/libIDL
|
||||
>=dev-libs/libxslt-1.1.19
|
||||
net-misc/curl
|
||||
dev-libs/openssl
|
||||
dev-libs/libxml2
|
||||
media-libs/libpng
|
||||
media-libs/libvpx
|
||||
sys-libs/zlib
|
||||
>=virtual/udev-171
|
||||
!headless? (
|
||||
qt4? (
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtcore:4
|
||||
opengl? ( dev-qt/qtopengl:4 )
|
||||
x11-libs/libXinerama
|
||||
)
|
||||
opengl? ( virtual/opengl media-libs/freeglut )
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXext
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
media-libs/libsdl:0[X,video]
|
||||
)
|
||||
vnc? ( >=net-libs/libvncserver-0.9.9 )
|
||||
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/kbuild-0.1.9998_pre20131130
|
||||
>=dev-lang/yasm-0.6.2
|
||||
sys-devel/bin86
|
||||
sys-power/iasl
|
||||
pam? ( sys-libs/pam )
|
||||
sys-libs/libcap
|
||||
doc? (
|
||||
dev-texlive/texlive-basic
|
||||
dev-texlive/texlive-latex
|
||||
dev-texlive/texlive-latexrecommended
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
dev-texlive/texlive-fontsextra
|
||||
)
|
||||
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
|
||||
virtual/pkgconfig
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
!headless? ( x11-libs/libXinerama )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
vboxwebsrv? ( net-libs/gsoap[-gnutls] )
|
||||
${PYTHON_DEPS}"
|
||||
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
|
||||
extensions? ( =app-emulation/virtualbox-extpack-oracle-${PV}* )"
|
||||
|
||||
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
|
||||
usr/lib/virtualbox/VBoxSDL.so
|
||||
usr/lib/virtualbox/VBoxSharedFolders.so
|
||||
usr/lib/virtualbox/VBoxDD2.so
|
||||
usr/lib/virtualbox/VBoxOGLrenderspu.so
|
||||
usr/lib/virtualbox/VBoxPython.so
|
||||
usr/lib/virtualbox/VBoxDD.so
|
||||
usr/lib/virtualbox/VBoxDDU.so
|
||||
usr/lib/virtualbox/VBoxREM64.so
|
||||
usr/lib/virtualbox/VBoxSharedClipboard.so
|
||||
usr/lib/virtualbox/VBoxHeadless.so
|
||||
usr/lib/virtualbox/VBoxRT.so
|
||||
usr/lib/virtualbox/VBoxREM.so
|
||||
usr/lib/virtualbox/VBoxSettings.so
|
||||
usr/lib/virtualbox/VBoxKeyboard.so
|
||||
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
|
||||
usr/lib/virtualbox/VBoxVMM.so
|
||||
usr/lib/virtualbox/VirtualBox.so
|
||||
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
|
||||
usr/lib/virtualbox/components/VBoxC.so
|
||||
usr/lib/virtualbox/components/VBoxSVCM.so
|
||||
usr/lib/virtualbox/components/VBoxDDU.so
|
||||
usr/lib/virtualbox/components/VBoxRT.so
|
||||
usr/lib/virtualbox/components/VBoxREM.so
|
||||
usr/lib/virtualbox/components/VBoxVMM.so
|
||||
usr/lib/virtualbox/VBoxREM32.so
|
||||
usr/lib/virtualbox/VBoxPython2_4.so
|
||||
usr/lib/virtualbox/VBoxPython2_5.so
|
||||
usr/lib/virtualbox/VBoxPython2_6.so
|
||||
usr/lib/virtualbox/VBoxPython2_7.so
|
||||
usr/lib/virtualbox/VBoxXPCOMC.so
|
||||
usr/lib/virtualbox/VBoxOGLhostcrutil.so
|
||||
usr/lib/virtualbox/VBoxNetDHCP.so
|
||||
usr/lib/virtualbox/VBoxNetNAT.so"
|
||||
|
||||
REQUIRED_USE="
|
||||
java? ( sdk )
|
||||
python? (
|
||||
( sdk )
|
||||
)
|
||||
vboxwebsrv? ( java )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if ! use headless && ! use qt4 ; then
|
||||
einfo "No USE=\"qt4\" selected, this build will not include"
|
||||
einfo "any Qt frontend."
|
||||
elif use headless && use qt4 ; then
|
||||
einfo "You selected USE=\"headless qt4\", defaulting to"
|
||||
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
|
||||
fi
|
||||
|
||||
if ! use opengl ; then
|
||||
einfo "No USE=\"opengl\" selected, this build will lack"
|
||||
einfo "the OpenGL feature."
|
||||
fi
|
||||
if ! use python ; then
|
||||
einfo "You have disabled the \"python\" USE flag. This will only"
|
||||
einfo "disable the python bindings being installed."
|
||||
fi
|
||||
java-pkg-opt-2_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove shipped binaries (kBuild,yasm), see bug #232775
|
||||
rm -rf kBuild/bin tools
|
||||
|
||||
# Disable things unused or split into separate ebuilds
|
||||
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
|
||||
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
|
||||
|
||||
# Use PAM only when pam USE flag is enbaled (bug #376531)
|
||||
if ! use pam ; then
|
||||
elog "Disabling PAM removes the possibility to use the VRDP features."
|
||||
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
|
||||
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
|
||||
src/VBox/HostServices/Makefile.kmk || die
|
||||
fi
|
||||
|
||||
# add correct java path
|
||||
if use java ; then
|
||||
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
|
||||
-i "${S}"/Config.kmk || die
|
||||
java-pkg-opt-2_src_prepare
|
||||
fi
|
||||
|
||||
if ! gcc-specs-pie ; then
|
||||
EPATCH_EXCLUDE="050_${PN}-4.3.14-nopie.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
use alsa || myconf+=" --disable-alsa"
|
||||
use doc || myconf+=" --disable-docs"
|
||||
use java || myconf+=" --disable-java"
|
||||
use opengl || myconf+=" --disable-opengl"
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
use python || myconf+=" --disable-python"
|
||||
use vboxwebsrv && myconf+=" --enable-webservice"
|
||||
use vnc && myconf+=" --enable-vnc"
|
||||
if ! use headless ; then
|
||||
use qt4 || myconf+=" --disable-qt4"
|
||||
else
|
||||
myconf+=" --build-headless --disable-opengl"
|
||||
fi
|
||||
if use amd64 && ! has_multilib_profile ; then
|
||||
myconf+=" --disable-vmmraw"
|
||||
fi
|
||||
# not an autoconf script
|
||||
./configure \
|
||||
--with-gcc="$(tc-getCC)" \
|
||||
--with-g++="$(tc-getCXX)" \
|
||||
--disable-kmods \
|
||||
--disable-dbus \
|
||||
--disable-devmapper \
|
||||
${myconf} \
|
||||
|| die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
source ./env.sh
|
||||
|
||||
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
|
||||
# and strip all flags
|
||||
# strip-flags
|
||||
|
||||
MAKE="kmk" emake \
|
||||
VBOX_BUILD_PUBLISHER=_Gentoo \
|
||||
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
|
||||
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
|
||||
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
|
||||
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
|
||||
VBOX_GCC_OPT="${CXXFLAGS}" \
|
||||
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
|
||||
KBUILD_VERBOSE=2 \
|
||||
all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/out/linux.${ARCH}/release/bin || die
|
||||
|
||||
# Create configuration files
|
||||
insinto /etc/vbox
|
||||
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
|
||||
|
||||
# Set the right libdir
|
||||
sed -i \
|
||||
-e "s@MY_LIBDIR@$(get_libdir)@" \
|
||||
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
|
||||
|
||||
# Symlink binaries to the shipped wrapper
|
||||
exeinto /usr/$(get_libdir)/${PN}
|
||||
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox"
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
|
||||
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
|
||||
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
|
||||
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
|
||||
|
||||
# Install binaries and libraries
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
doins -r components
|
||||
|
||||
if use sdk ; then
|
||||
doins -r sdk
|
||||
fi
|
||||
|
||||
if use vboxwebsrv ; then
|
||||
doins vboxwebsrv
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
|
||||
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
|
||||
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
|
||||
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
|
||||
fi
|
||||
|
||||
local gcfiles="*gc"
|
||||
if use amd64 && ! has_multilib_profile ; then
|
||||
gcfiles=""
|
||||
fi
|
||||
|
||||
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,ExtPackHelperApp} *so *r0 ${gcfiles} ; do
|
||||
doins ${each}
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
|
||||
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
|
||||
done
|
||||
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetNAT
|
||||
|
||||
# VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
|
||||
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
|
||||
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxManage || die
|
||||
|
||||
if ! use headless ; then
|
||||
for each in VBox{SDL,Headless} ; do
|
||||
doins ${each}
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
|
||||
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
|
||||
done
|
||||
|
||||
if use opengl && use qt4 ; then
|
||||
doins VBoxTestOGL
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
|
||||
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
|
||||
fi
|
||||
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
|
||||
|
||||
if use qt4 ; then
|
||||
doins VirtualBox
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
|
||||
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox \
|
||||
|| die
|
||||
|
||||
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
|
||||
|
||||
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
|
||||
fi
|
||||
|
||||
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
|
||||
for size in 16 32 48 64 128 ; do
|
||||
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
|
||||
done
|
||||
newicon ${PN}-48px.png ${PN}.png
|
||||
popd &>/dev/null || die
|
||||
else
|
||||
doins VBoxHeadless
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
|
||||
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
|
||||
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless || die
|
||||
fi
|
||||
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
# Install EFI Firmware files (bug #320757)
|
||||
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
|
||||
for fwfile in VBoxEFI{32,64}.fd ; do
|
||||
doins ${fwfile}
|
||||
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile}
|
||||
done
|
||||
popd &>/dev/null || die
|
||||
|
||||
# New way of handling USB device nodes for VBox (bug #356215)
|
||||
local udevdir="$(get_udevdir)"
|
||||
insinto ${udevdir}
|
||||
doins VBoxCreateUSBNode.sh
|
||||
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
|
||||
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
|
||||
insinto ${udevdir}/rules.d
|
||||
doins "${FILESDIR}"/10-virtualbox.rules
|
||||
sed "s@%UDEVDIR%@${udevdir}@" \
|
||||
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
if ! use headless && use qt4 ; then
|
||||
doins -r nls
|
||||
fi
|
||||
|
||||
# VRDPAuth only works with this (bug #351949)
|
||||
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
|
||||
|
||||
# set an env-variable for 3rd party tools
|
||||
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
|
||||
doenvd "${T}/90virtualbox"
|
||||
|
||||
if use java ; then
|
||||
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
|
||||
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
|
||||
|
||||
if ! use headless && use qt4 ; then
|
||||
elog "To launch VirtualBox just type: \"VirtualBox\"."
|
||||
fi
|
||||
elog "You must be in the vboxusers group to use VirtualBox."
|
||||
elog ""
|
||||
elog "The latest user manual is available for download at:"
|
||||
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
|
||||
elog ""
|
||||
elog "For advanced networking setups you should emerge:"
|
||||
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
|
||||
elog ""
|
||||
elog "IMPORTANT!"
|
||||
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
|
||||
elog "\"env-update\" as root and logout and relogin as the user you wish"
|
||||
elog "to run ${PN} as."
|
||||
elog ""
|
||||
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
|
||||
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
|
||||
elog " app-emulation/virtualbox-extpack-oracle"
|
||||
elog "package."
|
||||
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
|
||||
elog ""
|
||||
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
|
||||
elog "or else USB in ${PN} won't work."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST vpcs-0.6-src.tbz 131820 SHA256 cc311b0dea9ea02ef95f26704d73e34d293caa503600a0acca202d577afd3ceb SHA512 a740f264551de9e8dd95de2fbba444d9525f63c4c5473aea6cf1016c99d7866f3d0623f9f934bda7a0b565c23179647734c400ce3bb685fdab8ec6c35f25d671 WHIRLPOOL a4396f11ed64583ee5d0c7a681fb8f05c792b27eaac057b3ad85d63173d7ccdb7cd679e4b0a1a0f2904d64c51d922f75ab08b638053a0364443f4a0661b80fda
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>idella4@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>aaron@flappyport.com</email>
|
||||
<name>Arron Bauman</name>
|
||||
<description>proxy maintainer</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vpcs/vpcs-0.6.ebuild,v 1.1 2014/11/23 09:33:46 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Simulate up to 9 PCs in place of VMware boxes in a Dynamips network"
|
||||
HOMEPAGE="http://vpcs.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.tbz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${S}/src/"
|
||||
|
||||
src_prepare() {
|
||||
# move Makefile in place
|
||||
cp Makefile.linux Makefile
|
||||
|
||||
# replace hardcoded CFLAGS with user set CFLAGS
|
||||
# append -fno-strict-aliasing to CFLAGS to suppress QA issues from upstream
|
||||
# add user $LDFLAGS in the front and remove -s that strips binary
|
||||
sed -e "s/-D\$(CPUTYPE)/${CFLAGS} -fno-strict-aliasing/" \
|
||||
-e "s/^LDFLAGS=/LDFLAGS=${LDFLAGS} /" \
|
||||
-e "s/-s //" \
|
||||
-i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#put binary in /usr/bin
|
||||
dobin vpcs
|
||||
|
||||
doman ../man/vpcs.1
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST manpages-de-0.12.tar.bz2 530398 SHA256 81ee3cb852ba3dfb9b16a926c1d24a0aafea699a42a02b3a0ac2386f971417ed SHA512 72b938e3f593c77fcfcc2cede7a638909778316c228d377ce20439d35bbd8364cf1a3491905ab6b75ac7e56681c83f0ef64832b8a492d4282331e0564cb563eb WHIRLPOOL 96b1529abc83c7dc3f5a8ff075bd63b26e2c40fa8a1a323cb5a9f46c4dee6d78ce7b2baa2d4ef8a1de50a83644e1e526f34d81dc22cfe581264edcb2715815c4
|
||||
DIST manpages-de-0.8.tar.bz2 475407 SHA256 c40468b87ac1029af0df8e37d36dff6da38e5d823db932c4cd774f1a1bb9f15e SHA512 526b8498e7825f14cf35bd2d3517ee19df0fd9b698582e0e99c6778d58b022e8f2dc1136c04597bf216b424e2f77c70eaad42dcb933450f75a3d595737e79868 WHIRLPOOL ff62cd7aa9c50ae2a8ef980e58531f7ff4c580c06e24a21262ffa6b57a403e41352ef5a6b235cecfb44da7b7c53f0acd2090c88c7e97c5aa5b948c1f37fa85e3
|
||||
DIST manpages-de-1.7.tar.xz 1300384 SHA256 7bb014f4ffdc7a303791bb0ee672d901348babcb4c23002cecd3fc145831728a SHA512 d70f25daf10e233358b705c06a7c9e123fffc492429b4b9e1717c5db3a47d92fefb5e628fc75056306bc8bf0da7146aabd2c80a77cb50a430d2e11d6ce9712e0 WHIRLPOOL d8198220f4998e2550166a4b79434c4c1031c1e320b4b858dbf1468c1b1f19aa1d6a02816acd470191546dd5b08b4d1fff4fe612652866db932ee5b4e3dae33a
|
||||
DIST manpages-de-1.8.tar.xz 1345324 SHA256 e9d82b7bf41accd492b66b7ef2cbaefb5ce30c5ab2a2ad9ae1833424a8b93d6f SHA512 284be71610ddc11f578179f809ecaf2d92eb77b4ba1281ce21f3486e312c2888fc2d830967589702f0df6cee28da6adb4737b416cf8214001ddd14de0292ecd3 WHIRLPOOL e5d2b4afc6cd1b9231f8d837d7507a494b152c30687540bc128994f56e70e29ce9c3918621fb4ed3e62a1be21cddf4a324dd0379160b631885cbce064e0201e3
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-de/man-pages-de-0.12.ebuild,v 1.5 2014/01/30 20:27:35 vapier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_P="${PN/-/}-${PV}"
|
||||
|
||||
DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
|
||||
HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
|
||||
SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="virtual/man"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake MANDIR="${ED}"/usr/share/man/de install
|
||||
dodoc CHANGES README
|
||||
|
||||
# Remove man pages provided by other packages
|
||||
# - shadow
|
||||
rm "${ED}"/usr/share/man/de/man1/groups.1*
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-de/man-pages-de-0.8.ebuild,v 1.12 2014/01/30 20:27:35 vapier Exp $
|
||||
|
||||
MY_PN=manpages-de
|
||||
|
||||
DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
|
||||
HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
|
||||
SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_PN}-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
RDEPEND="virtual/man"
|
||||
|
||||
S=${WORKDIR}/${MY_PN}-${PV}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake MANDIR="${D}"/usr/share/man/de install || die
|
||||
dodoc CHANGES README
|
||||
|
||||
# Remove man pages provided by other packages
|
||||
# - shadow
|
||||
rm "${D}"/usr/share/man/de/man1/{chsh,groups,login,passwd,newgrp,su}.1*
|
||||
# - man
|
||||
rm "${D}"/usr/share/man/de/man1/{apropos,man,whatis}.1*
|
||||
# - man-db
|
||||
rm "${D}"/usr/share/man/de/man1/{manpath,zsoelim}.1*
|
||||
rm "${D}"/usr/share/man/de/man5/manpath.5*
|
||||
rm "${D}"/usr/share/man/de/man8/{catman,mandb}.8*
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-de/man-pages-de-1.8.ebuild,v 1.1 2014/11/22 22:05:30 mrueg Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
MY_P="${PN/-/}-${PV}"
|
||||
|
||||
DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
|
||||
HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
|
||||
SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/man"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/po4a"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.3-bzip2.patch
|
||||
|
||||
# Use the same compression as every other manpage
|
||||
local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
|
||||
if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
|
||||
PORTAGE_COMPRESS_LOCAL="#"
|
||||
fi
|
||||
if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
|
||||
case ${PORTAGE_COMPRESS_LOCAL} in
|
||||
bzip2|gzip) local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
|
||||
po/man{1,2,3,4,5,6,7,8}/Makefile.in po/common.mk || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
emake mandir="${ED}"/usr/share/man install
|
||||
dodoc CHANGES README
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST evemu-1.2.0.tar.xz 498400 SHA256 bcc2a97a8e10048ff6b9122180d27ccada63d4f8ca89e61e962201a13551f475 SHA512 41bef7b2e0f0769e4affb5633f41e5352224f5acfb5a001a27548f2236a1dc23d444bbfc3e93ea8eb518a7f4e628185eef9ca5ecefa4d87b201224bfeee28044 WHIRLPOOL 31879f637959265f7c8067c8dedd2b57fa82aeaac94af53fd42270715579163165f7a3d4fb460f2d15080c42d467c4a872c1dbc964018b684f32db49613ef97b
|
||||
DIST evemu-2.0.0.tar.xz 508212 SHA256 2734e980c2bd7450270aec49a14e04d0042a6d39d3946c23ed99a3f86c9af061 SHA512 4853c36dda5e5e015561cffe0cbfbe8e17c10562c7842dd0d9a969cd1b26a1513be49f4310733be862c847828b6dae1cb77b0ae6c98463fcd7cf8619f6502053 WHIRLPOOL a222ebd92c146e3a787b6a51ea5edb2aa373ce2be1b2b82988786e575f744ac206febce0af5c0e2be3c2e43b1155f387e6db5f1dcde5e0aa739ca09ab0f8d111
|
||||
DIST evemu-2.1.0.tar.xz 502240 SHA256 0c87360882751356e9f977ebf7438c00fe97deb232ac725dd86e5ba78203ee97 SHA512 16ed613aa465d85f617a5dd6b958b0480c55477836effc86c293facdb500152d5b387a79f14802f2db6a3c721cc754cac2e8fc605f5e689962742b8fc361c81b WHIRLPOOL bc4e9631eebe6329d726adf853e8ef716246d70cf4f3ee50497bec6d654c8483c9291a40f532d488813d0c2568cd106e03a131cfa6aab86f037ad3ee1f0a8d18
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/evemu/evemu-2.1.0.ebuild,v 1.1 2014/11/24 00:31:09 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit autotools-utils python-single-r1
|
||||
|
||||
DESCRIPTION="Tools and bindings for kernel input event device emulation, data capture, and replay"
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Evemu/"
|
||||
SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-3 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="python static-libs"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )
|
||||
>=dev-libs/libevdev-1.2.99.902"
|
||||
DEPEND="app-arch/xz-utils
|
||||
${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.2.0-install-man.patch )
|
||||
|
||||
src_prepare() {
|
||||
if ! use python ; then
|
||||
sed '/SUBDIRS/s/python//' -i Makefile.am || die
|
||||
fi
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use python ; then
|
||||
if [[ ! ${EUID} -eq 0 ]] || has sandbox $FEATURES || has usersandbox $FEATURES ; then
|
||||
ewarn "Tests require userpriv, sandbox, and usersandbox to be disabled in FEATURES."
|
||||
else
|
||||
emake check
|
||||
fi
|
||||
fi
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3,7 +3,7 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([calcurse],
|
||||
- m4_esyscmd([build-aux/git-version-gen .version]),
|
||||
+ m4_esyscmd_s([cat .version]),
|
||||
[bugs@calcurse.org])
|
||||
AM_INIT_AUTOMAKE
|
||||
#m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
||||
@@ -51,6 +51,9 @@
|
||||
LIBS="$LIBS -l$available_ncurses"
|
||||
])
|
||||
|
||||
+AC_SEARCH_LIBS([cbreak], [tinfow tinfo],,
|
||||
+ AC_MSG_ERROR([Cannot find a library providing cbreak]))
|
||||
+
|
||||
AC_CHECK_HEADERS([pthread.h], [
|
||||
AC_CHECK_LIB(pthread, pthread_create, [
|
||||
LIBS="$LIBS -pthread"
|
@ -0,0 +1 @@
|
||||
DIST emmet-0.85.tar.bz2 31274 SHA256 738204ed94354b4c7ec9f72e2139459890d160c276c7782c158c9ddce6f8d499 SHA512 567f79c43ac0d5560dea2130e6fb6d32f25d35b20c3bbf8fc40b7cdc8c20e2d9352b9e1c03e57de2077ac192915ab174a6bee442d5311f01cc79c3fe6e10af56 WHIRLPOOL 835b4360f71e3824145c722f0f203f0941598ec9709d68cff67ddd253b82719d4e8bcaafe61efcd19d0ce21ac0e5e907083f2347ba534ed968580bcaf6cf774b
|
@ -0,0 +1,14 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/emmet/emmet-0.85.ebuild,v 1.1 2014/11/24 04:24:47 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: HTML and CSS hi-speed coding"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=2981 http://mattn.github.io/emmet-vim/ http://emmet.io/"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
VIM_PLUGIN_HELPFILES="${PN}.txt"
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>vim</herd>
|
||||
</pkgmetadata>
|
@ -1,3 +1 @@
|
||||
DIST zencoding-vim-0.58.tar.gz 21262 SHA256 28088b4158ee5f037fb4e63e62bba1206ae84b3b070cf4393a4cd893281fc1cb SHA512 ed6eea831660bb0fb4317f90ac0d908d4eb13f79208f502d8bb4d0084a10770387e7764f18f28f9a68b1ce36ac208563ef76b2c7dcd653a3a6475247008ffa8c WHIRLPOOL 2c0a4dcdf9d4707d910b03976b697835ead978f2ab6b55c5dc66e7024ea940134c7e24927fb15e5f0046824ccc3f8e280050d2233656d17769be3580cd9d2669
|
||||
DIST zencoding-vim-0.74.tar.bz2 24138 SHA256 aa9b8635e0667bf66d40c102281b4a3ece32afc66df91049adaedecd1324bcfc SHA512 386f86247b95d8944a28b879c7b7af3105347ac10637e20590edae23736907e0ff6d948a96da335ce3fd8a8daf6da2007db6983a9095968aa61dbb424da55304 WHIRLPOOL bab44e1ad17f732bfdfbde88dff21fa1d1c43f7e46431e04f02bc6f0a9043a1faab5b6220360a705375a82c806145ed39db2590720541ee9a0912f03f5e513bf
|
||||
DIST zencoding-vim-0.80.tar.bz2 24853 SHA256 5469a2c388ff399547556251cf10549512bf5b75d3bb1b6431f3e9273eccf5cf SHA512 1f1478f560f7bcd6b05fca810633d7e61fb5dc6eca144ef5bd94c6a2b5e67035eeb470632d215d192473a4e80525a429538478c1c90299aea88d42beb08dbf29 WHIRLPOOL 71f9e8d599264e6a9be4d959cb322a1793887cf1530811723f295e4356157ee37191bb325c347faa4e5b0fa189c29b586219162c5dcb84db5e0403a4e070a87f
|
||||
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/zencoding-vim/zencoding-vim-0.58.ebuild,v 1.3 2012/02/16 19:14:18 phajdan.jr Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
MY_PN="ZenCoding.vim"
|
||||
DESCRIPTION="vim plugin: HTML and CSS hi-speed coding"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=2981 http://mattn.github.com/zencoding-vim/"
|
||||
SRC_URI="https://github.com/vim-scripts/${MY_PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
VIM_PLUGIN_HELPFILES="${PN}.txt"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv *-${MY_PN}-* "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm README || die
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/zencoding-vim/zencoding-vim-0.74.ebuild,v 1.3 2012/12/04 11:23:42 ago Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: HTML and CSS hi-speed coding"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=2981 http://mattn.github.com/zencoding-vim/"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
VIM_PLUGIN_HELPFILES="zencoding.txt"
|
@ -1,7 +1,4 @@
|
||||
DIST autotools-java.tar 2770 SHA256 b74a069cf94d05cfbfe3eb65d42603d9a9d46a130044d76ffbf55ae822b62b3d SHA512 a193c3c3f8cc654967905c9ab559098425f1688a75c21a4207959fbe13572b4dba3e5c21e04913f20e5aa1b1c2fd2b13dcef91cc4f031b06884ac3130edc5757 WHIRLPOOL 3fbf5f0ab1a4bd231e69f924442f047c1e872f04c85afc46dca423c93641264347dc2d2c2a8b1cca740bf349d4db02594144c3797eb1c4bd649a35c169f7c86e
|
||||
DIST hyperdex-1.1.0.tar.gz 1243852 SHA256 e4e10bb85fb44e0bc479dfad6f6e7ee7aef00edc310b9069db3db44bb0b0e143 SHA512 54cb5ca1f14f4744885639c38ab1a84959100b80df50da1befa86db7fb1046e1045a84378b7dae253935f9c7bcfca6fa37ec1bfe699f611c55fe75b18f0fd37e WHIRLPOOL 5bf9b88f17b4e2a32aff6182a4734f9aeacd5e5ab9b83525edd917a399992612d27161bbcfdc4217cf84ae33530a743a5f75a10f788817a5336c9ab99161b345
|
||||
DIST hyperdex-1.2.0.tar.gz 1318103 SHA256 37a3accf8262fadfd2c357543ae5c39286f2071c60ee7ff7d29a826c305443ed SHA512 bd6904fa6a8a2d6c350b3276229e6e7b8bf02628a5719ac64b348f7e8561dab54814c1ebb2b490ac09528d7f2af2b585fdcb6f4d22a65446f91e6dcd92c3eadd WHIRLPOOL 588dd18308d0f1382283d761fc447a7c5e8939135a46e5e9d999368997f974c4dd63a7661e7554971843160270ef245975ea790060dc2a14cb2c210c1d084cd7
|
||||
DIST hyperdex-1.3.0.tar.gz 1328880 SHA256 baf994550565a5e3093944bb8a919582d9dc55c82e11a89eeb0322a904d58ae7 SHA512 96f679f97933004918784127b7d7dc9c7949bdab77486c71f4d1715a76a6e0d0d747b8f31b3984fe9bed4d5823e62d471319b30e2274ae9cef82ad8e07439073 WHIRLPOOL a1d24d563eb8f4b54e23a49c5d25996cf7bcdac43786a604ff88fbc97fa86f01c3a812c678fd3214818b56de90172d981db5fefaa93337d53ceb602c71666631
|
||||
DIST hyperdex-1.3.1.tar.gz 1328901 SHA256 6c664c4b606431562c3a767ffc3ab5d31feaec7bd8e3cdb691d3bf871bade53a SHA512 e296a7ffc1d5e668c5f6b6dc931148d3a7ae81df98782c7702b4759d36e9e31c7347a43d5f0aa4d5c564f4116bd5fa6e658724cf60838b318bf9658845b362a1 WHIRLPOOL b46f00ae30b3c521dad703f80e548e4357a6179d5672ab55aa608e52d2923c4b5bfd06c312f5d9a3ceace20c35d514656357793e7cc2736205bede9b6dcc9ffe
|
||||
DIST hyperdex-1.4.4.tar.gz 1358725 SHA256 ab0b8e4ef343eecb1616f7d25ae648cbd9927076e7f9659cc75f42b72b64648b SHA512 284b1c2f907dfba310ae72f3fd42ceb292348482b8ebb5f69af2662e4596f846f1cb83bb5bdf9c8aa330ca8e53d5d3da5df9708a11d4ab58e4741e767c012da1 WHIRLPOOL a4d55d746207cfaf3925f8e35ca52671ac47178c9312227e74776bc996747e409981565748c9e1dc7f4c54901660171dabb8885883d1f8145adc5fc980ceaabc
|
||||
DIST hyperdex-1.4.5.tar.gz 1359099 SHA256 b88ef1792778b3e4094563d046095ec82b99e13a4c5c77373025a8ae379e0322 SHA512 51dbfbc57aa8c4d112f7321e4971458d969dab3dbd9ead65cd00f320b70a5f3206a8905198b1685afdc18b6e4749e1cbd58184df837946c3db07f2bb507f3852 WHIRLPOOL 372c00c8d4a1d64b051f9787e364e57d9fcf2e955dbe8fae42c4d47e1352951bcaa1fdb609fcc2718761b70cb5ce267cb5fd01181c4083593e7a057ae7cb18bd
|
||||
DIST hyperdex-1.5.0.tar.gz 1415134 SHA256 47292b90a0e69a9323ff99067ee9798e309fe28b117fced54a35ff0f3ab24bdf SHA512 5f98b7bc92d1ef7a6bc614f420230a6a3837a93409475b8d90b1df5135c46aa01b26909044fe293c63fdd88e9a14af5cd598a2f0223991e51aea60c8afe1765e WHIRLPOOL fbee334a0d7cc678f1ae4de22898ff87bc6698137ebc7e999fff3501164c516a46c4f2206de08b3e47167168c1ccd2f109a0c827b660d9ea17f221375cd4865f
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/hyperdex/hyperdex-1.1.0.ebuild,v 1.1 2014/02/21 03:34:49 patrick Exp $
|
||||
EAPI=5
|
||||
|
||||
RESTRICT="test"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
inherit eutils python
|
||||
|
||||
DESCRIPTION="A searchable distributed Key-Value Store"
|
||||
|
||||
HOMEPAGE="http://hyperdex.org"
|
||||
SRC_URI="http://hyperdex.org/src/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="+python"
|
||||
# need to add ruby and java useflags too
|
||||
|
||||
DEPEND="dev-cpp/glog
|
||||
dev-cpp/sparsehash
|
||||
dev-libs/cityhash
|
||||
dev-libs/libpo6
|
||||
dev-libs/libe
|
||||
dev-libs/busybee
|
||||
dev-libs/popt
|
||||
dev-libs/replicant"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static \
|
||||
$(use_enable python python-bindings)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Failed to install"
|
||||
newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script"
|
||||
newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file"
|
||||
find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad!
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/hyperdex/hyperdex-1.3.0.ebuild,v 1.1 2014/05/22 08:35:49 patrick Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7)
|
||||
inherit eutils python-r1 autotools
|
||||
|
||||
DESCRIPTION="A searchable distributed Key-Value Store"
|
||||
|
||||
HOMEPAGE="http://hyperdex.org"
|
||||
SRC_URI="http://hyperdex.org/src/${P}.tar.gz
|
||||
http://dev.gentooexperimental.org/~patrick/autotools-java.tar"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="+python"
|
||||
# need to add ruby and java useflags too
|
||||
|
||||
DEPEND="dev-cpp/glog
|
||||
dev-cpp/sparsehash
|
||||
dev-libs/cityhash
|
||||
dev-libs/libpo6
|
||||
dev-libs/libe
|
||||
dev-libs/busybee
|
||||
dev-libs/popt
|
||||
dev-libs/replicant
|
||||
dev-libs/json-c"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
cp "${WORKDIR}/"*.m4 m4/
|
||||
sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!"
|
||||
eautoreconf
|
||||
}
|
||||
src_configure() {
|
||||
econf --disable-static \
|
||||
$(use_enable python python-bindings)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Failed to install"
|
||||
newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script"
|
||||
newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file"
|
||||
find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad!
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/hyperdex/hyperdex-1.3.1.ebuild,v 1.1 2014/07/11 02:56:11 patrick Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7)
|
||||
inherit eutils python-r1 autotools
|
||||
|
||||
DESCRIPTION="A searchable distributed Key-Value Store"
|
||||
|
||||
HOMEPAGE="http://hyperdex.org"
|
||||
SRC_URI="http://hyperdex.org/src/${P}.tar.gz
|
||||
http://dev.gentooexperimental.org/~patrick/autotools-java.tar"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="+python"
|
||||
# need to add ruby and java useflags too
|
||||
|
||||
DEPEND="dev-cpp/glog
|
||||
dev-cpp/sparsehash
|
||||
dev-libs/cityhash
|
||||
dev-libs/libpo6
|
||||
dev-libs/libe
|
||||
dev-libs/busybee
|
||||
dev-libs/popt
|
||||
dev-libs/replicant
|
||||
dev-libs/json-c"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
cp "${WORKDIR}/"*.m4 m4/
|
||||
sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!"
|
||||
eautoreconf
|
||||
}
|
||||
src_configure() {
|
||||
econf --disable-static \
|
||||
$(use_enable python python-bindings)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Failed to install"
|
||||
newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script"
|
||||
newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file"
|
||||
find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad!
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libdbi-drivers-0.8.3-1.tar.gz 1534420 SHA256 4ab9944398ce769c0deeb64d2f73555c67bc25ccd2ade1ccf552226c7b2acf72 SHA512 c2cb76234b9137cc4a05af42a69ea7d5b08586287378406cbd4d114598598057f29cccb368bfbe0f86e19846ceab88ed636cccff6555ef9f7eebbb98bbcd3824 WHIRLPOOL fc8df681ccdf6995727b0bf7aa315090dc4af2849c02e6b78913f6d5ecdc51c5e60b7eba3f515050a4ae93e74dfa7f1dcc1f7aca7fe3c12e3f02ecfd04184700
|
||||
DIST libdbi-drivers-0.9.0.tar.gz 1829864 SHA256 43d2eacd573a4faff296fa925dd97fbf2aedbf1ae35c6263478210c61004c854 SHA512 f4d3aaa71014697c53012a10bf9f0af398bcf5ee5872af165f8f43a682d2fb3045a9172ffea0e068dcbfcad52494878c037d8d90fadfaf176936e42f7f1e85c1 WHIRLPOOL 6ed745a19afe4b6b5d51f7730ca9698e645fac529051aeaae886938e063f8fcd3357c2f24913a5428db4847de1de38e931acc1e3e20aeed3e6d71b6877a104d6
|
||||
|
@ -1,15 +0,0 @@
|
||||
diff -Nuar libdbi-drivers-0.8.3-1.orig/configure.in libdbi-drivers-0.8.3-1/configure.in
|
||||
--- libdbi-drivers-0.8.3-1.orig/configure.in 2008-10-09 17:09:09.303141877 -0700
|
||||
+++ libdbi-drivers-0.8.3-1/configure.in 2008-10-09 17:10:48.100635797 -0700
|
||||
@@ -149,7 +149,8 @@
|
||||
-ac_docs="YES"
|
||||
+ac_docs="no"
|
||||
AC_ARG_ENABLE(docs,
|
||||
[ --disable-docs do not build and install the documentation.],
|
||||
- [ ac_docs="NO" ])
|
||||
+ [ ac_docs="$enableval" ],
|
||||
+ [ ac_docs="no" ])
|
||||
|
||||
-if test "$ac_docs" = "YES"; then
|
||||
+if test "$ac_docs" = "yes"; then
|
||||
dnl AC_PATH_PROGS(myjade, openjade jade)
|
@ -1,25 +0,0 @@
|
||||
diff -Nuar libdbi-drivers-0.8.3-1.orig/acinclude.m4 libdbi-drivers-0.8.3-1/acinclude.m4
|
||||
--- libdbi-drivers-0.8.3-1.orig/acinclude.m4 2007-12-30 11:05:40.000000000 +0000
|
||||
+++ libdbi-drivers-0.8.3-1/acinclude.m4 2009-10-26 06:50:49.823477194 +0000
|
||||
@@ -450,8 +450,8 @@
|
||||
firebird_incdirs="/opt/firebird/include /usr/include /usr/local/include /usr/include/firebird /usr/local/include/firebird /usr/local/firebird/include /opt/firebird/include"
|
||||
AC_FIND_FILE(ibase.h, $firebird_incdirs, ac_firebird_incdir)
|
||||
firebird_libdirs="/opt/firebird/lib /usr/lib /usr/local/lib /usr/lib/firebird /usr/local/lib/firebird /usr/local/firebird/lib /opt/firebird/lib"
|
||||
-dnl AC_FIND_FILE(libfbclient.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
- AC_FIND_FILE(libfbembed.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
+ AC_FIND_FILE(libfbclient.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
+dnl AC_FIND_FILE(libfbembed.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
if test "$ac_firebird_incdir" = "no"; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Invalid Firebird/Interbase directory - include files not found.])
|
||||
@@ -479,8 +479,8 @@
|
||||
[SCHAR_MSG="no"])
|
||||
AC_MSG_RESULT([$SCHAR_MSG])
|
||||
|
||||
-dnl FIREBIRD_LIBS="-lfbclient"
|
||||
- FIREBIRD_LIBS="-lfbembed"
|
||||
+ FIREBIRD_LIBS="-lfbclient"
|
||||
+dnl FIREBIRD_LIBS="-lfbembed"
|
||||
FIREBIRD_INCLUDE="-I$ac_firebird_incdir"
|
||||
FIREBIRD_LDFLAGS="-L$ac_firebird_libdir"
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -ur libdbi-drivers-0.8.3-1-old/configure.in libdbi-drivers-0.8.3-1/configure.in
|
||||
--- libdbi-drivers-0.8.3-1-old/configure.in 2013-05-14 02:28:23.315926087 +0000
|
||||
+++ libdbi-drivers-0.8.3-1/configure.in 2013-05-14 02:29:05.655762313 +0000
|
||||
@@ -3,7 +3,7 @@
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AM_INIT_AUTOMAKE(libdbi-drivers, 0.8.3-1)
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
|
||||
dnl library versioning currently unnecessary...
|
@ -1,12 +0,0 @@
|
||||
diff -urN libdbi-drivers-0.8.3-1.orig/drivers/oracle/dbd_oracle.c libdbi-drivers-0.8.3-1/drivers/oracle/dbd_oracle.c
|
||||
--- libdbi-drivers-0.8.3-1.orig/drivers/oracle/dbd_oracle.c 2009-01-26 16:31:42.000000000 +0300
|
||||
+++ libdbi-drivers-0.8.3-1/drivers/oracle/dbd_oracle.c 2009-01-26 16:32:38.000000000 +0300
|
||||
@@ -841,7 +841,7 @@
|
||||
{
|
||||
struct tm tmt;
|
||||
/* char stime[101], *cp = NULL; */
|
||||
-/* time_t loct = 0L; */
|
||||
+ time_t loct = 0L;
|
||||
|
||||
/* memset(stime, 0, sizeof(stime)); */
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue