parent
c6e123278f
commit
d9cc17cc53
@ -0,0 +1,21 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/par2cmdline/par2cmdline-0.6.9.ebuild,v 1.1 2014/09/05 00:18:35 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A PAR-2.0 file verification and repair tool"
|
||||
HOMEPAGE="http://github.com/BlackIkeEagle/par2cmdline"
|
||||
SRC_URI="http://github.com/BlackIkeEagle/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DOCS="AUTHORS ChangeLog README" # NEWS is empty, PORTING and ROADMAP are for building
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/gtypist/gtypist-2.9.5.ebuild,v 1.1 2014/09/04 21:14:10 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils elisp-common
|
||||
|
||||
DESCRIPTION="Universal typing tutor"
|
||||
HOMEPAGE="http://www.gnu.org/software/gtypist/"
|
||||
SRC_URI="mirror://gnu/gtypist/${P}.tar.xz
|
||||
http://colemak.com/pub/learn/colemak.typ"
|
||||
|
||||
LICENSE="GPL-2 public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
|
||||
IUSE="nls emacs xemacs"
|
||||
|
||||
DEPEND="
|
||||
>=sys-libs/ncurses-5.2
|
||||
emacs? ( virtual/emacs )
|
||||
xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.xz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local lispdir=""
|
||||
if use emacs; then
|
||||
lispdir="${SITELISP}/${PN}"
|
||||
einfo "Configuring to build with GNU Emacs support"
|
||||
elif use xemacs; then
|
||||
lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
|
||||
einfo "Configuring to build with XEmacs support"
|
||||
fi
|
||||
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
EMACS=$(usev emacs || usev xemacs || echo no) \
|
||||
--with-lispdir="${lispdir}"
|
||||
}
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /usr/share/gtypist
|
||||
doins "${DISTDIR}"/colemak.typ
|
||||
|
||||
if use emacs; then
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST nut-19.1.tar.gz 1399743 SHA256 643aaccaeee1122ca785f903bdf9bf19f5c7900941318a833561db204b495f7e SHA512 b89bc3c7919bfcccba6955993f3fbc74b7bf81b8daf314d15ef256581b16e296806b59bfb1e85ecdbdee25cda7b42c5dc14aadfb8b1cca4a54940ae1b62504fc WHIRLPOOL 1b87eb54b05f7df683535f5b1ef04d7ed63c0ceb7449174bd7ac5c0669068c7a8450b647281c193e0ca1c2614c7d9f7800b1c32fcab1348d52daa755cb77c090
|
||||
DIST nut-19.2.tar.gz 1401187 SHA256 9aa1489e6644137c7b9fe2e2520dd4409e2e3c09c0f2e505aba0ad640e7e892c SHA512 c48622c5e81b37c94e2f8c3bdee27324901988260dc05b528280a0c88133d3ce7813e3f1828b69e3c0dd2baa5faa206e2524a437c7c2a4080e864dd8433ce492 WHIRLPOOL 4ea0d11820b451f9d980556790a885756f24a4f7a55eb9121797f49ef1e2339abe5ec891bb152092bfe4cd49a75ddfd52dcd7b4a3f8645f72fcd02c84530d0cb
|
||||
DIST nut-20.0.tar.gz 1441075 SHA256 0fa186af6136aa48e3e851e2e921a5f70cbed7a0034983b80e2a7a314bf85c9b SHA512 9bb16ab174d05e863c45104188fb13175fb96aff987f0dc00f1dfbbfe2a0522d422e26a88f202f93e4a4436ea6e34246706219908441c963298f32d28242aeda WHIRLPOOL 9b32081e3ec27ad808feae518e65e783a505db2523b60556c3e7aa26e03998f7e791ff6add50be872ea168f8d49665bce63f3c7a10a12b088ea9f46a2c601730
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/nut/nut-20.0.ebuild,v 1.1 2014/09/04 23:09:51 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Record what you eat and analyze your nutrient levels"
|
||||
HOMEPAGE="http://nut.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
OPT="${CFLAGS}" FOODDIR=\\\"/usr/share/nut\\\" \
|
||||
nut
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/nut
|
||||
doins raw.data/*
|
||||
|
||||
dobin nut
|
||||
doman nut.1
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
Attempt to disable dynamic libs.
|
||||
|
||||
Crash in threaded runtime (and in -dynamic builds)
|
||||
looks very similar to sparc failures.
|
||||
diff --git a/mk/config.mk.in b/mk/config.mk.in
|
||||
index 7cc7aec..9f21256 100644
|
||||
--- a/mk/config.mk.in
|
||||
+++ b/mk/config.mk.in
|
||||
@@ -99,7 +99,8 @@ NoSharedLibsPlatformList = powerpc-unknown-linux \
|
||||
x86_64-unknown-mingw32 \
|
||||
i386-unknown-mingw32 \
|
||||
sparc-sun-solaris2 \
|
||||
- sparc-unknown-linux
|
||||
+ sparc-unknown-linux \
|
||||
+ ia64-unknown-linux
|
||||
|
||||
ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
|
||||
NoSharedLibsPlatformList += i386-unknown-solaris2
|
@ -0,0 +1,129 @@
|
||||
commit 4d4d07704ee78221607a18b8118294b0aea1bac4
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Tue Sep 2 00:06:56 2014 +0300
|
||||
|
||||
systools: fix gcc version detecton on non-english locale
|
||||
|
||||
Summary:
|
||||
ghc runs 'gcc -v' to check if we run under vanilla gcc
|
||||
or disaguised clang by checking for string
|
||||
|
||||
"gcc version <something>"
|
||||
|
||||
But this check does not always work as gcc has that string
|
||||
localized via gettext mechanism:
|
||||
|
||||
(some gcc's locale strings)
|
||||
be.po-msgstr "версія gcc %s\n"
|
||||
da.po-msgstr "GCC version %s\n"
|
||||
de.po-msgstr "gcc-Version %s %s\n"
|
||||
el.po-msgstr "έκδοση gcc %s\n"
|
||||
...
|
||||
|
||||
To ping gcc to English locale we now override environment
|
||||
variable with 'LANGUAGE=en' value.
|
||||
|
||||
Fixes Issue #8825
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
Test Plan: validate
|
||||
|
||||
Reviewers: austin
|
||||
|
||||
Reviewed By: austin
|
||||
|
||||
Subscribers: simonmar, ezyang, carter
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D185
|
||||
|
||||
GHC Trac Issues: #8825
|
||||
|
||||
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
|
||||
index 72fa19b..67926f5 100644
|
||||
--- a/compiler/main/SysTools.lhs
|
||||
+++ b/compiler/main/SysTools.lhs
|
||||
@@ -492,6 +492,51 @@ readCreateProcess proc = do
|
||||
|
||||
return (ex, output)
|
||||
|
||||
+readProcessEnvWithExitCode
|
||||
+ :: String -- ^ program path
|
||||
+ -> [String] -- ^ program args
|
||||
+ -> [(String, String)] -- ^ environment to override
|
||||
+ -> IO (ExitCode, String, String) -- ^ (exit_code, stdout, stderr)
|
||||
+readProcessEnvWithExitCode prog args env_update = do
|
||||
+ current_env <- getEnvironment
|
||||
+ let new_env = env_update ++ [ (k, v)
|
||||
+ | let overriden_keys = map fst env_update
|
||||
+ , (k, v) <- current_env
|
||||
+ , k `notElem` overriden_keys
|
||||
+ ]
|
||||
+ p = proc prog args
|
||||
+
|
||||
+ (_stdin, Just stdoh, Just stdeh, pid) <-
|
||||
+ createProcess p{ std_out = CreatePipe
|
||||
+ , std_err = CreatePipe
|
||||
+ , env = Just new_env
|
||||
+ }
|
||||
+
|
||||
+ outMVar <- newEmptyMVar
|
||||
+ errMVar <- newEmptyMVar
|
||||
+
|
||||
+ _ <- forkIO $ do
|
||||
+ stdo <- hGetContents stdoh
|
||||
+ _ <- evaluate (length stdo)
|
||||
+ putMVar outMVar stdo
|
||||
+
|
||||
+ _ <- forkIO $ do
|
||||
+ stde <- hGetContents stdeh
|
||||
+ _ <- evaluate (length stde)
|
||||
+ putMVar errMVar stde
|
||||
+
|
||||
+ out <- takeMVar outMVar
|
||||
+ hClose stdoh
|
||||
+ err <- takeMVar errMVar
|
||||
+ hClose stdeh
|
||||
+
|
||||
+ ex <- waitForProcess pid
|
||||
+
|
||||
+ return (ex, out, err)
|
||||
+
|
||||
+-- Don't let gcc localize version info string, #8825
|
||||
+en_locale_env :: [(String, String)]
|
||||
+en_locale_env = [("LANGUAGE", "en")]
|
||||
|
||||
-- If the -B<dir> option is set, add <dir> to PATH. This works around
|
||||
-- a bug in gcc on Windows Vista where it can't find its auxiliary
|
||||
@@ -746,8 +791,9 @@ getLinkerInfo' dflags = do
|
||||
_ -> do
|
||||
-- In practice, we use the compiler as the linker here. Pass
|
||||
-- -Wl,--version to get linker version info.
|
||||
- (exitc, stdo, stde) <- readProcessWithExitCode pgm
|
||||
- ["-Wl,--version"] ""
|
||||
+ (exitc, stdo, stde) <- readProcessEnvWithExitCode pgm
|
||||
+ ["-Wl,--version"]
|
||||
+ en_locale_env
|
||||
-- Split the output by lines to make certain kinds
|
||||
-- of processing easier. In particular, 'clang' and 'gcc'
|
||||
-- have slightly different outputs for '-Wl,--version', but
|
||||
@@ -802,7 +848,8 @@ getCompilerInfo' dflags = do
|
||||
|
||||
-- Process the executable call
|
||||
info <- catchIO (do
|
||||
- (exitc, stdo, stde) <- readProcessWithExitCode pgm ["-v"] ""
|
||||
+ (exitc, stdo, stde) <-
|
||||
+ readProcessEnvWithExitCode pgm ["-v"] en_locale_env
|
||||
-- Split the output by lines to make certain kinds
|
||||
-- of processing easier.
|
||||
parseCompilerInfo (lines stdo) (lines stde) exitc
|
||||
@@ -952,7 +999,8 @@ readElfSection _dflags section exe = do
|
||||
prog = "readelf"
|
||||
args = [Option "-p", Option section, FileOption "" exe]
|
||||
--
|
||||
- r <- readProcessWithExitCode prog (filter notNull (map showOpt args)) ""
|
||||
+ r <- readProcessEnvWithExitCode prog (filter notNull (map showOpt args))
|
||||
+ en_locale_env
|
||||
case r of
|
||||
(ExitSuccess, out, _err) -> return (doFilter (lines out))
|
||||
_ -> return Nothing
|
@ -0,0 +1,38 @@
|
||||
commit 104a66a461f4f89b8e5ad9c829923bb7ca8ceddb
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Sat Aug 23 13:11:23 2014 +0300
|
||||
|
||||
rts/Linker.c: declare 'deRefStablePtr' as an exported 'rts' symbol
|
||||
|
||||
$ inplace/bin/ghc-stage2 -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -optc-fno-builtin -fno-ghci-history \
|
||||
testsuite/tests/ffi/should_run/T4038.hs --interactive -v0 -ignore-dot-ghci +RTS -I0.1 -RTS
|
||||
|
||||
*Main> main
|
||||
<interactive>: /tmp/ghc16668_0/ghc16668_5.o: unknown symbol `deRefStablePtr'
|
||||
|
||||
The reference to 'deRefStablePtr' is generated by 'compiler/deSugar/DsForeign.lhs':
|
||||
the_cfun
|
||||
= case maybe_target of
|
||||
Nothing -> text "(StgClosure*)deRefStablePtr(the_stableptr)"
|
||||
Just hs_fn -> char '&' <> ppr hs_fn <> text "_closure"
|
||||
|
||||
Patch fixes all broken tests using 'import wrapper':
|
||||
TEST="ffi013 ffi010 ffi011 ffi005 ffi020 ffi006 ffi019 fed001 T1679 T4038"
|
||||
|
||||
Tests manifested as broken only in DYNAMIC_GHC_PROGRAMS=NO builds,
|
||||
where GHCi's custom linker is used instead of system's linker.
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
diff --git a/rts/Linker.c b/rts/Linker.c
|
||||
index e97580d..b24be58 100644
|
||||
--- a/rts/Linker.c
|
||||
+++ b/rts/Linker.c
|
||||
@@ -1092,6 +1092,7 @@ typedef struct _RtsSymbolVal {
|
||||
SymI_HasProto(__word_encodeFloat) \
|
||||
SymI_HasProto(stg_atomicallyzh) \
|
||||
SymI_HasProto(barf) \
|
||||
+ SymI_HasProto(deRefStablePtr) \
|
||||
SymI_HasProto(debugBelch) \
|
||||
SymI_HasProto(errorBelch) \
|
||||
SymI_HasProto(sysErrorBelch) \
|
@ -0,0 +1,69 @@
|
||||
commit e2a8801b9779949010f30db6f6ef66f3c3a70776
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Thu Sep 4 17:50:45 2014 +0300
|
||||
|
||||
pprC: declare extern cmm primitives as functions, not data
|
||||
|
||||
Summary:
|
||||
The commit fixes incorrect code generation of
|
||||
integer-gmp package on ia64 due to C prototype mismatch.
|
||||
Before patch prototype was
|
||||
StgWord poizh[];
|
||||
After patch it became
|
||||
StgFunPtr poizh();
|
||||
|
||||
Long story:
|
||||
|
||||
Consider the following simple example:
|
||||
|
||||
{-# LANGUAGE MagicHash, GHCForeignImportPrim, UnliftedFFITypes #-}
|
||||
module M where
|
||||
import GHC.Prim -- Int#
|
||||
foreign import prim "poizh" poi# :: Int# -> Int#
|
||||
|
||||
Before the patch Unregisterised build generated the
|
||||
following 'poizh' reference:
|
||||
EI_(poizh); /* StgWord poizh[]; */
|
||||
FN_(M_poizh_entry) {
|
||||
// ...
|
||||
JMP_((W_)&poizh);
|
||||
}
|
||||
|
||||
After the patch it looks this way:
|
||||
EF_(poizh); /* StgFunPtr poizh(); */
|
||||
FN_(M_poizh_entry) {
|
||||
// ...
|
||||
JMP_((W_)&poizh);
|
||||
}
|
||||
|
||||
On ia64 it leads to different relocation types being generated:
|
||||
incorrect one:
|
||||
addl r14 = @ltoffx(poizh#)
|
||||
ld8.mov r14 = [r14], poizh#
|
||||
correct one:
|
||||
addl r14 = @ltoff(@fptr(poizh#)), gp
|
||||
ld8 r14 = [r14]
|
||||
|
||||
'@fptr(poizh#)' basically instructs assembler to creates
|
||||
another obect consisting of real address to 'poizh' instructions
|
||||
and module address. That '@fptr' object is used as a function "address".
|
||||
This object is different for every module referencing 'poizh' symbol.
|
||||
|
||||
All indirect function calls expect '@fptr' object. That way
|
||||
call site can read real destination address and set destination
|
||||
module address in 'gp' register.
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
|
||||
index 02ad026..0f2c0ae 100644
|
||||
--- a/compiler/cmm/CLabel.hs
|
||||
+++ b/compiler/cmm/CLabel.hs
|
||||
@@ -813,6 +813,7 @@ labelType (CmmLabel _ _ CmmClosure) = GcPtrLabel
|
||||
labelType (CmmLabel _ _ CmmCode) = CodeLabel
|
||||
labelType (CmmLabel _ _ CmmInfo) = DataLabel
|
||||
labelType (CmmLabel _ _ CmmEntry) = CodeLabel
|
||||
+labelType (CmmLabel _ _ CmmPrimCall) = CodeLabel
|
||||
labelType (CmmLabel _ _ CmmRetInfo) = DataLabel
|
||||
labelType (CmmLabel _ _ CmmRet) = CodeLabel
|
||||
labelType (RtsLabel (RtsSelectorInfoTable _ _)) = DataLabel
|
@ -0,0 +1,35 @@
|
||||
commit 326046739801a380c5457ef4c87bce8fb95497ba
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Sun Aug 10 22:12:28 2014 +0300
|
||||
|
||||
systools info: fix warning about C compiler (message said about linker)
|
||||
|
||||
Summary: Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
Test Plan: build-tested
|
||||
|
||||
Reviewers: austin
|
||||
|
||||
Reviewed By: austin
|
||||
|
||||
Subscribers: phaskell, simonmar, relrod, ezyang, carter
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D132
|
||||
|
||||
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
|
||||
index 1c1c52c..72fa19b 100644
|
||||
--- a/compiler/main/SysTools.lhs
|
||||
+++ b/compiler/main/SysTools.lhs
|
||||
@@ -809,10 +809,10 @@ getCompilerInfo' dflags = do
|
||||
)
|
||||
(\err -> do
|
||||
debugTraceMsg dflags 2
|
||||
- (text "Error (figuring out compiler information):" <+>
|
||||
+ (text "Error (figuring out C compiler information):" <+>
|
||||
text (show err))
|
||||
errorMsg dflags $ hang (text "Warning:") 9 $
|
||||
- text "Couldn't figure out linker information!" $$
|
||||
+ text "Couldn't figure out C compiler information!" $$
|
||||
text "Make sure you're using GNU gcc, or clang"
|
||||
return UnknownCC)
|
||||
return info
|
@ -0,0 +1,107 @@
|
||||
commit a93ab43ab5f40cadbedea2f6342b93c245e91434
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Wed Aug 27 22:19:52 2014 +0300
|
||||
|
||||
driver: pass '-fPIC' option to assembler as well
|
||||
|
||||
Summary:
|
||||
Before the patch '-fPIC' was passed only to C compiler,
|
||||
but not to assembler itself.
|
||||
|
||||
It led to runtime crash in GHC_DYNAMIC_PROGRAMS=YES mode
|
||||
on sparc32.
|
||||
|
||||
Technical details are in 'Note [-fPIC for assembler]'.
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
Test Plan: validate on sparc
|
||||
|
||||
Reviewers: simonmar, austin, kgardas
|
||||
|
||||
Reviewed By: austin
|
||||
|
||||
Subscribers: simonmar, ezyang, carter
|
||||
|
||||
Differential Revision: https://phabricator.haskell.org/D177
|
||||
|
||||
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
|
||||
index 183f435..5a18e6e 100644
|
||||
--- a/compiler/main/DriverPipeline.hs
|
||||
+++ b/compiler/main/DriverPipeline.hs
|
||||
@@ -1199,6 +1199,7 @@ runPhase (RealPhase (As with_cpp)) input_fn dflags
|
||||
|
||||
as_prog <- whichAsProg
|
||||
let cmdline_include_paths = includePaths dflags
|
||||
+ let pic_c_flags = picCCOpts dflags
|
||||
|
||||
next_phase <- maybeMergeStub
|
||||
output_fn <- phaseOutputFilename next_phase
|
||||
@@ -1212,6 +1213,9 @@ runPhase (RealPhase (As with_cpp)) input_fn dflags
|
||||
= liftIO $ as_prog dflags
|
||||
([ SysTools.Option ("-I" ++ p) | p <- cmdline_include_paths ]
|
||||
|
||||
+ -- See Note [-fPIC for assembler]
|
||||
+ ++ map SysTools.Option pic_c_flags
|
||||
+
|
||||
-- We only support SparcV9 and better because V8 lacks an atomic CAS
|
||||
-- instruction so we have to make sure that the assembler accepts the
|
||||
-- instruction set. Note that the user can still override this
|
||||
@@ -1253,6 +1257,8 @@ runPhase (RealPhase SplitAs) _input_fn dflags
|
||||
osuf = objectSuf dflags
|
||||
split_odir = base_o ++ "_" ++ osuf ++ "_split"
|
||||
|
||||
+ let pic_c_flags = picCCOpts dflags
|
||||
+
|
||||
-- this also creates the hierarchy
|
||||
liftIO $ createDirectoryIfMissing True split_odir
|
||||
|
||||
@@ -1286,6 +1292,9 @@ runPhase (RealPhase SplitAs) _input_fn dflags
|
||||
then [SysTools.Option "-mcpu=v9"]
|
||||
else []) ++
|
||||
|
||||
+ -- See Note [-fPIC for assembler]
|
||||
+ map SysTools.Option pic_c_flags ++
|
||||
+
|
||||
[ SysTools.Option "-c"
|
||||
, SysTools.Option "-o"
|
||||
, SysTools.FileOption "" (split_obj n)
|
||||
@@ -2203,3 +2212,38 @@ haveRtsOptsFlags dflags =
|
||||
isJust (rtsOpts dflags) || case rtsOptsEnabled dflags of
|
||||
RtsOptsSafeOnly -> False
|
||||
_ -> True
|
||||
+
|
||||
+-- Note [-fPIC for assembler]
|
||||
+-- When compiling .c source file GHC's driver pipeline basically
|
||||
+-- does the following two things:
|
||||
+-- 1. ${CC} -S 'PIC_CFLAGS' source.c
|
||||
+-- 2. ${CC} -x assembler -c 'PIC_CFLAGS' source.S
|
||||
+--
|
||||
+-- Why do we need to pass 'PIC_CFLAGS' both to C compiler and assembler?
|
||||
+-- Because on some architectures (at least sparc32) assembler also choses
|
||||
+-- relocation type!
|
||||
+-- Consider the following C module:
|
||||
+--
|
||||
+-- /* pic-sample.c */
|
||||
+-- int v;
|
||||
+-- void set_v (int n) { v = n; }
|
||||
+-- int get_v (void) { return v; }
|
||||
+--
|
||||
+-- $ gcc -S -fPIC pic-sample.c
|
||||
+-- $ gcc -c pic-sample.s -o pic-sample.no-pic.o # incorrect binary
|
||||
+-- $ gcc -c -fPIC pic-sample.s -o pic-sample.pic.o # correct binary
|
||||
+--
|
||||
+-- $ objdump -r -d pic-sample.pic.o > pic-sample.pic.o.od
|
||||
+-- $ objdump -r -d pic-sample.no-pic.o > pic-sample.no-pic.o.od
|
||||
+-- $ diff -u pic-sample.pic.o.od pic-sample.no-pic.o.od
|
||||
+--
|
||||
+-- Most of architectures won't show any difference in this test, but on sparc32
|
||||
+-- the following assembly snippet:
|
||||
+--
|
||||
+-- sethi %hi(_GLOBAL_OFFSET_TABLE_-8), %l7
|
||||
+--
|
||||
+-- generates two kinds or relocations, only 'R_SPARC_PC22' is correct:
|
||||
+--
|
||||
+-- 3c: 2f 00 00 00 sethi %hi(0), %l7
|
||||
+-- - 3c: R_SPARC_PC22 _GLOBAL_OFFSET_TABLE_-0x8
|
||||
+-- + 3c: R_SPARC_HI22 _GLOBAL_OFFSET_TABLE_-0x8
|
@ -0,0 +1,31 @@
|
||||
commit 78863edbb0751f5c9694ea10c6132a87cfd0ee10
|
||||
Author: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
Date: Wed Aug 27 22:20:33 2014 +0300
|
||||
|
||||
Revert "disable shared libs on sparc (linux/solaris) (fixes #8857)"
|
||||
|
||||
This reverts commit 623883f1ed0ee11cc925c4590fb09565403fd231.
|
||||
|
||||
The commit a93ab43ab5f40cadbedea2f6342b93c245e91434
|
||||
driver: pass '-fPIC' option to assembler as well
|
||||
fixes shared libraries on sparc at least on linux.
|
||||
|
||||
Properly fixes Issue #8857
|
||||
|
||||
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
||||
|
||||
diff --git a/mk/config.mk.in b/mk/config.mk.in
|
||||
index c210cd3..392237f 100644
|
||||
--- a/mk/config.mk.in
|
||||
+++ b/mk/config.mk.in
|
||||
@@ -97,9 +97,7 @@ endif
|
||||
# Some platforms don't support shared libraries
|
||||
NoSharedLibsPlatformList = powerpc-unknown-linux \
|
||||
x86_64-unknown-mingw32 \
|
||||
- i386-unknown-mingw32 \
|
||||
- sparc-sun-solaris2 \
|
||||
- sparc-unknown-linux
|
||||
+ i386-unknown-mingw32
|
||||
|
||||
ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
|
||||
NoSharedLibsPlatformList += i386-unknown-solaris2
|
@ -1,3 +1,4 @@
|
||||
DIST dnspython-1.10.0.tar.gz 124416 SHA256 4dc21450ec6ac94dd105b4e5f39a75b404ad45a30869ff73acb6fd4d9974f857 SHA512 17c525f4e31e6759bb14ce3f5a5cba57e075222e291e67fc946d6a80b6ba1a01e72978f70f39d93b13fea83c99658a8bdb5e63c291eae6ff0b64b2b65f7060da WHIRLPOOL 82af503fd716cb53fce8d6b7a3ec641df59f915f450472f5560a26aa7359e9fcb17e3887f9672f84431b679d552d7df9dab4f41224b0d4d40a5f3daaf6902deb
|
||||
DIST dnspython-1.11.1.tar.gz 129573 SHA256 c0c6fcf3ff52939e7eadd931282d083271f65cf0a174555a703563a400289768 SHA512 03b2d35ae638a05d1af5458e88ab3450c1bf835a4e704b630474f32b8f93844b625ab2fc0000fdf2490bc90e3ec01f56175be130b5de996546c8bcebe57dfc05 WHIRLPOOL d2ad625278ed519c98d2c5612d1384ac06e65a9e9ab01c646e41a8377306a97cacd88c5e090f14a41f161c6fe3e52222314e8bed638316c07f80d5b035062d1e
|
||||
DIST dnspython-1.12.0.tar.gz 135164 SHA256 03fb82af866001c4afa58c48027bcc4b80bbf0a7f27e1d861cf06393eea4724f SHA512 583d069ed7ee9b20f16a964023fa0300f15032c27de6d084205f73394f19a2d5bb1641ef95b08a8ddf1f622eeb5fa8cbfa62b8a2ee478a49b0dff0995e4ae42e WHIRLPOOL abf515aad901b0c752a0f133c293654f60750522cee69985126547602f321f6577e135077cbfa330a30fbc838b125af30b75cbb4f8fdd60d1444b0bd2446bb39
|
||||
DIST dnspython-1.9.4.tar.gz 120126 SHA256 ab23f93b8ea33c7b2780d6093344a13c95a371e1d2c22f74ba5d076cc15d1918 SHA512 60b97e612eb567afcf80e7d6995bf28481908f92e53919f77ea56475783eef49997690b4801d8e67a197bf3dcb4c38239db1403640aec7c2a4551e4325b345d0 WHIRLPOOL cfd3c2f2fcd936704d9a6ba5807ee1c7ff47de1c8883e78e6ba4bd294d308e8ea30e5484c43e177b0172c1f59d87e9174891ab62a2cbdc74510a56ecbb505a17
|
||||
|
@ -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/dev-python/dnspython/dnspython-1.12.0.ebuild,v 1.1 2014/09/04 15:29:11 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="DNS toolkit for Python"
|
||||
HOMEPAGE="http://www.dnspython.org/ http://pypi.python.org/pypi/dnspython"
|
||||
SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
|
||||
IUSE="examples test"
|
||||
|
||||
DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# For tests
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_test() {
|
||||
pushd "${BUILD_DIR}"/../tests &> /dev/null
|
||||
local test
|
||||
for test in *.py; do
|
||||
if ! "${PYTHON}" ${test}; then
|
||||
die "test $test failed under ${EPYTHON}"
|
||||
else
|
||||
einfo "test $test"
|
||||
fi
|
||||
done
|
||||
einfo "Testsuite passed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST netifaces-0.10.4.tar.gz 22969 SHA256 9656a169cb83da34d732b0eb72b39373d48774aee009a3d1272b7ea2ce109cde SHA512 1b9b92b69e01e4dd9f9304d3812d78d58ec195a657cb47b2e629ccb1311de4a8cd9716825d7b94d4791f7c479c289638780f6f9afa8a6465fb555130da622b24 WHIRLPOOL 44cb33b6ca0c6cda059bf7e88ca5b4904d1e2d5bb7201f23d8e5b9c3bd337acc99dc47dec76016b6ceee7c5d8d72af03af96afb709ff9368a8dfff8683d4b7e2
|
||||
DIST netifaces-0.8.tar.gz 15484 SHA256 53a711038db3d6e5cf7129d6f751185fd052f830f12f271fbfe17bd2671ab1ec SHA512 b3735c4f83d4ed1d52f59937187659f148205a721fd05ce5a10e9ec89ea3519971001b2985e24bb30fb112ee741310babd847f84d4c3fbb34989edc6a743f551 WHIRLPOOL 4f638d769a38a474f0a27642544e1b6e932643f224133024cbfdb44e9637700afc10675fccd61e52e5f6e8a121b25173895d9f173b428aefceded22a42af7ab6
|
||||
|
@ -0,0 +1,15 @@
|
||||
--- netifaces-0.10.4/setup.py
|
||||
+++ netifaces-0.10.4/setup.py
|
||||
@@ -18,12 +18,6 @@
|
||||
|
||||
__version__ = "0.10.4"
|
||||
|
||||
-# Disable hard links, otherwise building distributions fails on OS X
|
||||
-try:
|
||||
- del os.link
|
||||
-except:
|
||||
- pass
|
||||
-
|
||||
# On Windows, we need ws2_32 and iphlpapi
|
||||
if getattr(sys, 'getwindowsversion', None):
|
||||
libraries = ['ws2_32', 'iphlpapi']
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/netifaces/netifaces-0.10.4.ebuild,v 1.1 2014/09/04 21:31:09 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Portable network interface information"
|
||||
HOMEPAGE="http://alastairs-place.net/netifaces/ https://pypi.python.org/pypi/netifaces/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-remove-osx-fix.patch )
|
@ -1 +1 @@
|
||||
DIST spacetripperdemo.sh 5179095 SHA256 0045e78c96f124cad6c04c6d69fef12db4b3cfe7e53ca91bfad84ce797144f21
|
||||
DIST spacetripperdemo.sh 5179095 SHA256 0045e78c96f124cad6c04c6d69fef12db4b3cfe7e53ca91bfad84ce797144f21 SHA512 43c0aac805671716816dfba58fe1ccad333886a1a20a3dfdaba7b78512dbe2ca6fbe6c09782e14f81d475c9c9bccb4043bac4c8bd756800fe43596dbee5018a0 WHIRLPOOL ba1bf7c58abe7b26c613ed10cc678dc61e1f1e5899ca44c526a0bdfb050bc7796011a9d2635f2977de841f9ff356cd977b6ebc3ae89f52c88d03d28021fb5123
|
||||
|
@ -1,415 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.0.ebuild,v 1.1 2014/08/01 16:34:13 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
WANT_AUTOCONF="2.1"
|
||||
MOZ_ESR=""
|
||||
MOZ_LIGHTNING_VER="3.3"
|
||||
MOZ_LIGHTNING_GDATA_VER="2.6.3"
|
||||
|
||||
# This list can be updated using scripts/get_langs.sh from the mozilla overlay
|
||||
MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR
|
||||
es-ES et eu fi fr fy-NL ga-IE gd gl he hr hu hy-AM id is it ja ko lt nb-NO
|
||||
nl nn-NO pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi
|
||||
zh-CN zh-TW )
|
||||
|
||||
# Convert the ebuild version to th firefox-24.0-patches-0.4.tar.xze upstream mozilla version, used by mozlinguas
|
||||
MOZ_PV="${PV/_beta/b}"
|
||||
# ESR releases have slightly version numbers
|
||||
if [[ ${MOZ_ESR} == 1 ]]; then
|
||||
MOZ_PV="${MOZ_PV}esr"
|
||||
fi
|
||||
MOZ_P="${PN}-${MOZ_PV}"
|
||||
|
||||
# Enigmail version
|
||||
EMVER="1.7"
|
||||
# Upstream ftp release URI that's used by mozlinguas.eclass
|
||||
# We don't use the http mirror because it deletes old tarballs.
|
||||
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
|
||||
MOZ_HTTP_URI="http://ftp.mozilla.org/pub/${PN}/releases/"
|
||||
|
||||
inherit flag-o-matic toolchain-funcs mozconfig-v4 makeedit multilib autotools pax-utils check-reqs nsplugins mozlinguas
|
||||
|
||||
DESCRIPTION="Thunderbird Mail Client"
|
||||
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
|
||||
IUSE="bindist crypt gstreamer +jit ldap +lightning +minimal mozdom pulseaudio selinux system-cairo system-icu system-jpeg system-sqlite"
|
||||
|
||||
PATCH="thunderbird-31.0-patches-0.1"
|
||||
PATCHFF="firefox-31.0-patches-0.2"
|
||||
|
||||
SRC_URI="${SRC_URI}
|
||||
${MOZ_FTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
|
||||
${MOZ_HTTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
|
||||
crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )
|
||||
lightning? (
|
||||
${MOZ_HTTP_URI/${PN}/calendar/lightning}${MOZ_LIGHTNING_VER}/linux/lightning.xpi -> lightning-${MOZ_LIGHTNING_VER}.xpi
|
||||
${MOZ_HTTP_URI/${PN}/calendar/lightning}${MOZ_LIGHTNING_GDATA_VER}/linux/gdata-provider.xpi -> gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.xpi
|
||||
)
|
||||
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz
|
||||
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
|
||||
http://dev.gentoo.org/~axs/distfiles/${PATCH}.tar.xz
|
||||
http://dev.gentoo.org/~axs/distfiles/${PATCHFF}.tar.xz
|
||||
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz"
|
||||
|
||||
ASM_DEPEND=">=dev-lang/yasm-1.1"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/nss-3.16.2
|
||||
>=dev-libs/nspr-4.10.6
|
||||
>=dev-libs/glib-2.26:2
|
||||
>=media-libs/mesa-7.10
|
||||
>=media-libs/libpng-1.6.6[apng]
|
||||
virtual/libffi
|
||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[ffmpeg] )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
system-cairo? ( >=x11-libs/cairo-1.12[X] )
|
||||
system-icu? ( >=dev-libs/icu-51.1 )
|
||||
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
|
||||
system-sqlite? ( >=dev-db/sqlite-3.8.3.1:3[secure-delete,debug=] )
|
||||
>=media-libs/libvpx-1.0.0
|
||||
selinux? ( sec-policy/selinux-thunderbird )
|
||||
!x11-plugins/enigmail
|
||||
crypt? ( || (
|
||||
( >=app-crypt/gnupg-2.0
|
||||
|| (
|
||||
app-crypt/pinentry[gtk]
|
||||
app-crypt/pinentry[qt4]
|
||||
)
|
||||
)
|
||||
=app-crypt/gnupg-1.4*
|
||||
) )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/binutils-2.16.1
|
||||
virtual/pkgconfig
|
||||
amd64? ( ${ASM_DEPEND}
|
||||
virtual/opengl )
|
||||
x86? ( ${ASM_DEPEND}
|
||||
virtual/opengl )"
|
||||
|
||||
if [[ ${PV} =~ beta ]]; then
|
||||
S="${WORKDIR}/comm-beta"
|
||||
else
|
||||
S="${WORKDIR}/comm-esr${PV%%.*}"
|
||||
fi
|
||||
|
||||
BUILD_OBJ_DIR="${WORKDIR}/tbird"
|
||||
|
||||
pkg_setup() {
|
||||
moz_pkgsetup
|
||||
|
||||
export MOZILLA_DIR="${S}/mozilla"
|
||||
|
||||
if ! use bindist ; then
|
||||
elog "You are enabling official branding. You may not redistribute this build"
|
||||
elog "to any users on your network or the internet. Doing so puts yourself into"
|
||||
elog "a legal problem with Mozilla Foundation"
|
||||
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
|
||||
elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
# Ensure we have enough disk space to compile
|
||||
CHECKREQS_DISK_BUILD="4G"
|
||||
check-reqs_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# Unpack language packs
|
||||
mozlinguas_src_unpack
|
||||
|
||||
# Unpack lightning for calendar locales
|
||||
if use lightning ; then
|
||||
xpi_unpack lightning-${MOZ_LIGHTNING_VER}.xpi
|
||||
xpi_unpack gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.xpi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Apply our Thunderbird patchset
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}/thunderbird"
|
||||
|
||||
# Apply our patchset from firefox to thunderbird as well
|
||||
pushd "${S}"/mozilla &>/dev/null || die
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}/firefox"
|
||||
popd &>/dev/null || die
|
||||
|
||||
# Ensure that are plugins dir is enabled as default
|
||||
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
|
||||
"${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
|
||||
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
|
||||
"${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
|
||||
|
||||
# Don't exit with error when some libs are missing which we have in
|
||||
# system.
|
||||
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
|
||||
-i "${S}"/mail/installer/Makefile.in || die
|
||||
|
||||
# Don't error out when there's no files to be removed:
|
||||
sed 's@\(xargs rm\)$@\1 -f@' \
|
||||
-i "${S}"/mozilla/toolkit/mozapps/installer/packager.mk || die
|
||||
|
||||
# Shell scripts sometimes contain DOS line endings; bug 391889
|
||||
grep -rlZ --include="*.sh" $'\r$' . |
|
||||
while read -r -d $'\0' file ; do
|
||||
einfo edos2unix "${file}"
|
||||
edos2unix "${file}"
|
||||
done
|
||||
|
||||
# Confirm the version of lightning being grabbed for langpacks is the same
|
||||
# as that used in thunderbird
|
||||
local THIS_MOZ_LIGHTNING_VER=$(python "${S}"/calendar/lightning/build/makeversion.py ${PV})
|
||||
if [[ ${MOZ_LIGHTNING_VER} != ${THIS_MOZ_LIGHTNING_VER} ]]; then
|
||||
eqawarn "The version of lightning used for localization differs from the version"
|
||||
eqawarn "in thunderbird. Please update MOZ_LIGHTNING_VER in the ebuild from ${MOZ_LIGHTNING_VER}"
|
||||
eqawarn "to ${THIS_MOZ_LIGHTNING_VER}"
|
||||
fi
|
||||
|
||||
# Allow user to apply any additional patches without modifing ebuild
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
# Ensure we run eautoreconf in mozilla to regenerate configure
|
||||
cd "${S}"/mozilla || die
|
||||
eautoconf
|
||||
cd "${S}"/mozilla/js/src || die
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
|
||||
MEXTENSIONS="default"
|
||||
|
||||
####################################
|
||||
#
|
||||
# mozconfig, CFLAGS and CXXFLAGS setup
|
||||
#
|
||||
####################################
|
||||
|
||||
mozconfig_init
|
||||
mozconfig_config
|
||||
|
||||
# It doesn't compile on alpha without this LDFLAGS
|
||||
use alpha && append-ldflags "-Wl,--no-relax"
|
||||
|
||||
# We must force enable jemalloc 3 threw .mozconfig
|
||||
echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig
|
||||
|
||||
mozconfig_annotate '' --enable-jemalloc
|
||||
mozconfig_annotate '' --enable-replace-malloc
|
||||
mozconfig_annotate '' --prefix="${EPREFIX}"/usr
|
||||
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
|
||||
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
|
||||
mozconfig_annotate '' --disable-gconf
|
||||
mozconfig_annotate '' --disable-mailnews
|
||||
mozconfig_annotate '' --with-system-png
|
||||
mozconfig_annotate '' --enable-system-ffi
|
||||
|
||||
# Other ff-specific settings
|
||||
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
|
||||
mozconfig_annotate '' --with-user-appdir=.thunderbird
|
||||
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
|
||||
mozconfig_annotate '' --build="${CTARGET:-${CHOST}}"
|
||||
|
||||
# Use enable features
|
||||
if use gstreamer ; then
|
||||
mozconfig_annotate '' --enable-gstreamer=1.0
|
||||
else
|
||||
mozconfig_annotate '' --disable-gstreamer
|
||||
fi
|
||||
mozconfig_use_enable pulseaudio
|
||||
mozconfig_use_enable system-cairo
|
||||
mozconfig_use_enable system-sqlite
|
||||
mozconfig_use_with system-jpeg
|
||||
mozconfig_use_with system-icu
|
||||
mozconfig_use_enable system-icu intl-api
|
||||
mozconfig_use_enable lightning calendar
|
||||
mozconfig_use_enable ldap
|
||||
|
||||
# Bug #72667
|
||||
if use mozdom; then
|
||||
MEXTENSIONS="${MEXTENSIONS},inspector"
|
||||
fi
|
||||
|
||||
# Use an objdir to keep things organized.
|
||||
echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
|
||||
|
||||
# Finalize and report settings
|
||||
mozconfig_final
|
||||
|
||||
####################################
|
||||
#
|
||||
# Configure and build
|
||||
#
|
||||
####################################
|
||||
|
||||
# Disable no-print-directory
|
||||
MAKEOPTS=${MAKEOPTS/--no-print-directory/}
|
||||
|
||||
if [[ $(gcc-major-version) -lt 4 ]]; then
|
||||
append-cxxflags -fno-stack-protector
|
||||
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
|
||||
if use amd64 || use x86; then
|
||||
append-flags -mno-avx
|
||||
fi
|
||||
fi
|
||||
|
||||
if use crypt; then
|
||||
pushd "${WORKDIR}"/enigmail &>/dev/null ||die
|
||||
econf
|
||||
popd &>/dev/null ||die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mkdir -p "${BUILD_OBJ_DIR}" && cd "${BUILD_OBJ_DIR}" || die
|
||||
|
||||
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
|
||||
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
|
||||
emake -f "${S}"/client.mk
|
||||
|
||||
# Only build enigmail extension if crypt enabled.
|
||||
if use crypt ; then
|
||||
einfo "Building enigmail"
|
||||
pushd "${WORKDIR}"/enigmail &>/dev/null || die
|
||||
emake -j1
|
||||
emake -j1 xpi
|
||||
popd &>/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
|
||||
DICTPATH="\"${EPREFIX}/usr/share/myspell\""
|
||||
|
||||
declare emid
|
||||
cd "${BUILD_OBJ_DIR}" || die
|
||||
|
||||
# Copy our preference before omnijar is created.
|
||||
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \
|
||||
"${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
|
||||
|| die
|
||||
|
||||
# Set default path to search for dictionaries.
|
||||
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
|
||||
>> "${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
|
||||
|| die
|
||||
|
||||
# Pax mark xpcshell for hardened support, only used for startupcache creation.
|
||||
pax-mark m "${BUILD_OBJ_DIR}"/mozilla/dist/bin/xpcshell
|
||||
|
||||
MOZ_MAKE_FLAGS="${MAKEOPTS}" \
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# Install language packs
|
||||
mozlinguas_src_install
|
||||
|
||||
if ! use bindist; then
|
||||
newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
|
||||
domenu "${FILESDIR}"/icon/${PN}.desktop
|
||||
else
|
||||
newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png
|
||||
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
|
||||
${PN}.desktop
|
||||
|
||||
sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
|
||||
"${ED}"/usr/share/applications/${PN}.desktop
|
||||
fi
|
||||
|
||||
if use crypt ; then
|
||||
local enigmail_xpipath="${WORKDIR}/enigmail/build"
|
||||
cd "${T}" || die
|
||||
unzip "${enigmail_xpipath}"/enigmail*.xpi install.rdf || die
|
||||
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
|
||||
|
||||
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
|
||||
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
|
||||
unzip "${enigmail_xpipath}"/enigmail*.xpi || die
|
||||
fi
|
||||
|
||||
if use lightning ; then
|
||||
local l c
|
||||
mozlinguas_export
|
||||
|
||||
emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
|
||||
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
|
||||
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
|
||||
unzip "${BUILD_OBJ_DIR}"/mozilla/dist/xpi-stage/gdata-provider-*.xpi
|
||||
# Install locales for gdata-provider -- each locale is a directory tree
|
||||
insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome
|
||||
cd "${WORKDIR}"/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}/chrome
|
||||
for l in "${mozlinguas[@]}"; do if [[ -d gdata-provider-${l} ]]; then
|
||||
doins -r gdata-provider-${l}
|
||||
echo "locale gdata-provider ${l} chrome/gdata-provider-${l}/locale/${l}/" \
|
||||
>> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \
|
||||
|| die "Error adding gdata-provider-${l} to chrome.manifest"
|
||||
else
|
||||
ewarn "Sorry, but lightning gdata-provider in ${P} does not support the ${l} locale"
|
||||
fi; done
|
||||
|
||||
emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
|
||||
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
|
||||
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
|
||||
unzip "${BUILD_OBJ_DIR}"/mozilla/dist/xpi-stage/lightning-*.xpi \
|
||||
|| die
|
||||
# Install locales for lightning - each locale is a jar file
|
||||
insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome
|
||||
cd "${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER}/chrome || die
|
||||
for l in "${mozlinguas[@]}"; do if [[ -e calendar-${l}.jar ]]; then
|
||||
for c in calendar lightning; do
|
||||
doins ${c}-${l}.jar
|
||||
echo "locale ${c} $l jar:chrome/${c}-${l}.jar!/locale/${l}/${c}/" \
|
||||
>> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \
|
||||
|| die "Error adding ${c}-${l} to chrome.manifest"
|
||||
done
|
||||
else
|
||||
ewarn "Sorry, but lightning calendar in ${P} does not support the ${l} locale"
|
||||
fi; done
|
||||
|
||||
# Fix mimetype so it shows up as a calendar application in GNOME 3
|
||||
# This requires that the .desktop file was already installed earlier
|
||||
sed -e "s:^\(MimeType=\):\1text/calendar;:" \
|
||||
-e "s:^\(Categories=\):\1Calendar;:" \
|
||||
-i "${ED}"/usr/share/applications/${PN}.desktop || die
|
||||
fi
|
||||
|
||||
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird}
|
||||
|
||||
# Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash
|
||||
# continue to work as expected.
|
||||
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container
|
||||
|
||||
if use minimal; then
|
||||
rm -r "${ED}"/usr/include "${ED}"${MOZILLA_FIVE_HOME}/{idl,include,lib,sdk} || \
|
||||
die "Failed to remove sdk and headers"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use crypt && has_version "app-admin/eselect-pinentry"; then
|
||||
local peimpl=$(eselect --brief --colour=no pinentry show)
|
||||
case "${peimpl}" in
|
||||
*gtk*|*qt*) ;;
|
||||
*) ewarn "The pinentry front-end currently selected is not one supported by thunderbird."
|
||||
ewarn "You may be prompted for your password in an inaccessible shell!!"
|
||||
ewarn "Please use 'eselect pinentry' to select either the gtk or qt front-end"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
elog
|
||||
elog "If you experience problems with plugins please issue the"
|
||||
elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ,"
|
||||
elog "then restart thunderbird"
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
--- GraphicsMagick-1.3.20/magick/studio.h
|
||||
+++ GraphicsMagick-1.3.20/magick/studio.h
|
||||
@@ -51,12 +51,11 @@
|
||||
threads. Most CPUs have cache lines of 32 or 64 bytes. IBM Power CPUs have
|
||||
cache lines of 128 bytes.
|
||||
*/
|
||||
-/* FIXME: C pre-processor does not support comparing strings. */
|
||||
-/* #if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc) */
|
||||
-/* # define MAGICK_CACHE_LINE_SIZE 128 */
|
||||
-/* #else */
|
||||
-# define MAGICK_CACHE_LINE_SIZE 64
|
||||
-/* #endif */
|
||||
+#ifdef __powerpc__
|
||||
+#define MAGICK_CACHE_LINE_SIZE 128
|
||||
+#else
|
||||
+#define MAGICK_CACHE_LINE_SIZE 64
|
||||
+#endif
|
||||
|
||||
|
||||
/*
|
@ -0,0 +1,130 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-gfx/graphicsmagick/graphicsmagick-1.3.20.ebuild,v 1.1 2014/09/04 21:10:00 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils toolchain-funcs
|
||||
|
||||
MY_P=${P/graphicsm/GraphicsM}
|
||||
|
||||
DESCRIPTION="Collection of tools and libraries for many image formats"
|
||||
HOMEPAGE="http://www.graphicsmagick.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp
|
||||
perl png postscript q16 q32 static-libs svg threads tiff truetype webp wmf X zlib"
|
||||
|
||||
RDEPEND=">=sys-devel/libtool-2.2.6b
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
fpx? ( media-libs/libfpx )
|
||||
imagemagick? ( !media-gfx/imagemagick )
|
||||
jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
perl? ( dev-lang/perl )
|
||||
png? ( media-libs/libpng:0 )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
svg? ( dev-libs/libxml2 )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
truetype? (
|
||||
media-fonts/urw-fonts
|
||||
>=media-libs/freetype-2
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
wmf? ( media-libs/libwmf )
|
||||
X? (
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
)
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.3.19-freetype.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.3.19-flags.patch
|
||||
epatch "${FILESDIR}"/${PN}-1.3.19-perl.patch
|
||||
epatch "${FILESDIR}"/${P}-powerpc.patch
|
||||
|
||||
epatch_user #498942
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local depth=8
|
||||
use q16 && depth=16
|
||||
use q32 && depth=32
|
||||
|
||||
local openmp=disable
|
||||
if use openmp && tc-has-openmp; then
|
||||
openmp=enable
|
||||
fi
|
||||
|
||||
econf \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
|
||||
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--${openmp}-openmp \
|
||||
--enable-largefile \
|
||||
--enable-shared \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug prof) \
|
||||
$(use_enable debug gcov) \
|
||||
$(use_enable imagemagick magick-compat) \
|
||||
$(use_with threads) \
|
||||
$(use_with modules) \
|
||||
--with-quantum-depth=${depth} \
|
||||
--without-frozenpaths \
|
||||
$(use_with cxx magick-plus-plus) \
|
||||
$(use_with perl) \
|
||||
--with-perl-options=INSTALLDIRS=vendor \
|
||||
$(use_with bzip2 bzlib) \
|
||||
$(use_with postscript dps) \
|
||||
$(use_with fpx) \
|
||||
--without-gslib \
|
||||
$(use_with jbig) \
|
||||
$(use_with webp) \
|
||||
$(use_with jpeg) \
|
||||
$(use_with jpeg2k jp2) \
|
||||
--without-lcms \
|
||||
$(use_with lcms lcms2) \
|
||||
$(use_with lzma) \
|
||||
$(use_with png) \
|
||||
$(use_with tiff) \
|
||||
$(use_with truetype ttf) \
|
||||
$(use_with wmf) \
|
||||
--with-fontpath="${EPREFIX}"/usr/share/fonts \
|
||||
--with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
|
||||
--with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
|
||||
$(use_with svg xml) \
|
||||
$(use_with zlib) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use perl && emake perl-build
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DISPLAY # some perl tests fail when DISPLAY is set
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use perl; then
|
||||
emake -C PerlMagick DESTDIR="${D}" install
|
||||
find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
|
||||
find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST glfw-2.6.tar.bz2 886843 SHA256 1b86ca8c5678fbf6999a0bfbe50de121f8aec9c07bf2383306819caebe3edfca SHA512 4161b6f447c245f982f779da9ca790a91f4bebbffbe4ea024220d856311ebf8d5755ce4481b8667bcb964ea58ce689019ee09c004f69f81df53ee834e6792163 WHIRLPOOL 24ada131512368a7e3f696b2accd3b1ee0df0948eb977df2de3ba932d7c1378d951b2aa9d48d7e8d4c1497c0ee5a8617e79904952ac6d7ca547af69ec4117dcd
|
||||
DIST glfw-2.7.7.tar.bz2 927805 SHA256 422e755979524a1da28e4addcae723b7132998ca15e89be41bf34964d9360aa2 SHA512 1b51b9d88c8eed9da8084421949b561a4779410a6369ffdf482c2d8a166bab8c58bbb087ef6f32180d3fe9430988549be5c183b338dd0e1191b2c4b4a7b55379 WHIRLPOOL 646d38fd3ea88e8aa19dcbfa8f8b933adc530ea946cd51c3e03971ed6cdb294dadf5020a876ba298c378896179a4a7ba0129b858fc7f1273a574fe1c2c388a77
|
||||
DIST glfw-3.0.3.tar.bz2 411964 SHA256 d063590be73cd487b0e4e5270a1c67a493eecefab42af62ebf9b45aaa3fc2cd4 SHA512 1ad9c175c554f073dd4834a924b04ba658ef43a73eaa1f34edc96c08c08421dbee61193d49a23fa21aa2637c44d18a995d5ef85b4fda129d9e6fa35c11413b15 WHIRLPOOL ac7eade646a51d38ae65190a9219c3dde0cd0827d990a86b163e5478b034aa9b9daa811dd4e858fa1540c4a9ce96130d1504dd4d285050925d15f88fa698e07a
|
||||
DIST glfw-3.0.4.tar.bz2 424887 SHA256 4f09d70b9e341c8613873cadb51d9e40a67982b5bb919e024783cec7ac09efc0 SHA512 2f80354d4c73d2cfb0014589629d4b204ce731c3528c365c83799f2ff195dda0cb5e200d520c0555f078307d97229551f0f056b8adf1b22643e20dec7a03ec36 WHIRLPOOL 9868f111d447230dc2593c4a662b2afd1d8372491ddc84b2817ade7d47d7aa86d42627a5954424e6db3dc7869eec645df36b140a51b21b581740d19329513a1a
|
||||
|
@ -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/media-libs/glfw/glfw-3.0.3.ebuild,v 1.3 2014/08/29 19:17:03 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="The Portable OpenGL FrameWork"
|
||||
HOMEPAGE="http://www.glfw.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="egl examples"
|
||||
|
||||
RDEPEND="x11-libs/libXrandr
|
||||
x11-libs/libX11
|
||||
x11-libs/libXi
|
||||
x11-libs/libXxf86vm
|
||||
virtual/opengl"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/glu"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs="
|
||||
$(cmake-utils_use egl GLFW_USE_EGL)
|
||||
$(cmake-utils_use examples GLFW_BUILD_EXAMPLES)
|
||||
-DBUILD_SHARED_LIBS=1
|
||||
"
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmediainfo/libmediainfo-0.7.70.ebuild,v 1.1 2014/09/04 14:41:20 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib
|
||||
|
||||
MY_PN="MediaInfo"
|
||||
DESCRIPTION="MediaInfo libraries"
|
||||
HOMEPAGE="http://mediaarea.net/mediainfo/"
|
||||
SRC_URI="mirror://sourceforge/mediainfo/${PN}_${PV}.tar.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="curl doc mms static-libs"
|
||||
|
||||
RDEPEND="sys-libs/zlib
|
||||
dev-libs/tinyxml2:=
|
||||
>=media-libs/libzen-0.4.28[static-libs=]
|
||||
curl? ( net-misc/curl )
|
||||
mms? ( >=media-libs/libmms-0.6.1[static-libs=] )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
S=${WORKDIR}/${MY_PN}Lib/Project/GNU/Library
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's:-O2::' configure.ac || die
|
||||
append-cppflags -DMEDIAINFO_LIBMMS_DESCRIBE_SUPPORT=0
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-0.7.63-pkgconfig.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-shared \
|
||||
--with-libtinyxml2 \
|
||||
$(use_with curl libcurl) \
|
||||
$(use_with mms libmms) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable static-libs staticlibs)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
cd "${WORKDIR}"/${MY_PN}Lib/Source/Doc
|
||||
doxygen Doxyfile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
edos2unix ${PN}.pc #414545
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins ${PN}.pc
|
||||
|
||||
for x in ./ Archive Audio Duplicate Export Image Multiple Reader Tag Text Video; do
|
||||
insinto /usr/include/${MY_PN}/${x}
|
||||
doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}/${x}/*.h
|
||||
done
|
||||
|
||||
insinto /usr/include/${MY_PN}DLL
|
||||
doins "${WORKDIR}"/${MY_PN}Lib/Source/${MY_PN}DLL/*.h
|
||||
|
||||
dodoc "${WORKDIR}"/${MY_PN}Lib/*.txt
|
||||
if use doc; then
|
||||
dohtml -r "${WORKDIR}"/${MY_PN}Lib/Doc/*
|
||||
fi
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mediainfo/mediainfo-0.7.70.ebuild,v 1.1 2014/09/04 14:43:31 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
WX_GTK_VER="3.0"
|
||||
|
||||
inherit eutils autotools wxwidgets multilib
|
||||
|
||||
DESCRIPTION="MediaInfo supplies technical and tag information about media files"
|
||||
HOMEPAGE="http://mediaarea.net/mediainfo/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.bz2"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="curl mms wxwidgets"
|
||||
|
||||
RDEPEND="sys-libs/zlib
|
||||
media-libs/libzen
|
||||
~media-libs/lib${P}[curl=,mms=]
|
||||
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/MediaInfo
|
||||
|
||||
pkg_setup() {
|
||||
TARGETS="CLI"
|
||||
use wxwidgets && TARGETS+=" GUI"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local target
|
||||
for target in ${TARGETS}; do
|
||||
cd "${S}"/Project/GNU/${target}
|
||||
sed -i -e "s:-O2::" configure.ac
|
||||
eautoreconf
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
for target in ${TARGETS}; do
|
||||
cd "${S}"/Project/GNU/${target}
|
||||
local args=""
|
||||
[[ ${target} == "GUI" ]] && args="--with-wxwidgets --with-wx-gui"
|
||||
econf ${args}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local target
|
||||
for target in ${TARGETS}; do
|
||||
cd "${S}"/Project/GNU/${target}
|
||||
default
|
||||
done
|
||||
}
|
||||
src_install() {
|
||||
local target
|
||||
for target in ${TARGETS}; do
|
||||
cd "${S}"/Project/GNU/${target}
|
||||
default
|
||||
dodoc "${S}"/History_${target}.txt
|
||||
if [[ ${target} == "GUI" ]]; then
|
||||
newicon "${S}"/Source/Resource/Image/MediaInfo.png ${PN}.png
|
||||
make_desktop_entry ${PN}-gui MediaInfo ${PN} "AudioVideo;GTK"
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST totem-2.32.0-patches.tar.bz2 13355 SHA256 fdf1d04e5c2325ba5b982a4fb59b9c70bbdf018418dfc7d0fa8bd28929335a30 SHA512 cedb71ecd244dad6667e67eccae3fcf912de975b7ce5911257438303abe50ae8cf488c4dad4bc8557f5049846ce7d98503cefe0aeeda7aec70028f8dec81b0bc WHIRLPOOL be4c5c8cbe7d700ca18b942cb5fd546d95434fe13535fc96b4baf9fc3b2ac5d39d4b4cc3af8e920a54d8c929e29b2a88799e8f5b984f495a3def50bcd6dc9981
|
||||
DIST totem-2.32.0.tar.bz2 3278758 SHA256 982d6aaeca3e4844694fc0a2540d792bea753e24b55cf33203188b32b5914f47 SHA512 67d5d3e06a57fc355867f288f620be384c7ec3078ecfa0a223ae09d7d8b34d5b9b16de1d97e1d1bfe2b3b12cc87eed8bd8305b9f5a1bba1c4fe37cf7355e0f0f WHIRLPOOL 301f7727e1255b1fcf4b8546cc8973d5bae45bca5b84e4a516d1a1d006eb695632a33bcb04c00d360c0d00d8ba21057fab4a05b1870023febf076e35887ef40d
|
||||
DIST totem-3.10.1.tar.xz 3266668 SHA256 b6b6038c9104965671a6d25e98496a487c3a9c590c9c104f668bd9f4fa7be9e2 SHA512 cd83065e91d8dbc25be886c85542d5a1c2e99d64dd5563ddfcec984080c4755e1924d3dc44ce7fdfb3c9135d5f55d093d206c4392fb2ebb11551a6aede4dff17 WHIRLPOOL 8f9d3e543d22c392d40087b97cff23512fd833cff5a640f6497ac25dd995d2f107aebaa0bcc656b0ee29c6e85b09cf310102e415dec45e361e615406c8baafe5
|
||||
DIST totem-3.12.1.tar.xz 3316056 SHA256 dd168cdd4051d01131d47c24fa45bfd08b6ccf45900ac4b64bae47f6f47a35e3 SHA512 7b2601764b9715001e52345330e1ede2ba74f9588b5c63b0da595ee06609ec0971b24eed4ad9c3dc4c989e7708b03afcbd782f8d0368fc95a49aa035caccb103 WHIRLPOOL 810704760e941b17df3b2d1e44f8a6480468bd8c8fee3883cde04a884ae369ce52a02c594fd21b8fcbcd564978dd30bc131aba8c9b5065b274a1f20499f09e78
|
||||
DIST totem-3.12.2.tar.xz 3309904 SHA256 76f9d8bb04813f5c19c0d09f946a2ba42647d10e174c27e8d848afcec7005cd1 SHA512 30f88e0c394797794c4c3a977e01e80d82ed64c703c1926708243a8086547c256e6601dba0cba6b69e8b421e625c1ab2e7074cb1efff3fa43a9ab8b932befb75 WHIRLPOOL 250b757354c83c82c24ef20470276e037818c1e51960f9557bae81bc77cc1ea9d90587fcbfd88cbeab27419a38123cd951e54f612877afb257fa0895da8cc131
|
||||
|
@ -1,151 +0,0 @@
|
||||
From 6d233c27c2d2c3d415a1a1bdbedf0fe65f1f4434 Mon Sep 17 00:00:00 2001
|
||||
From: Bastien Nocera <hadess@hadess.net>
|
||||
Date: Sat, 18 May 2013 13:31:01 +0000
|
||||
Subject: plugins: Add hack to allow streaming of Vimeo videos
|
||||
|
||||
See http://thread.gmane.org/gmane.comp.web.flash.quvi/265/focus=268
|
||||
---
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 0810f01..be7e4e6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -79,7 +79,7 @@ AC_SUBST(TOTEM_API_VERSION)
|
||||
AC_DEFINE_UNQUOTED(TOTEM_API_VERSION, ["$TOTEM_API_VERSION"], [Define to the Totem plugin API version])
|
||||
|
||||
# The full list of plugins
|
||||
-allowed_plugins="apple-trailers autoload-subtitles brasero-disc-recorder chapters dbusservice im-status gromit lirc media-player-keys ontop opensubtitles properties pythonconsole recent rotation save-file samplepython sample-vala screensaver screenshot sidebar-test skipto zeitgeist-dp grilo"
|
||||
+allowed_plugins="apple-trailers autoload-subtitles brasero-disc-recorder chapters dbusservice im-status gromit lirc media-player-keys ontop opensubtitles properties pythonconsole recent rotation save-file samplepython sample-vala screensaver screenshot sidebar-test skipto zeitgeist-dp grilo vimeo"
|
||||
|
||||
PLUGINDIR='${libdir}/totem/plugins'
|
||||
AC_SUBST(PLUGINDIR)
|
||||
@@ -739,6 +739,7 @@ src/plugins/brasero-disc-recorder/Makefile
|
||||
src/plugins/chapters/Makefile
|
||||
src/plugins/zeitgeist-dp/Makefile
|
||||
src/plugins/grilo/Makefile
|
||||
+src/plugins/vimeo/Makefile
|
||||
src/backend/Makefile
|
||||
browser-plugin/Makefile
|
||||
data/Makefile
|
||||
diff --git a/src/plugins/vimeo/Makefile.am b/src/plugins/vimeo/Makefile.am
|
||||
new file mode 100644
|
||||
index 0000000..17a3892
|
||||
--- /dev/null
|
||||
+++ b/src/plugins/vimeo/Makefile.am
|
||||
@@ -0,0 +1,13 @@
|
||||
+include $(top_srcdir)/src/plugins/Makefile.plugins
|
||||
+
|
||||
+plugindir = $(PLUGINDIR)/vimeo
|
||||
+plugin_LTLIBRARIES = libvimeo.la
|
||||
+
|
||||
+plugin_in_files = vimeo.plugin.in
|
||||
+
|
||||
+libvimeo_la_SOURCES = totem-vimeo.c
|
||||
+libvimeo_la_LDFLAGS = $(plugin_ldflags)
|
||||
+libvimeo_la_LIBADD = $(plugin_libadd)
|
||||
+libvimeo_la_CFLAGS = $(plugin_cflags)
|
||||
+
|
||||
+-include $(top_srcdir)/git.mk
|
||||
diff --git a/src/plugins/vimeo/totem-vimeo.c b/src/plugins/vimeo/totem-vimeo.c
|
||||
new file mode 100644
|
||||
index 0000000..b7074e9
|
||||
--- /dev/null
|
||||
+++ b/src/plugins/vimeo/totem-vimeo.c
|
||||
@@ -0,0 +1,81 @@
|
||||
+/*
|
||||
+ * Copyright (C) 2013 Bastien Nocera <hadess@hadess.net>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License as published by
|
||||
+ * the Free Software Foundation; either version 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * This program is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU General Public License for more details.
|
||||
+ *
|
||||
+ * You should have received a copy of the GNU General Public License
|
||||
+ * along with this program; if not, write to the Free Software
|
||||
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
+ *
|
||||
+ *
|
||||
+ * The Totem project hereby grant permission for non-gpl compatible GStreamer
|
||||
+ * plugins to be used and distributed together with GStreamer and Totem. This
|
||||
+ * permission are above and beyond the permissions granted by the GPL license
|
||||
+ * Totem is covered by.
|
||||
+ *
|
||||
+ * Monday 7th February 2005: Christian Schaller: Add exception clause.
|
||||
+ * See license_change file for details.
|
||||
+ *
|
||||
+ */
|
||||
+
|
||||
+
|
||||
+#include "config.h"
|
||||
+
|
||||
+#include <glib-object.h>
|
||||
+
|
||||
+#include "totem-plugin.h"
|
||||
+#include "totem.h"
|
||||
+
|
||||
+#define TOTEM_TYPE_VIMEO_PLUGIN (totem_vimeo_plugin_get_type ())
|
||||
+#define TOTEM_VIMEO_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TOTEM_TYPE_VIMEO_PLUGIN, TotemVimeoPlugin))
|
||||
+
|
||||
+typedef struct {
|
||||
+ guint signal_id;
|
||||
+ TotemObject *totem;
|
||||
+} TotemVimeoPluginPrivate;
|
||||
+
|
||||
+TOTEM_PLUGIN_REGISTER(TOTEM_TYPE_VIMEO_PLUGIN, TotemVimeoPlugin, totem_vimeo_plugin)
|
||||
+
|
||||
+static char *
|
||||
+get_user_agent_cb (TotemObject *totem,
|
||||
+ const char *mrl)
|
||||
+{
|
||||
+ if (g_str_has_prefix (mrl, "http://vimeo.com") ||
|
||||
+ g_str_has_prefix (mrl, "http://player.vimeo.com"))
|
||||
+ return g_strdup ("Mozilla/5.0");
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+impl_activate (PeasActivatable *plugin)
|
||||
+{
|
||||
+ TotemVimeoPlugin *pi = TOTEM_VIMEO_PLUGIN (plugin);
|
||||
+
|
||||
+ pi->priv->totem = g_object_ref (g_object_get_data (G_OBJECT (plugin), "object"));
|
||||
+ pi->priv->signal_id = g_signal_connect (G_OBJECT (pi->priv->totem), "get-user-agent",
|
||||
+ G_CALLBACK (get_user_agent_cb), NULL);
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
+impl_deactivate (PeasActivatable *plugin)
|
||||
+{
|
||||
+ TotemVimeoPlugin *pi = TOTEM_VIMEO_PLUGIN (plugin);
|
||||
+
|
||||
+ if (pi->priv->signal_id) {
|
||||
+ g_signal_handler_disconnect (pi->priv->totem, pi->priv->signal_id);
|
||||
+ pi->priv->signal_id = 0;
|
||||
+ }
|
||||
+
|
||||
+ if (pi->priv->totem) {
|
||||
+ g_object_unref (pi->priv->totem);
|
||||
+ pi->priv->totem = NULL;
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/plugins/vimeo/vimeo.plugin.in b/src/plugins/vimeo/vimeo.plugin.in
|
||||
new file mode 100644
|
||||
index 0000000..f18b6eb
|
||||
--- /dev/null
|
||||
+++ b/src/plugins/vimeo/vimeo.plugin.in
|
||||
@@ -0,0 +1,9 @@
|
||||
+[Plugin]
|
||||
+Module=vimeo
|
||||
+IAge=1
|
||||
+Builtin=true
|
||||
+_Name=Vimeo
|
||||
+_Description=Sets the user agent for the Vimeo site
|
||||
+Authors=Bastien Nocera
|
||||
+Copyright=Copyright © 2013 Bastien Nocera
|
||||
+Website=http://www.gnome.org/projects/totem/
|
||||
--
|
||||
cgit v0.9.2
|
@ -1 +1 @@
|
||||
Thu, 04 Sep 2014 14:37:01 +0000
|
||||
Fri, 05 Sep 2014 04:36:59 +0000
|
||||
|
@ -1 +1 @@
|
||||
Thu, 04 Sep 2014 14:37:01 +0000
|
||||
Fri, 05 Sep 2014 04:37:00 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue