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 {
|
||||
name = "asciidoc-8.2.5";
|
||||
name = "asciidoc-8.5.1";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/asciidoc/${name}.tar.gz";
|
||||
sha256 = "1aqmii7qyhnn8pby5rlyrc3sl08br35xsdn7wpx2cy03p46pqr7a";
|
||||
sha256 = "ccb02db04e6e6eff2149435516e88557ca30c85bc4467420f40c895e25f17a20";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
cat "asciidoc.py" | \
|
||||
sed -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g ;
|
||||
s,^CONF_DIR = .*$,CONF_DIR = \"$out/etc/asciidoc\",g" \
|
||||
> ,,tmp && mv ,,tmp asciidoc.py && chmod +x asciidoc.py
|
||||
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
|
||||
for n in asciidoc.py a2x.py; do
|
||||
sed -i -e "s,^#!/usr/bin/env python,#!${python}/bin/python,g" "$n"
|
||||
chmod +x "$n"
|
||||
done
|
||||
'';
|
||||
|
||||
buildInputs = [ python ];
|
||||
configurePhase = ''true'';
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
ensureDir $out/etc
|
||||
ensureDir $out/etc/vim
|
||||
ensureDir $out/man
|
||||
./install.sh
|
||||
'';
|
||||
|
||||
meta = {
|
||||
longDescription = ''
|
||||
|
@ -500,7 +500,7 @@ let
|
||||
};
|
||||
|
||||
asciidoc = import ../tools/typesetting/asciidoc {
|
||||
inherit fetchurl stdenv bash python;
|
||||
inherit fetchurl stdenv python;
|
||||
};
|
||||
|
||||
bibtextools = import ../tools/typesetting/bibtex-tools {
|
||||
|
Loading…
Reference in New Issue
Block a user