mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
pkgs/tools/typesetting/asciidoc: updated to version 8.5.1
New asciidoc versions do have a proper configure script. Using that simplifies the build instructions a bit. svn path=/nixpkgs/trunk/; revision=18076
This commit is contained in:
parent
990d7c05e7
commit
9e98a71eaa
@ -1,47 +1,20 @@
|
|||||||
{ fetchurl, stdenv, python, bash }:
|
{ fetchurl, stdenv, python }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "asciidoc-8.2.5";
|
name = "asciidoc-8.5.1";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/asciidoc/${name}.tar.gz";
|
url = "mirror://sourceforge/asciidoc/${name}.tar.gz";
|
||||||
sha256 = "1aqmii7qyhnn8pby5rlyrc3sl08br35xsdn7wpx2cy03p46pqr7a";
|
sha256 = "ccb02db04e6e6eff2149435516e88557ca30c85bc4467420f40c895e25f17a20";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
cat "asciidoc.py" | \
|
for n in asciidoc.py a2x.py; do
|
||||||
sed -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g ;
|
sed -i -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g" "$n"
|
||||||
s,^CONF_DIR = .*$,CONF_DIR = \"$out/etc/asciidoc\",g" \
|
chmod +x "$n"
|
||||||
> ,,tmp && mv ,,tmp asciidoc.py && chmod +x asciidoc.py
|
done
|
||||||
cat "a2x" | \
|
|
||||||
sed -e "s,^#!/usr/bin/env bash,#!${bash},g ;
|
|
||||||
s,^CONF_DIR=.*$,CONF_DIR=\"$out/etc/asciidoc\",g" \
|
|
||||||
> ,,tmp && mv ,,tmp a2x && chmod +x a2x
|
|
||||||
|
|
||||||
cat "install.sh" | \
|
|
||||||
sed -e "s,^CONFDIR=.*,CONFDIR=$out/etc/asciidoc,g" \
|
|
||||||
> ,,tmp && mv ,,tmp install.sh
|
|
||||||
cat "install.sh" | \
|
|
||||||
sed -e "s,^BINDIR=.*,BINDIR=$out/bin,g" \
|
|
||||||
> ,,tmp && mv ,,tmp install.sh
|
|
||||||
cat "install.sh" | \
|
|
||||||
sed -e "s,^MANDIR=.*,MANDIR=$out/man,g" \
|
|
||||||
> ,,tmp && mv ,,tmp install.sh
|
|
||||||
cat "install.sh" | \
|
|
||||||
sed -e "s,^VIM_CONFDIR=.*,VIM_CONFDIR=$out/etc/vim,g" \
|
|
||||||
> ,,tmp && mv ,,tmp install.sh
|
|
||||||
|
|
||||||
chmod +x install.sh
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
configurePhase = ''true'';
|
|
||||||
installPhase = ''
|
|
||||||
ensureDir $out/bin
|
|
||||||
ensureDir $out/etc
|
|
||||||
ensureDir $out/etc/vim
|
|
||||||
ensureDir $out/man
|
|
||||||
./install.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -51,4 +24,4 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://www.methods.co.nz/asciidoc/;
|
homepage = http://www.methods.co.nz/asciidoc/;
|
||||||
license = "GPLv2+";
|
license = "GPLv2+";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -193,12 +193,12 @@ let
|
|||||||
# additionalBuildInputs = d.override ( args : args // { buildInputs = args.buildInputs ++ [ additional ]; } )
|
# additionalBuildInputs = d.override ( args : args // { buildInputs = args.buildInputs ++ [ additional ]; } )
|
||||||
deepOverride = newArgs: name: x: if builtins.isAttrs x then (
|
deepOverride = newArgs: name: x: if builtins.isAttrs x then (
|
||||||
if x ? deepOverride then (x.deepOverride newArgs) else
|
if x ? deepOverride then (x.deepOverride newArgs) else
|
||||||
if x ? override then (x.override newArgs) else
|
if x ? override then (x.override newArgs) else
|
||||||
x) else x;
|
x) else x;
|
||||||
makeOverridable = f: origArgs: f origArgs //
|
makeOverridable = f: origArgs: f origArgs //
|
||||||
{ override = newArgs:
|
{ override = newArgs:
|
||||||
makeOverridable f (origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs));
|
makeOverridable f (origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs));
|
||||||
deepOverride = newArgs:
|
deepOverride = newArgs:
|
||||||
makeOverridable f ((lib.mapAttrs (deepOverride newArgs) origArgs) // newArgs);
|
makeOverridable f ((lib.mapAttrs (deepOverride newArgs) origArgs) // newArgs);
|
||||||
origArgs = origArgs;
|
origArgs = origArgs;
|
||||||
};
|
};
|
||||||
@ -500,7 +500,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
asciidoc = import ../tools/typesetting/asciidoc {
|
asciidoc = import ../tools/typesetting/asciidoc {
|
||||||
inherit fetchurl stdenv bash python;
|
inherit fetchurl stdenv python;
|
||||||
};
|
};
|
||||||
|
|
||||||
bibtextools = import ../tools/typesetting/bibtex-tools {
|
bibtextools = import ../tools/typesetting/bibtex-tools {
|
||||||
@ -3256,8 +3256,8 @@ let
|
|||||||
inherit (xlibs) libX11 libXext xproto xextproto;
|
inherit (xlibs) libX11 libXext xproto xextproto;
|
||||||
};
|
};
|
||||||
|
|
||||||
enchant = makeOverridable
|
enchant = makeOverridable
|
||||||
(selectVersion ../development/libraries/enchant "1.3.0")
|
(selectVersion ../development/libraries/enchant "1.3.0")
|
||||||
{
|
{
|
||||||
inherit fetchurl stdenv aspell pkgconfig;
|
inherit fetchurl stdenv aspell pkgconfig;
|
||||||
inherit (gnome) glib;
|
inherit (gnome) glib;
|
||||||
@ -3568,7 +3568,7 @@ let
|
|||||||
gtk = import ../development/libraries/gtk+/1.2.x.nix {
|
gtk = import ../development/libraries/gtk+/1.2.x.nix {
|
||||||
inherit fetchurl stdenv x11 glib;
|
inherit fetchurl stdenv x11 glib;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkLibs216 = rec {
|
gtkLibs216 = rec {
|
||||||
@ -3597,11 +3597,11 @@ let
|
|||||||
inherit fetchurl stdenv pkgconfig perl jasper x11 glib atk pango
|
inherit fetchurl stdenv pkgconfig perl jasper x11 glib atk pango
|
||||||
libtiff libjpeg libpng cairo xlibs;
|
libtiff libjpeg libpng cairo xlibs;
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkmm = import ../development/libraries/gtkmm/2.14.x.nix {
|
gtkmm = import ../development/libraries/gtkmm/2.14.x.nix {
|
||||||
inherit fetchurl stdenv pkgconfig gtk atk glibmm cairomm pangomm;
|
inherit fetchurl stdenv pkgconfig gtk atk glibmm cairomm pangomm;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkLibs218 = rec {
|
gtkLibs218 = rec {
|
||||||
@ -3630,11 +3630,11 @@ let
|
|||||||
inherit fetchurl stdenv pkgconfig perl jasper glib atk pango
|
inherit fetchurl stdenv pkgconfig perl jasper glib atk pango
|
||||||
libtiff libjpeg libpng cairo xlibs cups openssl;
|
libtiff libjpeg libpng cairo xlibs cups openssl;
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkmm = import ../development/libraries/gtkmm/2.18.x.nix {
|
gtkmm = import ../development/libraries/gtkmm/2.18.x.nix {
|
||||||
inherit fetchurl stdenv pkgconfig gtk atk glibmm cairomm pangomm;
|
inherit fetchurl stdenv pkgconfig gtk atk glibmm cairomm pangomm;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtkmozembedsharp = import ../development/libraries/gtkmozembed-sharp {
|
gtkmozembedsharp = import ../development/libraries/gtkmozembed-sharp {
|
||||||
@ -3722,11 +3722,11 @@ let
|
|||||||
jasper = import ../development/libraries/jasper {
|
jasper = import ../development/libraries/jasper {
|
||||||
inherit fetchurl stdenv unzip xlibs libjpeg;
|
inherit fetchurl stdenv unzip xlibs libjpeg;
|
||||||
};
|
};
|
||||||
|
|
||||||
jetty_gwt = import ../development/libraries/java/jetty-gwt {
|
jetty_gwt = import ../development/libraries/java/jetty-gwt {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
};
|
};
|
||||||
|
|
||||||
jetty_util = import ../development/libraries/java/jetty-util {
|
jetty_util = import ../development/libraries/java/jetty-util {
|
||||||
inherit stdenv fetchurl;
|
inherit stdenv fetchurl;
|
||||||
};
|
};
|
||||||
@ -4575,7 +4575,7 @@ let
|
|||||||
inherit fetchurl stdenv cmake unzip libtiff expat zlib libpng libjpeg;
|
inherit fetchurl stdenv cmake unzip libtiff expat zlib libpng libjpeg;
|
||||||
};
|
};
|
||||||
|
|
||||||
webkit = builderDefsPackage (import ../development/libraries/webkit)
|
webkit = builderDefsPackage (import ../development/libraries/webkit)
|
||||||
(lib.mapAttrs (deepOverride
|
(lib.mapAttrs (deepOverride
|
||||||
{
|
{
|
||||||
# It needs fresh GTK
|
# It needs fresh GTK
|
||||||
@ -5671,7 +5671,7 @@ let
|
|||||||
inherit (xlibs) xproto libX11 libXext libXcursor;
|
inherit (xlibs) xproto libX11 libXext libXcursor;
|
||||||
inherit (gnome) libIDL;
|
inherit (gnome) libIDL;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualboxGuestAdditions = import ../applications/virtualization/virtualbox/guest-additions {
|
virtualboxGuestAdditions = import ../applications/virtualization/virtualbox/guest-additions {
|
||||||
inherit stdenv fetchurl lib patchelf cdrkit kernel;
|
inherit stdenv fetchurl lib patchelf cdrkit kernel;
|
||||||
inherit (xlibs) libX11 libXt libXext libXmu libXcomposite libXfixes;
|
inherit (xlibs) libX11 libXt libXext libXmu libXcomposite libXfixes;
|
||||||
@ -7049,7 +7049,7 @@ let
|
|||||||
|
|
||||||
ikiwiki = makeOverridable (import ../applications/misc/ikiwiki) {
|
ikiwiki = makeOverridable (import ../applications/misc/ikiwiki) {
|
||||||
inherit fetchurl stdenv perl gettext makeWrapper lib;
|
inherit fetchurl stdenv perl gettext makeWrapper lib;
|
||||||
inherit (perlPackages) TextMarkdown URI HTMLParser HTMLScrubber
|
inherit (perlPackages) TextMarkdown URI HTMLParser HTMLScrubber
|
||||||
HTMLTemplate TimeDate CGISession DBFile CGIFormBuilder;
|
HTMLTemplate TimeDate CGISession DBFile CGIFormBuilder;
|
||||||
inherit git; # The RCS should be optional
|
inherit git; # The RCS should be optional
|
||||||
monotone = null;
|
monotone = null;
|
||||||
@ -8166,13 +8166,13 @@ let
|
|||||||
gnome28 = import ../desktops/gnome-2.28 (pkgs// {
|
gnome28 = import ../desktops/gnome-2.28 (pkgs// {
|
||||||
gtkLibs = gtkLibs218;
|
gtkLibs = gtkLibs218;
|
||||||
dbus_glib = dbus_glib.override {
|
dbus_glib = dbus_glib.override {
|
||||||
inherit (gtkLibs218) glib;
|
inherit (gtkLibs218) glib;
|
||||||
};
|
};
|
||||||
policykit = policykit.deepOverride {
|
policykit = policykit.deepOverride {
|
||||||
inherit (gtkLibs218) glib;
|
inherit (gtkLibs218) glib;
|
||||||
};
|
};
|
||||||
hal = hal.deepOverride {
|
hal = hal.deepOverride {
|
||||||
inherit (gtkLibs218) glib;
|
inherit (gtkLibs218) glib;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user