Merge 'staging' into closure-size
- there were many easy merge conflicts - cc-wrapper needed nontrivial changes Many other problems might've been created by interaction of the branches, but stdenv and a few other packages build fine now.
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
, UnicodeLineBreak, URI, XMLLibXMLSimple, XMLLibXSLT, XMLWriter }:
|
||||
|
||||
let
|
||||
version = "1.8";
|
||||
version = "1.9";
|
||||
pn = "biblatex-biber";
|
||||
in
|
||||
buildPerlPackage {
|
||||
name = "biber-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/${pn}/${pn}/${version}/${pn}.tar.gz";
|
||||
sha256 = "0ffry64pdvg5g487r7qab5b3cs4kq8rq8n3bymxrr1qh3mp79k4n";
|
||||
sha256 = "1a3iq7l9i54f8nfzjmp1qdb6aqm7977q1g4san470010fkfbvjdc";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@@ -33,7 +33,7 @@ buildPerlPackage {
|
||||
|
||||
meta = {
|
||||
description = "Backend for BibLaTeX";
|
||||
license = "perl";
|
||||
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ fetchurl, stdenv, texinfo, perl
|
||||
, XMLSAX, XMLParser, XMLNamespaceSupport
|
||||
, groff, libxml2, libxslt, gnused, libiconvOrEmpty, opensp
|
||||
, groff, libxml2, libxslt, gnused, libiconv, opensp
|
||||
, docbook_xml_dtd_43
|
||||
, makeWrapper }:
|
||||
|
||||
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./db2x_texixml-to-stdout.patch ];
|
||||
|
||||
buildInputs = [ perl texinfo groff libxml2 libxslt makeWrapper
|
||||
XMLSAX XMLParser XMLNamespaceSupport opensp
|
||||
] ++ libiconvOrEmpty;
|
||||
XMLSAX XMLParser XMLNamespaceSupport opensp libiconv
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
# Broken substitution is used for `perl/config.pl', which leaves literal
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{stdenv, fetchurl, perl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "halibut-1.0";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "halibut-1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.0.tar.gz;
|
||||
sha256 = "0d039adb88cb8de6f350563514d013209c2d321d1e5c49ea56462c6803f29adb";
|
||||
url = "http://www.chiark.greenend.org.uk/~sgtatham/halibut/${name}.tar.gz";
|
||||
sha256 = "18409ir55rsa5gkizw2hsr86wgv176jms2dc52px62gd246rar5r";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
@@ -24,9 +24,10 @@ stdenv.mkDerivation {
|
||||
make install
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Documentation production system for software manuals";
|
||||
homepage = http://www.chiark.greenend.org.uk/~sgtatham/halibut/;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,6 +47,6 @@ stdenv.mkDerivation rec {
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
url http://code.google.com/p/pdf2djvu/downloads/list
|
||||
version_link '[.]tar[.][a-z0-9]+$'
|
||||
process 'code[.]google[.]com//' ''
|
||||
version '.*_([0-9.]+[0-9]).*' '\1'
|
||||
|
||||
do_overwrite () {
|
||||
ensure_hash
|
||||
set_var_value version "$CURRENT_VERSION"
|
||||
set_var_value sha256 "$CURRENT_HASH"
|
||||
}
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "a tool to search text in PDF files";
|
||||
homepage = http://pdfgrep.sourceforge.net/;
|
||||
license = "free";
|
||||
license = stdenv.lib.licenses.free;
|
||||
maintainers = with stdenv.lib.maintainers; [qknight];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ source $stdenv/setup
|
||||
tar zxvf $src
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp pdfjam/scripts/* $out/bin
|
||||
cp pdfjam/bin/* $out/bin
|
||||
|
||||
mkdir -p $out/man/man1
|
||||
cp pdfjam/man1/* $out/man/man1
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
{stdenv, fetchurl}: stdenv.mkDerivation {
|
||||
name = "pdfjam-1.20";
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pdfjam-${version}";
|
||||
version = "2.08";
|
||||
url-version = stdenv.lib.replaceChars ["."] [""] version;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.warwick.ac.uk/go/pdfjam/pdfjam_1.20.tgz;
|
||||
sha256 = "05g3mx7mb6h15ivbv0f53r369xphy8ad8a2xblpnk9mrnlrkaxy9";
|
||||
url = "http://go.warwick.ac.uk/pdfjam/pdfjam_${url-version}.tgz";
|
||||
sha256 = "1wy0xhcy27d7agby598s20ba48s4yg5qkzr6anc6q1xdryccacf7";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
maintainers = maintainers.mornfall;
|
||||
maintainers = [ maintainers.mornfall ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,32 +1,40 @@
|
||||
{ fetchurl, stdenv, gcj }:
|
||||
{ fetchurl, stdenv, gcj, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pdftk-1.41";
|
||||
name = "pdftk-2.02";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.bz2;
|
||||
sha256 = "1vdrc3179slix6lz3gdiy53z7sh2yf9026r3xi6wdarwrcpawfrf";
|
||||
url = "https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-src.zip";
|
||||
sha256 = "1hdq6zm2dx2f9h7bjrp6a1hfa1ywgkwydp14i2sszjiszljnm3qi";
|
||||
};
|
||||
|
||||
patches = [ ./gcc-4.3.patch ./gcc-4.4.patch ];
|
||||
buildInputs = [ gcj unzip ];
|
||||
|
||||
buildInputs = [ gcj ];
|
||||
preBuild = ''
|
||||
cd pdftk
|
||||
sed -e 's@/usr/bin/@@g' -i Makefile.*
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make \
|
||||
LIBGCJ="${gcj.cc}/share/java/libgcj-${gcj.cc.version}.jar" \
|
||||
GCJ=gcj GCJH=gcjh GJAR=gjar \
|
||||
-iC ../java all
|
||||
'';
|
||||
|
||||
makeFlags = [ "-f" "Makefile.Generic" ];
|
||||
|
||||
preBuild = "cd pdftk";
|
||||
# Makefile.Debian has almost fitting defaults
|
||||
makeFlags = [ "-f" "Makefile.Debian" "VERSUFF=" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
cp pdftk $out/bin
|
||||
cp ../debian/pdftk.1 $out/share/man/man1
|
||||
cp ../pdftk.1 $out/share/man/man1
|
||||
'';
|
||||
|
||||
|
||||
meta = {
|
||||
description = "Simple tool for doing everyday things with PDF documents";
|
||||
homepage = http://www.accesspdf.com/pdftk/;
|
||||
homepage = "https://www.pdflabs.com/tools/pdftk-server/";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
maintainers = with stdenv.lib.maintainers; [viric raskin];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,205 +0,0 @@
|
||||
Taken from gentoo portage.
|
||||
|
||||
# posted to bug #251796 by <andrex@mail.ee> from Debian patches
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/bc/asn1/Makefile pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/bc/asn1/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/bc/asn1/Makefile 2008-12-23 00:04:52.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/Makefile pdftk-1.41/java_libs/com/lowagie/text/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/Makefile 2008-12-22 23:58:52.000000000 +0200
|
||||
@@ -25,13 +25,12 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
|
||||
-all : $(library) $(headers)
|
||||
+all : $(library) $(headers) $(classes)
|
||||
|
||||
$(library) : $(objects)
|
||||
$(AR) $(ARFLAGS) $(library) $(objects);
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/markup/Makefile pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/markup/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/markup/Makefile 2008-12-23 00:04:28.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/Makefile 2008-12-23 00:04:11.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/postscript/Makefile 2008-12-23 00:03:05.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/codec/wmf/Makefile 2008-12-23 00:03:29.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/fonts/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/fonts/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/fonts/Makefile 2008-12-23 00:01:33.000000000 +0200
|
||||
@@ -34,8 +34,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/Makefile pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/Makefile 2008-12-23 00:00:25.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfEncryption.java pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfEncryption.java
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfEncryption.java 2008-12-22 23:46:21.000000000 +0200
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
package com.lowagie.text.pdf;
|
||||
|
||||
-import java_local.security.MessageDigest; // ssteward
|
||||
+import java.security.MessageDigest;
|
||||
import com.lowagie.text.ExceptionConverter;
|
||||
|
||||
/**
|
||||
diff -u -r pdftk-1.41.orig/java_libs/com/lowagie/text/xml/xmp/Makefile pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/xml/xmp/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/xml/xmp/Makefile 2008-12-22 23:59:42.000000000 +0200
|
||||
@@ -25,8 +25,7 @@
|
||||
# the "$*" automatic variable, here
|
||||
#
|
||||
%.h : %.class
|
||||
- $(GCJH) --classpath="." $*;
|
||||
- $(RM) $<
|
||||
+ $(GCJH) --classpath="$(java_libs_root):." $*;
|
||||
|
||||
##
|
||||
# targets
|
||||
diff -u -r pdftk-1.41.orig/java_libs/Makefile pdftk-1.41/java_libs/Makefile
|
||||
--- pdftk-1.41.orig/java_libs/Makefile 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/java_libs/Makefile 2008-12-22 23:47:10.000000000 +0200
|
||||
@@ -13,13 +13,7 @@
|
||||
# append gcj flags
|
||||
export GCJFLAGS+= --encoding=UTF-8 --classpath="$(java_libs_root)"
|
||||
|
||||
-all : libgcj_local itext
|
||||
-
|
||||
-libgcj_local :
|
||||
- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security";
|
||||
- $(MAKE) -C "$(java_libs_root)/gnu_local/java/security/provider";
|
||||
- $(MAKE) -C "$(java_libs_root)/gnu/gcj/convert";
|
||||
- $(MAKE) -C "$(java_libs_root)/java_local/security";
|
||||
+all : itext
|
||||
|
||||
itext :
|
||||
$(MAKE) -C "$(java_libs_root)/com/lowagie/text";
|
||||
@@ -35,13 +29,7 @@
|
||||
$(MAKE) -C "$(java_libs_root)/com/lowagie/bc/asn1";
|
||||
$(MAKE) -C "$(java_libs_root)/com/lowagie/text/pdf/codec/postscript";
|
||||
|
||||
-clean : libgcj_local_clean itext_clean
|
||||
-
|
||||
-libgcj_local_clean :
|
||||
- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security" clean;
|
||||
- $(MAKE) -iC "$(java_libs_root)/gnu_local/java/security/provider" clean;
|
||||
- $(MAKE) -iC "$(java_libs_root)/gnu/gcj/convert" clean;
|
||||
- $(MAKE) -iC "$(java_libs_root)/java_local/security" clean;
|
||||
+clean : itext_clean
|
||||
|
||||
itext_clean :
|
||||
$(MAKE) -iC "$(java_libs_root)/com/lowagie/text" clean;
|
||||
diff -u -r pdftk-1.41.orig/pdftk/Makefile.Base pdftk-1.41/pdftk/Makefile.Base
|
||||
--- pdftk-1.41.orig/pdftk/Makefile.Base 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/pdftk/Makefile.Base 2008-12-22 23:44:33.000000000 +0200
|
||||
@@ -31,18 +31,6 @@
|
||||
afms= $(wildcard $(java_libs_root)/com/lowagie/text/pdf/fonts/*.afm)
|
||||
afm_objects= $(patsubst %.afm, %.o, $(afms))
|
||||
|
||||
-# older versions of libgcj might not have the MD5 algorithm,
|
||||
-# so I added it here; these *_local java files were grabbed from
|
||||
-# libgcj CVS on March 7, 2004; diffed September 5, 2006 w/ gcc 4.1.1
|
||||
-#
|
||||
-# gnu/gcj/convert/Input_UnicodeBig.java was grabbed March 26, 2004; diffed September 5, 2006 w/ gcc 4.1.1
|
||||
-#
|
||||
-libgcj_local_libs = \
|
||||
-$(java_libs_root)/java_local/security/security.a \
|
||||
-$(java_libs_root)/gnu_local/java/security/provider/provider.a \
|
||||
-$(java_libs_root)/gnu_local/java/security/security.a \
|
||||
-$(java_libs_root)/gnu/gcj/convert/convert.a
|
||||
-
|
||||
# this must already be set according to your platform Makefile;
|
||||
# we're just appending to it, here
|
||||
#
|
||||
diff -u -r pdftk-1.41.orig/pdftk/Makefile.Generic pdftk-1.41/pdftk/Makefile.Generic
|
||||
--- pdftk-1.41.orig/pdftk/Makefile.Generic 2008-12-22 23:43:29.000000000 +0200
|
||||
+++ pdftk-1.41/pdftk/Makefile.Generic 2008-12-23 00:06:24.000000000 +0200
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
# itext compiler flags
|
||||
# -O3 might cause pdftk to segfault on cat operation (gcc 3.4.4)
|
||||
-export GCJFLAGS= -O2
|
||||
+export GCJFLAGS= -O2 -w
|
||||
|
||||
#
|
||||
export ARFLAGS= rs
|
||||
@@ -1,18 +0,0 @@
|
||||
Taken from gentoo portage.
|
||||
|
||||
diff -NrU5 pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfDate.java pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfDate.java
|
||||
--- pdftk-1.41.orig/java_libs/com/lowagie/text/pdf/PdfDate.java 2009-05-18 20:49:13.000000000 -0600
|
||||
+++ pdftk-1.41/java_libs/com/lowagie/text/pdf/PdfDate.java 2009-05-18 20:51:36.000000000 -0600
|
||||
@@ -74,11 +74,11 @@
|
||||
public class PdfDate extends PdfString {
|
||||
|
||||
// ssteward; static builds of pdftk (Windows, gcc 3.3.1) would
|
||||
// omit this class because of its reference by reflection;
|
||||
// this treatment ensures that ld will include it
|
||||
- private static Class c1= gnu.java.locale.Calendar.class;
|
||||
+ private static Class c1= java.util.Calendar.class;
|
||||
|
||||
private static final int dateSpace[] = {Calendar.YEAR, 4, 0, Calendar.MONTH, 2, -1, Calendar.DAY_OF_MONTH, 2, 0,
|
||||
Calendar.HOUR_OF_DAY, 2, 0, Calendar.MINUTE, 2, 0, Calendar.SECOND, 2, 0};
|
||||
|
||||
// constructors
|
||||
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patchPhase = "substituteInPlace configure --replace which \"type -P\"";
|
||||
|
||||
postInstall = "rm $out/share/rubber/modules/etex.rub";
|
||||
|
||||
meta = {
|
||||
description = "Wrapper for LaTeX and friends";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation ( rec {
|
||||
pname = "auctex";
|
||||
version = "11.87";
|
||||
version = "11.88";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = {
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation ( rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/${pname}/${name}.tar.gz";
|
||||
sha256 = "1wjwpmvhpj8q0zd78lj7vyzqhx4rbdhkflslylkzgnw5wllp5mb3";
|
||||
sha256 = "0gy89nzha20p6m7kpv2nl1fnsfka9scc3mw1lz66fp6czganfs3i";
|
||||
};
|
||||
|
||||
buildInputs = [ emacs texLive ];
|
||||
|
||||
@@ -2,9 +2,9 @@ x@{builderDefsPackage
|
||||
, unzip, texLive, texLiveCMSuper, texLiveAggregationFun
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
["texLive" "texLiveCMSuper" "texLiveAggregationFun"];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
@@ -12,11 +12,11 @@ let
|
||||
++ [(a.texLiveAggregationFun {paths=[a.texLive a.texLiveCMSuper];})];
|
||||
sourceInfo = rec {
|
||||
baseName="disser";
|
||||
version="1.1.8";
|
||||
version="1.3.0";
|
||||
name="${baseName}-${version}";
|
||||
project="${baseName}";
|
||||
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.zip";
|
||||
hash="15509hfcvkk5kfcza149c74qpamwgw88dg0ra749axs8xj8qmlw8";
|
||||
hash="1iab3va6xw53l8xzmd83kbnzqah9f6imzzfd3c2054q53p0ndlim";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
@@ -36,7 +36,7 @@ rec {
|
||||
'';
|
||||
|
||||
makeFlags = ["DESTDIR=$out/share/texmf-dist"];
|
||||
|
||||
|
||||
meta = {
|
||||
description = "Russian PhD thesis LaTeX package";
|
||||
maintainers = with a.lib.maintainers;
|
||||
@@ -45,7 +45,7 @@ rec {
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux; # platform-independent
|
||||
license = "free"; # LaTeX Project Public License
|
||||
license = a.lib.licenses.free; # LaTeX Project Public License
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
@@ -53,4 +53,3 @@ rec {
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.latex2html.org/";
|
||||
description = "Convertor written in Perl that converts LaTeX documents to HTML";
|
||||
description = "Converter written in Perl that converts LaTeX documents to HTML";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pgf-1.18";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/pgf/pgf-1.18.tar.gz;
|
||||
sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv";
|
||||
@@ -13,4 +13,7 @@ stdenv.mkDerivation {
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
meta = {
|
||||
branch = "1";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,16 +2,19 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pgf-2.00";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/pgf/pgf-2.00.tar.gz;
|
||||
sha256 = "0j57niag4jb2k0iyrvjsannxljc3vkx0iag7zd35ilhiy4dh6264";
|
||||
};
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
meta = {
|
||||
branch = "2";
|
||||
};
|
||||
}
|
||||
|
||||
29
pkgs/tools/typesetting/tex/pgf/3.x.nix
Normal file
29
pkgs/tools/typesetting/tex/pgf/3.x.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pgf-3.00";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://downloads.sourceforge.net/project/pgf/pgf/version%203.0.0/pgf_3.0.0.tds.zip;
|
||||
sha256 = "0kj769hyp4z2zmdv3f8xv443wcfqn5nkkbzxzqgfxjizlz81aav7";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
# Multiple files problem
|
||||
unpackPhase = ''
|
||||
mkdir pgf
|
||||
cd pgf
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
meta = {
|
||||
branch = "3";
|
||||
};
|
||||
}
|
||||
13
pkgs/tools/typesetting/tex/tetex/clang.patch
Normal file
13
pkgs/tools/typesetting/tex/tetex/clang.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/texk/ps2pkm/type1.c b/texk/ps2pkm/type1.c
|
||||
index 027bf1f..4dcbad0 100644
|
||||
--- a/texk/ps2pkm/type1.c
|
||||
+++ b/texk/ps2pkm/type1.c
|
||||
@@ -800,7 +800,7 @@ static void PSFakePush(Num)
|
||||
static DOUBLE PSFakePop ()
|
||||
{
|
||||
if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
|
||||
- else Error0("PSFakePop : Stack empty\n");
|
||||
+ else { CC; IfTrace0(TRUE, "PSFakePop : Stack empty\n"); errflag = TRUE; return 0; }
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
||||
sed -i 57d texk/kpathsea/c-std.h
|
||||
'';
|
||||
|
||||
patches = [ ./environment.patch ./getline.patch ];
|
||||
patches = [ ./environment.patch ./getline.patch ./clang.patch ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
@@ -42,6 +42,7 @@ stdenv.mkDerivation {
|
||||
homepage = http://www.tug.org/tetex/;
|
||||
matintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.unix;
|
||||
hydraPlatforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
cd src
|
||||
for f in tex4ht t4ht htcmd ; do
|
||||
# -DENVFILE="$out/share/texmf-nix/tex4ht/base/unix/tex4ht.env"
|
||||
gcc -o $f $f.c -I${tetex}/include -L${tetex}/lib -DHAVE_DIRENT_H -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea
|
||||
''${CC:-gcc} -o $f $f.c -I${tetex}/include -L${tetex}/lib -DHAVE_DIRENT_H -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea
|
||||
done
|
||||
cd -
|
||||
'';
|
||||
@@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "http://tug.org/tex4ht/";
|
||||
description = "a system to convert (La)TeX documents to HTML and various other formats";
|
||||
license = "LPPL-1.2"; # LaTeX Project Public License
|
||||
license = stdenv.lib.licenses.lppl12;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -9,13 +9,15 @@ rec {
|
||||
phaseNames = [ "doAggregate" ];
|
||||
|
||||
doAggregate = fullDepEntry (''
|
||||
set +o pipefail
|
||||
|
||||
mkdir -p $out/bin
|
||||
for currentPath in ${lib.concatStringsSep " " buildInputs}; do
|
||||
echo Symlinking "$currentPath"
|
||||
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) -type d | while read; do
|
||||
REPLY="''${REPLY#$currentPath}"
|
||||
mkdir -p $out/"$REPLY"
|
||||
done
|
||||
done
|
||||
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) ! -type d | while read; do
|
||||
REPLY="''${REPLY#$currentPath}"
|
||||
ln -fs $currentPath/"$REPLY" $out/"$REPLY"
|
||||
|
||||
@@ -20,6 +20,6 @@ rec {
|
||||
|
||||
meta = {
|
||||
description = "Extra components for TeXLive: beamer class";
|
||||
maintainers = stdenv.lib.maintainers.mornfall;
|
||||
maintainers = [ stdenv.lib.maintainers.mornfall stdenv.lib.maintainers.jwiegley ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
args: with args;
|
||||
rec {
|
||||
name = "context-2009.11.26";
|
||||
name = "context-2014.05.21";
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/c/context/context_2009.11.26.orig.tar.gz;
|
||||
sha256 = "1qv3h97cyhjyvivs30fz9bqr77j348azagm7ijiyfrclvjjlwav9";
|
||||
url = mirror://debian/pool/main/c/context/context_2014.05.21.20140528.orig.tar.gz;
|
||||
sha256 = "1d744xrsjyl52x2xbh87k5ad826mzz8yqmhdznrmqrhk3qpjkzic";
|
||||
};
|
||||
|
||||
buildInputs = [texLive];
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
args : with args;
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/t/texlive-bin/texlive-bin_2014.20140528.34243.orig.tar.xz;
|
||||
sha256 = "0nh8hfayyf60nm4z8zyclrbc3792c62azgsvrwxnl28iq223200s";
|
||||
url = mirror://debian/pool/main/t/texlive-bin/texlive-bin_2014.20140926.35254.orig.tar.xz;
|
||||
sha256 = "1c39x059jhn5jsy6i9j3akjbkm1kmmzssy1jyi1aw20rl2vp86w3";
|
||||
};
|
||||
|
||||
texmfVersion = "2014.20140717";
|
||||
texmfVersion = "2014.20141024";
|
||||
texmfSrc = fetchurl {
|
||||
url = "mirror://debian/pool/main/t/texlive-base/texlive-base_${texmfVersion}.orig.tar.xz";
|
||||
sha256 = "08vhl6x742r8fl0gags2r6yspz8ynvz26vdjrqb4vyz5h7h3rzc9";
|
||||
sha256 = "1a6968myfi81s76n9p1qljgpwia9mi55pkkz1q6lbnwybf97akj1";
|
||||
};
|
||||
|
||||
langTexmfVersion = "2014.20140717";
|
||||
langTexmfVersion = "2014.20141024";
|
||||
langTexmfSrc = fetchurl {
|
||||
url = "mirror://debian/pool/main/t/texlive-lang/texlive-lang_${langTexmfVersion}.orig.tar.xz";
|
||||
sha256 = "1x9aa3v2cg4lcb58lwksnfdsgrhi0sg968pjqsbndmbxhr1msbp7";
|
||||
sha256 = "1ydz5m1v40n34g1l31r3vqg74rbr01x2f80drhz4igh21fm7zzpa";
|
||||
};
|
||||
|
||||
passthru = { inherit texmfSrc langTexmfSrc; };
|
||||
@@ -22,7 +22,6 @@ rec {
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
doMainBuild = fullDepEntry ( stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
export DYLD_LIBRARY_PATH="${poppler}/lib"
|
||||
'' + ''
|
||||
mkdir -p $out
|
||||
@@ -115,7 +114,8 @@ rec {
|
||||
buildInputs = [ zlib bzip2 ncurses libpng flex bison libX11.out libICE xproto
|
||||
freetype t1lib gd libXaw icu ghostscript ed libXt libXpm libXmu libXext
|
||||
xextproto perl libSM ruby expat curl libjpeg python fontconfig xz pkgconfig
|
||||
poppler libpaper graphite2 lesstif zziplib harfbuzz texinfo potrace ]
|
||||
poppler libpaper graphite2 lesstif zziplib harfbuzz texinfo potrace gmp mpfr
|
||||
xpdf ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ makeWrapper ]
|
||||
;
|
||||
|
||||
@@ -145,7 +145,7 @@ rec {
|
||||
description = "A TeX distribution";
|
||||
homepage = http://www.tug.org/texlive;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with maintainers; [ lovek323 raskin ];
|
||||
maintainers = with maintainers; [ lovek323 raskin jwiegley ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
args: with args;
|
||||
rec {
|
||||
name = "texlive-extra-2014";
|
||||
version = "2014.20140717";
|
||||
version = "2014.20141024";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/t/texlive-extra/texlive-extra_${version}.orig.tar.xz";
|
||||
sha256 = "1khxqdq9gagm6z8kbpjbraysfzibfjs2cgbrhjpncbd24sxpw13q";
|
||||
sha256 = "190p5v6madcgkxjmfal0pcylfz88zi6yaixky0vrcz1kbvxqlcb9";
|
||||
};
|
||||
|
||||
buildInputs = [texLive xz];
|
||||
@@ -18,7 +18,7 @@ rec {
|
||||
|
||||
meta = {
|
||||
description = "Extra components for TeXLive";
|
||||
maintainers = [ args.lib.maintainers.raskin ];
|
||||
maintainers = [ args.lib.maintainers.raskin args.lib.maintainers.jwiegley ];
|
||||
|
||||
# Actually, arch-independent..
|
||||
hydraPlatforms = [];
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
args: with args;
|
||||
rec {
|
||||
version = "0.7";
|
||||
version = "0.8";
|
||||
name = "moderntimeline-${version}";
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"http://www.ctan.org/tex-archive/macros/latex/contrib/moderntimeline.zip"
|
||||
"http://mirror.ctan.org/macros/latex/contrib/moderntimeline.zip"
|
||||
];
|
||||
sha256 = "0dxwybanj7qvbr69wgsllha1brq6qjsnjfff6nw4r3nijzvvh876";
|
||||
sha256 = "0y2m0qd0izrfjcwrmf3nvzkqmrhkdhzbv29s4c0knksdnfgcchc8";
|
||||
};
|
||||
|
||||
buildInputs = [texLive unzip];
|
||||
|
||||
@@ -1,27 +1,39 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt, popt
|
||||
, glib, pango, libgnomeprint, pangoxsl, gtk}:
|
||||
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt, popt, perl
|
||||
, glib, pango, pangoxsl, gtk, libtool, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xmlroff-${version}";
|
||||
version = "0.6.2";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
#name = "xmlroff-0.3.5";
|
||||
name = "xmlroff-0.3.98";
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/xmlroff/xmlroff-0.3.98.tar.gz;
|
||||
md5 = "6c1d05b6480e98870751bf9102ea68e2";
|
||||
url = "https://github.com/xmlroff/xmlroff/archive/v${version}.tar.gz";
|
||||
sha256 = "1sczn6xjczsfdxlbjqv4xqlki2a95y2s8ih2nl9v1vhqfk17fiww";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig
|
||||
autoconf
|
||||
automake
|
||||
libxml2
|
||||
libxslt
|
||||
libtool
|
||||
glib
|
||||
pango
|
||||
libgnomeprint
|
||||
pangoxsl
|
||||
gtk
|
||||
popt
|
||||
];
|
||||
|
||||
configureFlags = "--disable-pangoxsl";
|
||||
configureScript = "./autogen.sh";
|
||||
|
||||
configureFlags = "--disable-pangoxsl --disable-gp";
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace tools/insert-file-as-string.pl --replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||
substituteInPlace Makefile --replace "docs" ""
|
||||
'';
|
||||
|
||||
sourceRoot = "${name}/xmlroff/";
|
||||
|
||||
patches = [./xmlroff.patch];
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
diff -ruN xmlroff-0.3.98/Makefile.in xmlroff-0.3.98.new/Makefile.in
|
||||
--- xmlroff-0.3.98/Makefile.in 2006-05-30 17:46:37.000000000 +0200
|
||||
+++ xmlroff-0.3.98.new/Makefile.in 2006-06-18 13:47:37.000000000 +0200
|
||||
@@ -288,7 +288,7 @@
|
||||
subdirs = @subdirs@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
-SUBDIRS = pangoxsl libfo area fo datatype property expr util . examples docs
|
||||
+SUBDIRS = libfo area fo datatype property expr util . examples docs
|
||||
@PLATFORM_WIN32_TRUE@no_undefined = -no-undefined
|
||||
INCLUDES = \
|
||||
-DG_LOG_DOMAIN=\"libfo\" \
|
||||
--- xmlroff-0.6.2.orig/libfo/fo-libfo-basic.h
|
||||
+++ xmlroff-0.6.2/libfo/fo-libfo-basic.h
|
||||
@@ -11,8 +11,7 @@
|
||||
#define __FO_LIBFO_BASIC_H__
|
||||
|
||||
#include <stdio.h>
|
||||
-#include <glib/gtypes.h>
|
||||
-#include <glib/gerror.h>
|
||||
+#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
, bash, getopt, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xmlto-0.0.25";
|
||||
name = "xmlto-0.0.26";
|
||||
src = fetchurl {
|
||||
url = "http://fedorahosted.org/releases/x/m/xmlto/${name}.tar.bz2";
|
||||
sha256 = "0dp5nxq491gymq806za0dk4hngfmq65ysrqbn0ypajqbbl6vf71n";
|
||||
sha256 = "1v5mahfg5k9lh3anykl482xnrgxn36zlmqsgwahw29xwncprpd7g";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user