Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=38a2d4329e459dee1a741147a13d181866ef0d97

commit 38a2d4329e459dee1a741147a13d181866ef0d97
Author: crazy <[email protected]>
Date:   Mon May 30 12:07:43 2016 +0200

pstotext-1.9-1-x86_64 - removed - not touched from back 2006

diff --git a/source/apps-extra/pstotext/FrugalBuild 
b/source/apps-extra/pstotext/FrugalBuild
deleted file mode 100644
index f1121a5..0000000
--- a/source/apps-extra/pstotext/FrugalBuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Compiling Time: 0.01 SBU
-# Maintainer: crazy <[email protected]>
-
-
-pkgname=pstotext
-pkgver=1.9
-pkgrel=1
-pkgdesc="Extract ASCII text from a PostScript or PDF files."
-url="http://www.cs.wisc.edu/~ghost/doc/pstotext.htm";
-depends=('glibc')
-groups=('apps-extra')
-archs=('i686' 'x86_64')
-up2date="lynx -dump $url|grep -m1 '.tar.gz'|sed 's/.*-\(.*\).t.*/\1/'"
-source=(ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/$pkgname-$pkgver.tar.gz
 \
-        pstotext-1.9-quote-chars-fix.patch)
-sha1sums=('d84732ba42301a8905f6b14f37d8b57ff8b42a3e' \
-          'ca792c059eb48d8206abd22fb22c91f973f9af8b')
-
-build()
-{
-       Fcd
-       Fpatchall
-       Fsed '$(CC) -c' '$(CC) -c ${CFLAGS}' Makefile
-       make || Fdie
-       Fexerel /usr/bin/$pkgname
-       Ffilerel /usr/share/man/man1/$pkgname.1
-}
-
-
-# optimization OK
diff --git a/source/apps-extra/pstotext/pstotext-1.9-quote-chars-fix.patch 
b/source/apps-extra/pstotext/pstotext-1.9-quote-chars-fix.patch
deleted file mode 100644
index 177d372..0000000
--- a/source/apps-extra/pstotext/pstotext-1.9-quote-chars-fix.patch
+++ /dev/null
@@ -1,136 +0,0 @@
-diff -urN pstotext-1.9.orig/main.c pstotext-1.9/main.c
---- pstotext-1.9.orig/main.c   2004-01-09 11:17:38.000000000 +0100
-+++ pstotext-1.9/main.c        2006-05-19 11:43:52.000000000 +0200
-@@ -126,12 +126,14 @@
- static int cleanup(void) {
-   int gsstatus, status = 0;
-   pstotextExit(instance);
--  if (gs!=NULL) {
- #ifdef VMS
-+  if (gs!=NULL) {
-     gsstatus = fclose(gs);
-+  }
- #else
--    gsstatus = pclose(gs);
-+  waitpid(-1, &gsstatus, 0);
- #endif
-+  if (gsstatus) {
-     if (WIFEXITED(gsstatus)) {
-       if (WEXITSTATUS(gsstatus)!=0) status = 3;
-       else if (WIFSIGNALED(gsstatus)) status = 4;
-@@ -166,8 +168,13 @@
-
- static int do_it(char *path) {
-   /* If "path" is NULL, then "stdin" should be processed. */
--  char *gs_cmdline;
--  char *input;
-+  char *gs_argv[32];
-+  int gs_argc=0;
-+#ifdef DEBUG
-+  int i;
-+#endif
-+  int fd[2];
-+  pid_t p;
-   int status;
-   char norotate[] = "";
-   FILE *fileout;
-@@ -201,47 +208,31 @@
-     exit(1);
-   }
-
--  if (path==NULL) {
--    input = (char*)malloc(2);
--    if (input == NULL) {
--      fprintf(stderr,"No memory available\n");
--      cleanup();
--      exit(1);
--    }
--    strcpy(input, "-");
--  } else {
--    input = (char*)malloc(strlen(path) + 6);
--    if (input == NULL) {
--      fprintf(stderr,"No memory available\n");
--      cleanup();
--      exit(1);
--    }
--    strcpy(input, "-- '"); strcat(input, path); strcat(input, "'");
-+  gs_argv[gs_argc++] = "gs";
-+  gs_argv[gs_argc++] = "-r72";
-+  gs_argv[gs_argc++] = "-dNODISPLAY";
-+  gs_argv[gs_argc++] = "-dFIXEDMEDIA";
-+  gs_argv[gs_argc++] = "-dDELAYBIND";
-+  gs_argv[gs_argc++] = "-dWRITESYSTEMDICT";
-+  if (!debug) {
-+    gs_argv[gs_argc++] = "-q";
-+  }
-+  gs_argv[gs_argc++] = "-dNOPAUSE";
-+  gs_argv[gs_argc++] = "-dSAFER";
-+  if (rotate_path && strcmp(rotate_path, "")) {
-+    gs_argv[gs_argc++] = rotate_path;
-+  }
-+  if (ocr_path && strcmp(ocr_path, "")) {
-+    gs_argv[gs_argc++] = ocr_path;
-+  }
-+  if (path == NULL ) {
-+    gs_argv[gs_argc++] = "-";
-+  }
-+  else {
-+    gs_argv[gs_argc++] = "--";
-+    gs_argv[gs_argc++] = path;
-   }
--
--  gs_cmdline = (char*)malloc(strlen(gs_cmd)+strlen(rotate_path)+
--      strlen(ocr_path) + strlen(input) + 128);
--
--  if (gs_cmdline == NULL) {
--    fprintf(stderr, "No memory available\n");
--    cleanup();
--    exit(1);
--  }
--
--  sprintf(
--    gs_cmdline,
--#ifdef VMS
--    "%s -r72 \"-dNODISPLAY\" \"-dFIXEDMEDIA\" \"-dDELAYBIND\" 
\"-dWRITESYSTEMDICT\" %s \"-dNOPAUSE\" %s %s %s",
--#else
--    "%s -r72 -dNODISPLAY -dFIXEDMEDIA -dDELAYBIND -dWRITESYSTEMDICT %s 
-dNOPAUSE %s %s %s",
--#endif
--    gs_cmd,
--    (debug ? "" : "-q"),
--    rotate_path,
--    ocr_path,
--    input
--    );
--  if (debug) fprintf(stderr, "%s\n", gs_cmdline);
-+  gs_argv[gs_argc++] = NULL;
- #ifdef VMS
-   cmdfile = tempnam("SYS$SCRATCH:","PS2TGS");
-   gsoutfile = tempnam("SYS$SCRATCH:","GSRES");
-@@ -259,8 +250,25 @@
-       exit(1);
-   }
- #else
--  gs = popen(gs_cmdline, "r");
--  if (gs==0) {perror(cmd); exit(1);}
-+  if (pipe(fd)) {
-+      perror("pipe failed: "); exit(1);
-+  };
-+  p = fork();
-+  if (p == -1) {
-+      perror("fork failed: "); exit(1);
-+  }
-+  if (p == 0) { /* child */
-+    close(fd[0]);
-+    dup2(fd[1], 1); /* Redirect stdout into pipe to parent */
-+    execvp("/usr/bin/gs", gs_argv);
-+    perror("execvp: "); status=cleanup(); exit(1);
-+  } else { /* parent */
-+    close(fd[1]);
-+    gs = fdopen(fd[0], "r");
-+    if (gs == NULL) {
-+      perror("fdopen: "); status=cleanup(); exit(1);
-+    }
-+  }
- #endif
-   status = pstotextInit(&instance);
-   if (status!=0) {
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to