pdf2xml: drop

It is unmaintained since 2018.
This commit is contained in:
Anderson Torres 2023-10-22 08:00:49 -03:00
parent 49daabdb77
commit 070b5326de
5 changed files with 1 additions and 92 deletions

View File

@ -1,41 +0,0 @@
{lib, stdenv, fetchurl, libxpdf, libxml2}:
stdenv.mkDerivation {
name = "pdf2xml";
src = fetchurl {
url = "http://tarballs.nixos.org/pdf2xml.tar.gz";
sha256 = "04rl7ppxqgnvxvvws669cxp478lnrdmiqj0g3m4p69bawfjc4z3w";
};
sourceRoot = "pdf2xml/pdf2xml";
buildInputs = [libxml2 libxpdf];
patches = [./pdf2xml.patch];
hardeningDisable = [ "format" ];
preBuild = ''
cp Makefile.linux Makefile
sed -i 's|/usr/include/libxml2|${libxml2.dev}/include/libxml2|' Makefile
sed -i 's|-lxml2|-lxml2 -L${libxml2.out}/lib|' Makefile
sed -i 's|XPDF = xpdf_3.01|XPDF = ${libxpdf}/lib|' Makefile
mkdir exe
buildFlags+=" CXX=$CXX"
'';
installPhase = ''
mkdir -p $out/bin
cp exe/* $out/bin
'';
meta = with lib; {
description = "PDF to XML converter";
homepage = "https://sourceforge.net/projects/pdf2xml/";
platforms = platforms.unix;
license = licenses.gpl2;
};
}

View File

@ -1,48 +0,0 @@
diff -rc pdf2xml/pdf2xml/Makefile.linux pdf2xml-new/pdf2xml/Makefile.linux
*** pdf2xml/Makefile.linux 2008-02-07 17:43:10.000000000 +0100
--- pdf2xml-new/Makefile.linux 2010-08-25 15:41:23.000000000 +0200
***************
*** 30,36 ****
# Executable name
! PDFTOXMLEXE=pdftoxml.exe
# Main target
all: pdftoxmlEXE
--- 30,36 ----
# Executable name
! PDFTOXMLEXE=pdftoxml
# Main target
all: pdftoxmlEXE
diff -rc pdf2xml/pdf2xml/src/pdftoxml.cc pdf2xml-new/pdf2xml/src/pdftoxml.cc
*** pdf2xml/src/pdftoxml.cc 2010-04-26 10:58:01.000000000 +0200
--- pdf2xml-new/src/pdftoxml.cc 2010-08-25 15:36:15.000000000 +0200
***************
*** 11,21 ****
//
//===========================================================================
#include <aconf.h>
- #include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
! #include <string.h>
#include "parseargs.h"
#include "GString.h"
#include "gmem.h"
--- 11,21 ----
//
//===========================================================================
+ #include <string.h>
#include <aconf.h>
#include <stdlib.h>
#include <stddef.h>
! #include <cstdio>
#include "parseargs.h"
#include "GString.h"
#include "gmem.h"

View File

@ -652,6 +652,7 @@ mapAliases ({
paper-note = throw "paper-note has been removed: abandoned by upstream"; # Added 2023-05-03
parity = openethereum; # Added 2020-08-01
pash = throw "'pash' has been removed: abandoned by upstream. Use 'powershell' instead"; # Added 2023-09-16
pdf2xml = throw "'pdf2xml' was removed: abandoned for years."; # Added 2023-10-22
peach = asouldocs; # Added 2022-08-28
pentablet-driver = xp-pen-g430-driver; # Added 2022-06-23
perldevel = throw "'perldevel' has been dropped due to lack of updates in nixpkgs and lack of consistent support for devel versions by 'perl-cross' releases, use 'perl' instead";

View File

@ -24486,8 +24486,6 @@ with pkgs;
pdal = callPackage ../development/libraries/pdal { };
pdf2xml = callPackage ../development/libraries/pdf2xml { };
pdfhummus = libsForQt5.callPackage ../development/libraries/pdfhummus { };
pe-parse = callPackage ../development/libraries/pe-parse { };

View File

@ -107,7 +107,6 @@ with import ./release-lib.nix { inherit supportedSystems nixpkgsArgs; };
openssl = all;
pan = linux;
pciutils = linux;
pdf2xml = all;
perl = all;
pkg-config = all;
pmccabe = linux;