forked from mirrors/nixpkgs
ploticus: 2.41 → 2.42
65f1e8e048
bumped the version but forgot to update the tarball URL.
Unfortunately, this version does not seem to ship makefiles.
This commit is contained in:
parent
eea3344e91
commit
fbc4b41e69
|
@ -6,13 +6,13 @@
|
|||
, libpng
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ploticus";
|
||||
version = "2.42";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ploticus/ploticus/2.41/pl241src.tar.gz";
|
||||
sha256 = "1065r0nizjixi9sxxfxrnwg10r458i6fgsd23nrxa200rypvdk7c";
|
||||
url = "mirror://sourceforge/ploticus/ploticus/${version}/ploticus${lib.replaceStrings [ "." ] [ "" ] version}_src.tar.gz";
|
||||
sha256 = "PynkufQFIDqT7+yQDlgW2eG0OBghiB4kHAjKt91m4LA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -46,11 +46,7 @@ stdenv.mkDerivation {
|
|||
mkdir -p "$out/share/ploticus/prefabs"
|
||||
cp -rv prefabs/* "$out/share/ploticus/prefabs"
|
||||
|
||||
# Install the man pages.
|
||||
cp -rv man $out/share
|
||||
|
||||
# Add aliases for backwards compatibility.
|
||||
ln -s "pl.1" "$out/share/man/man1/ploticus.1"
|
||||
ln -s "pl" "$out/bin/ploticus"
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -133,6 +133,6 @@
|
||||
#### To set a hard-coded directory for prefabs files, uncomment & edit the following..
|
||||
#### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined.
|
||||
#### This option not available for win32
|
||||
-# PREFABS_DIR = "/usr/lib/ploticus/prefabs"
|
||||
+PREFABS_DIR = "$(out)/share/ploticus/prefabs"
|
||||
--- a/src/pl.h
|
||||
+++ b/src/pl.h
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "plg.h"
|
||||
|
||||
-#define PREFABS_DIR "" /* INSTALLERS can set this to a valid pathname, so that users don't need to set PLOTICUS_PREFABS env var */
|
||||
+#define PREFABS_DIR "@out@/share/ploticus/prefabs" /* INSTALLERS can set this to a valid pathname, so that users don't need to set PLOTICUS_PREFABS env var */
|
||||
|
||||
#define PLVERSION "2.42-May2013" /* see also the Copyright page, and page headers and footers */
|
||||
|
||||
|
|
Loading…
Reference in a new issue