about summary refs log tree commit diff
path: root/pkgs/applications/editors/xmlcopyeditor
diff options
context:
space:
mode:
authorJavier Candeira <github@hiperactivo.com>2018-11-19 02:03:38 +1100
committerRenaud <c0bw3b@users.noreply.github.com>2018-11-18 16:03:38 +0100
commit2c08fe582445c8aae8133f6d2ee13ac22abc174f (patch)
tree6dda9784b1af6ac15f9bdd7dac6dbb1036bbb1a2 /pkgs/applications/editors/xmlcopyeditor
parent66c8169b6f56adbab908ce01ab5af225621a58b8 (diff)
downloadnixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar.gz
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar.bz2
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar.lz
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar.xz
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.tar.zst
nixlib-2c08fe582445c8aae8133f6d2ee13ac22abc174f.zip
xmlcopyeditor: init at 1.2.1.3
* xmlcopyeditor: init at 1.2.1.3
(#38545)
Diffstat (limited to 'pkgs/applications/editors/xmlcopyeditor')
-rw-r--r--pkgs/applications/editors/xmlcopyeditor/default.nix28
-rw-r--r--pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch36
2 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/applications/editors/xmlcopyeditor/default.nix b/pkgs/applications/editors/xmlcopyeditor/default.nix
new file mode 100644
index 000000000000..229e37d0080a
--- /dev/null
+++ b/pkgs/applications/editors/xmlcopyeditor/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, aspell, boost, expat, expect, intltool, libxml2, libxslt, pcre, wxGTK, xercesc }:
+
+stdenv.mkDerivation rec {
+  name = "xmlcopyeditor-${version}";
+  version = "1.2.1.3";
+
+  src = fetchurl {
+    name = "${name}.tar.gz";
+    url = "mirror://sourceforge/xml-copy-editor/${name}.tar.gz";
+    sha256 = "0bwxn89600jbrkvlwyawgc0c0qqxpl453mbgcb9qbbxl8984ns4v";
+  };
+
+  patches = [ ./xmlcopyeditor.patch ];
+  CPLUS_INCLUDE_PATH = "${libxml2.dev}/include/libxml2";
+
+  nativeBuildInputs = [ intltool ];
+  buildInputs = [ aspell boost expat libxml2 libxslt pcre wxGTK xercesc ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "A fast, free, validating XML editor";
+    homepage = http://xml-copy-editor.sourceforge.net/;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ candeira ];
+  };
+}
diff --git a/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch b/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch
new file mode 100644
index 000000000000..253b9ce49ba8
--- /dev/null
+++ b/pkgs/applications/editors/xmlcopyeditor/xmlcopyeditor.patch
@@ -0,0 +1,36 @@
+From 626c385ba141c6abcff01bef4451fcad062d232c Mon Sep 17 00:00:00 2001
+From: Javier Candeira <javier@candeira.com>
+Date: Sat, 7 Apr 2018 20:21:45 +1000
+Subject: [PATCH] nixpckgs patches
+
+---
+ src/Makefile.in | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/Makefile.in b/src/Makefile.in
+index e75918f..e04703b 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -283,8 +283,8 @@ top_srcdir = @top_srcdir@
+ # these are the headers for your project
+ noinst_HEADERS = $(srcdir)/*.h
+ xmlcopyeditordir = ${prefix}/share/xmlcopyeditor
+-pixmapdir = /usr/share/pixmaps
+-applicationsdir = /usr/share/applications
++pixmapdir = ${prefix}/share/pixmaps
++applicationsdir = ${prefix}/share/applications
+ 
+ # the application source, library search path, and link libraries
+ xmlcopyeditor_SOURCES = aboutdialog.cpp associatedialog.cpp binaryfile.cpp \
+@@ -357,7 +357,7 @@ EXTRA_DIST = \
+ 	$(srcdir)/xmlcopyeditor.rc \
+ 	$(srcdir)/xmlschemaparser.cpp
+ 
+-AM_CPPFLAGS = -I/usr/include/libxml2 $(ENCHANT_CFLAGS) $(GTK_CFLAGS)
++AM_CPPFLAGS = -I$(CPLUS_INCLUDE_PATH) $(ENCHANT_CFLAGS) $(GTK_CFLAGS)
+ all: all-am
+ 
+ .SUFFIXES:
+-- 
+2.16.2
+