Merging from trunk. I resolved some conflicts; I hope that well.
svn path=/nixpkgs/branches/stdenv-updates/; revision=24429
This commit is contained in:
@@ -5,11 +5,11 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pn}-0.2.0";
|
||||
name = "${pn}-0.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sf/${pn}/${name}.tar.gz";
|
||||
sha256 = "18jb6v20pzk0kxv2dgjqgzzrcg7qid569apr63phfq1as1h09x67";
|
||||
sha256 = "0wgwdsd3jwwfg36jyr5j0wayqjli3ia80lxzk10byd4cmkywnhy2";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake libxml2 libzip ];
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
The DocBook DTD must be 4.2 to validate with KDE 4.5.2. In the upstream release 0.9.95
|
||||
of kdiff3 some languages have index.docbook with the 4.1.2 DTD. This patch changes
|
||||
the version number in the DOCTYPE to 4.2 for these languages.
|
||||
|
||||
|
||||
diff -Naur kdiff3-upstream-0.9.95/doc/de/index.docbook kdiff3-0.9.95/doc/de/index.docbook
|
||||
--- kdiff3-upstream-0.9.95/doc/de/index.docbook 2010-10-18 22:38:40.043252907 -0430
|
||||
+++ kdiff3-0.9.95/doc/de/index.docbook 2010-10-18 22:41:05.954329524 -0430
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
<!ENTITY kdiff3 "<application
|
||||
>KDiff3</application
|
||||
>">
|
||||
diff -Naur kdiff3-upstream-0.9.95/doc/fr/index.docbook kdiff3-0.9.95/doc/fr/index.docbook
|
||||
--- kdiff3-upstream-0.9.95/doc/fr/index.docbook 2010-10-18 22:38:40.043252907 -0430
|
||||
+++ kdiff3-0.9.95/doc/fr/index.docbook 2010-10-18 22:41:05.965408604 -0430
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
<!ENTITY kdiff3 "<application
|
||||
>KDiff3</application
|
||||
>">
|
||||
diff -Naur kdiff3-upstream-0.9.95/doc/it/index.docbook kdiff3-0.9.95/doc/it/index.docbook
|
||||
--- kdiff3-upstream-0.9.95/doc/it/index.docbook 2010-10-18 22:38:40.044252773 -0430
|
||||
+++ kdiff3-0.9.95/doc/it/index.docbook 2010-10-18 22:41:05.976408528 -0430
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
<!ENTITY kdiff3 "<application
|
||||
>KDiff3</application
|
||||
>">
|
||||
diff -Naur kdiff3-upstream-0.9.95/doc/nl/index.docbook kdiff3-0.9.95/doc/nl/index.docbook
|
||||
--- kdiff3-upstream-0.9.95/doc/nl/index.docbook 2010-10-18 22:38:40.043252907 -0430
|
||||
+++ kdiff3-0.9.95/doc/nl/index.docbook 2010-10-18 22:41:05.986408860 -0430
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
|
||||
<!ENTITY kdiff3 "<application
|
||||
>KDiff3</application
|
||||
>">
|
||||
@@ -1,17 +1,18 @@
|
||||
{ stdenv, fetchurl, cmake, qt4, perl, kdelibs, kdebase, automoc4, phonon, gettext}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kdiff3-0.9.95";
|
||||
src = fetchurl {
|
||||
url = http://downloads.sourceforge.net/project/kdiff3/kdiff3/0.9.95/kdiff3-0.9.95.tar.gz;
|
||||
sha256 = "0372cebc8957f256a98501a4ac3c3634c7ecffb486ece7e7819c90d876202f0f";
|
||||
url = "mirror://sourceforge/kdiff3/${name}.tar.gz";
|
||||
sha256 = "03rg41vdi44wh7kygv46nkzyrirl6qyar901hnlmdwjpi6ycwwh3";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DGETTEXT_INCLUDE_DIR=${gettext}/include" ];
|
||||
|
||||
# kdebase allows having a konqueror plugin built
|
||||
buildInputs = [ cmake qt4 perl kdelibs automoc4 phonon gettext kdebase ];
|
||||
|
||||
# Adjust the version of the DocBook XML to 4.2 ( so that it validates ).
|
||||
patches = [ ./adjust-docbook-xml-version-to-4.2.patch ];
|
||||
|
||||
meta = {
|
||||
homepage = http://kdiff3.sourceforge.net/;
|
||||
license = "GPLv2+";
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
{stdenv, fetchurl, autoconf, automake, libtool, gettext, perl}:
|
||||
|
||||
let
|
||||
asIfPatch = ./recode-3.6-as-if.patch;
|
||||
|
||||
gettextPatch = ./recode-3.6-gettextfix.diff;
|
||||
|
||||
debianPatch = fetchurl {
|
||||
url = "http://ftp.de.debian.org/debian/pool/main/r/recode/recode_3.6-15.diff.gz";
|
||||
sha256 = "114qxm29wk95w5760bswgd46d5p00g5kbfai5wchjvcbi722p5qf";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "recode-3.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.halifax.rwth-aachen.de/gnu/recode/recode-3.6.tar.gz";
|
||||
sha256 = "1krgjqfhsxcls4qvxhagc45sm1sd0w69jm81nwm0bip5z3rs9rp3";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf automake libtool gettext perl ];
|
||||
|
||||
patchPhase = ''
|
||||
patch -Np1 -i ${asIfPatch}
|
||||
patch -Np1 -i ${gettextPatch}
|
||||
gunzip <${debianPatch} | patch -Np1 -i -
|
||||
sed -i '1i#include <stdlib.h>' src/argmatch.c
|
||||
rm -f acinclude.m4
|
||||
autoreconf -fi
|
||||
libtoolize
|
||||
'';
|
||||
|
||||
configureFlags = "--without-included-gettext";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.gnu.org/software/recode/";
|
||||
description = "Converts files between various character sets and usages";
|
||||
|
||||
license = "GPLv2+";
|
||||
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
http://bugs.gentoo.org/283029
|
||||
|
||||
--- a/m4/flex.m4
|
||||
+++ b/m4/flex.m4
|
||||
@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX
|
||||
dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
|
||||
AC_DEFUN(ad_AC_PROG_FLEX,
|
||||
[AC_CHECK_PROGS(LEX, flex, missing)
|
||||
-if test "$LEX" = missing; then
|
||||
+AS_IF([test "$LEX" = missing], [dnl
|
||||
LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
|
||||
LEX_OUTPUT_ROOT=lex.yy
|
||||
AC_SUBST(LEX_OUTPUT_ROOT)dnl
|
||||
-else
|
||||
+], [:
|
||||
AC_PROG_LEX
|
||||
AC_DECL_YYTEXT
|
||||
-fi])
|
||||
+])])
|
||||
@@ -0,0 +1,23 @@
|
||||
http://bugs.gentoo.org/239372
|
||||
|
||||
patch by Dmitry Karasik
|
||||
|
||||
--- recode-3.6/m4/gettext.m4
|
||||
+++ recode-3.6/m4/gettext.m4
|
||||
@@ -109,12 +109,12 @@
|
||||
else
|
||||
ac_items="$LINGUAS"
|
||||
for ac_item in $ac_items; do
|
||||
- case "$ALL_LINGUAS" in
|
||||
- *$ac_item*)
|
||||
+ for supported_item in $ALL_LINGUAS; do
|
||||
+ if test "$ac_item" = "$supported_item"; then
|
||||
ac_print="$ac_print $ac_item"
|
||||
MOFILES="$MOFILES $ac_item.mo"
|
||||
- ;;
|
||||
- esac
|
||||
+ fi
|
||||
+ done
|
||||
done
|
||||
fi
|
||||
AC_SUBST(MOFILES)
|
||||
Reference in New Issue
Block a user