OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web openpkg$ Date:   20-Aug-2003 09:01:42
  Branch: HEAD                             Handle: 2003082008013803

  Modified files:
    openpkg-re/vcheck       vc.scribus
    openpkg-src/scribus     scribus.patch scribus.spec
    openpkg-web             news.txt

  Log:
    Patch to use correct types on linux, reduce exixting patch with a
    shtool subst, and correct distribution tag to EVAL because the source
    is flawed and not the packaging

  Summary:
    Revision    Changes     Path
    1.10        +1  -1      openpkg-re/vcheck/vc.scribus
    1.7         +11 -339    openpkg-src/scribus/scribus.patch
    1.17        +6  -5      openpkg-src/scribus/scribus.spec
    1.6242      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.scribus
  ============================================================================
  $ cvs diff -u -r1.9 -r1.10 vc.scribus
  --- openpkg-re/vcheck/vc.scribus      11 Aug 2003 10:17:26 -0000      1.9
  +++ openpkg-re/vcheck/vc.scribus      20 Aug 2003 07:01:38 -0000      1.10
  @@ -4,6 +4,6 @@
   prog scribus = {
     version   = 1.0.1
     url       = http://web2.altmuehlnet.de/fschmid/download.html
  -  regex     = scribus-(\d+\.\d+(RC\d+|(\.\d+)?(\.\d+)?)?).tar.gz
  +  regex     = scribus-(\d+\.\d+\.\d+).tar.gz
   }
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/scribus/scribus.patch
  ============================================================================
  $ cvs diff -u -r1.6 -r1.7 scribus.patch
  --- openpkg-src/scribus/scribus.patch 15 Jul 2003 09:35:44 -0000      1.6
  +++ openpkg-src/scribus/scribus.patch 20 Aug 2003 07:01:40 -0000      1.7
  @@ -63,345 +63,17 @@
        typedef QString (*sdem0)();
        typedef int (*sdem1)();
        typedef void (*sdem2)(QWidget *d, ScribusApp *plug);
  ---- scribus/scfonts_ttf.cpp  Fri Apr 11 23:11:08 2003
  -+++ scribus/scfonts_ttf.cpp  Wed May 14 10:25:46 2003
  -@@ -22,7 +22,7 @@
  +--- scribus/scfonts_ttftypes.h.orig  Tue Aug 19 16:07:30 2003
  ++++ scribus/scfonts_ttftypes.h       Tue Aug 19 16:04:30 2003
  +@@ -7,6 +7,11 @@
  +   typedef unsigned int u_int32_t;
    #endif
  - // #define doPost
    
  --QString showTag(u_int32_t tag)
  -+QString showTag(uint32_t tag)
  - {
  -     char tmp[5];
  -     tmp[0]=(tag>>24) & 255;
  -@@ -80,8 +80,8 @@
  -             SCFonts_Encoding OwnEncoding;
  -             SCFonts_Encoding PostEncoding;
  -             sc_TTFontError error;
  --            u_int16_t readBEUInt16();
  --            u_int32_t readBEUInt32();
  -+            uint16_t readBEUInt16();
  -+            uint32_t readBEUInt32();
  - 
  -             bool readHeaders();
  -             bool readOffsetTable();
  -@@ -120,7 +120,7 @@
  -             bool GlyphNamesRead;
  - #endif
  - 
  --            QArray<u_int32_t> Loca;
  -+            QArray<uint32_t> Loca;
  -             bool LocaRead;
  - 
  -             QArray<tt_longHorMetric> Hmtx;
  -@@ -254,9 +254,9 @@
  - }
  - 
  - 
  --u_int16_t sc_TTFont::readBEUInt16()
  -+uint16_t sc_TTFont::readBEUInt16()
  - {
  --    u_int16_t result=0;
  -+    uint16_t result=0;
  -     unsigned char tmp[2];
  -     char *t=reinterpret_cast<char *>(tmp);
  -     if(file.readBlock(t,2)==2)
  -@@ -267,9 +267,9 @@
  - }
  - 
  - 
  --u_int32_t sc_TTFont::readBEUInt32()
  -+uint32_t sc_TTFont::readBEUInt32()
  - {
  --    u_int32_t result=0;
  -+    uint32_t result=0;
  -     unsigned char tmp[4];
  -     char *t=reinterpret_cast<char *>(tmp);
  -     if(file.readBlock(t,4)==4)
  -@@ -456,7 +456,7 @@
  -             return(true);
  -     struct {
  -     fxp16_16_t version;
  --    u_int16_t nglyphs;
  -+    uint16_t nglyphs;
  -   } data;
  -     file.at(entries[o_maxp].offset);
  - 
  -@@ -561,7 +561,7 @@
  -                             error=sc_TTFBadFile;
  -                             return(false);
  -                     }
  --                    u_int16_t nglyphsps = readBEUInt16();
  -+                    uint16_t nglyphsps = readBEUInt16();
  -                     if(nglyphsps!=nGlyphs)
  -                             std::cout << "Warning: nGlyphs should be consistent 
between head and post" << endl;
  - 
  -@@ -765,9 +765,9 @@
  - #if 0               // Need to implement Mac encoding sometime...
  - struct CmapFormat0
  - {
  --    u_int16_t format;
  --    u_int16_t length;
  --    u_int16_t language;
  -+    uint16_t format;
  -+    uint16_t length;
  -+    uint16_t language;
  -     char glyphIdArray[256];
  - };
  - #endif
  -@@ -794,7 +794,7 @@
  -             }
  - 
  -             int segCount=tcm.segCountX2/2;
  --            u_int16_t *data=new u_int16_t[segCount*4];
  -+            uint16_t *data=new uint16_t[segCount*4];
  - 
  -             if(!(data))
  -             {
  -@@ -831,7 +831,7 @@
  - 
  -             int idarraylength=(tcm.length-(16+8*segCount))/2;
  - 
  --            u_int16_t *idarray = new u_int16_t[idarraylength];
  -+            uint16_t *idarray = new uint16_t[idarraylength];
  -             for(int i=0;i<idarraylength;++i)
  -                     idarray[i]=readBEUInt16();
  -             if(error)
  ---- scribus/scfonts_ttftypes.h       Sun Mar  2 13:40:52 2003
  -+++ scribus/scfonts_ttftypes.h       Wed May 14 10:26:41 2003
  -@@ -10,7 +10,7 @@
  - struct fxp16_16_t
  - {
  -     int16_t mantissa;
  --    u_int16_t fraction;
  -+    uint16_t fraction;
  - };
  - 
  - struct tt_datetime_t
  -@@ -18,25 +18,25 @@
  -     char data[8];
  - };
  - 
  --typedef u_int16_t fxp14_2_t;
  -+typedef uint16_t fxp14_2_t;
  - 
  - 
  - struct OffsetTable
  - {
  -     fxp16_16_t version;
  --    u_int16_t numTables;
  --    u_int16_t searchRange;
  --    u_int16_t entrySelector;
  --    u_int16_t rangeShift;
  -+    uint16_t numTables;
  -+    uint16_t searchRange;
  -+    uint16_t entrySelector;
  -+    uint16_t rangeShift;
  - }; // 12 bytes
  - 
  - 
  - struct TableDirEntry
  - {
  --    u_int32_t tag;
  --    u_int32_t checkSum;
  --    u_int32_t offset;
  --    u_int32_t length;
  -+    uint32_t tag;
  -+    uint32_t checkSum;
  -+    uint32_t offset;
  -+    uint32_t length;
  - }; // 16 bytes
  - 
  - 
  -@@ -44,19 +44,19 @@
  - {
  -     fxp16_16_t version;
  -     fxp16_16_t fontRevision;
  --    u_int32_t checkSumAdjustment;
  --    u_int32_t magicNumber;
  --    u_int16_t flags;
  --    u_int16_t unitsPerEm;
  -+    uint32_t checkSumAdjustment;
  -+    uint32_t magicNumber;
  -+    uint16_t flags;
  -+    uint16_t unitsPerEm;
  -     tt_datetime_t created;
  -     tt_datetime_t modified;
  -     int16_t xMin;
  -     int16_t yMin;
  -     int16_t xMax;
  -     int16_t yMax;
  --    u_int16_t macStyle;
  --    u_int16_t lowestRecPPEM;
  --    u_int16_t fontDirectionHint;
  -+    uint16_t macStyle;
  -+    uint16_t lowestRecPPEM;
  -+    uint16_t fontDirectionHint;
  -     int16_t indexToLocFormat;
  -     int16_t glyphDataFormat;
  - };
  -@@ -65,12 +65,12 @@
  - 
  - struct NameRecord
  - {
  --    u_int16_t platformID;
  --    u_int16_t encodingID;
  --    u_int16_t languageID;
  --    u_int16_t nameID;
  --    u_int16_t length;
  --    u_int16_t offset;
  -+    uint16_t platformID;
  -+    uint16_t encodingID;
  -+    uint16_t languageID;
  -+    uint16_t nameID;
  -+    uint16_t length;
  -+    uint16_t offset;
  - };
  - 
  - /*------------------------------------------------------------*/
  -@@ -83,9 +83,9 @@
  -     int16_t underlineThickness;
  -     int32_t isFixedPitch;
  -     int32_t minMemType42;
  --    u_int32_t maxMemType42;
  --    u_int32_t minMemType1;
  --    u_int32_t maxMemType1;
  -+    uint32_t maxMemType42;
  -+    uint32_t minMemType1;
  -+    uint32_t maxMemType1;
  - };
  - 
  - struct Post_GlyphName
  -@@ -101,40 +101,40 @@
  - 
  - struct CmapTable
  - {
  --    u_int16_t version;
  --    u_int16_t       numTables;
  -+    uint16_t version;
  -+    uint16_t        numTables;
  - };
  - 
  - struct CmapHeader
  - {
  --    u_int16_t platformID;
  --    u_int16_t encodingID;
  --    u_int32_t offset;
  -+    uint16_t platformID;
  -+    uint16_t encodingID;
  -+    uint32_t offset;
  - };
  - 
  - struct CmapFormat0
  - {
  --    u_int16_t format;
  --    u_int16_t length;
  --    u_int16_t language;
  -+    uint16_t format;
  -+    uint16_t length;
  -+    uint16_t language;
  -     char glyphIdArray[256];
  - };
  - 
  - struct CmapFormat4
  - {
  --    u_int16_t format;
  --    u_int16_t length;
  --    u_int16_t language;
  --    u_int16_t segCountX2;
  --    u_int16_t searchRange;
  --    u_int16_t entrySelector;
  --    u_int16_t rangeShift;
  --    u_int16_t *endCount;
  --    u_int16_t reservedPad;
  --    u_int16_t *startCount;
  --    u_int16_t *idDelta;
  --    u_int16_t *idRangeOffset;
  --    u_int16_t *glyphIdArray;
  -+    uint16_t format;
  -+    uint16_t length;
  -+    uint16_t language;
  -+    uint16_t segCountX2;
  -+    uint16_t searchRange;
  -+    uint16_t entrySelector;
  -+    uint16_t rangeShift;
  -+    uint16_t *endCount;
  -+    uint16_t reservedPad;
  -+    uint16_t *startCount;
  -+    uint16_t *idDelta;
  -+    uint16_t *idRangeOffset;
  -+    uint16_t *glyphIdArray;
  - };
  - 
  - /*-----------------------------------------------------------------*/
  -@@ -145,7 +145,7 @@
  -     int16_t Ascender;
  -     int16_t Descender;
  -     int16_t LineGap;
  --    u_int16_t advanceWidthMax;
  -+    uint16_t advanceWidthMax;
  -     int16_t minLeftSideBearing;
  -     int16_t minRightSideBearing;
  -     int16_t xMaxExtent;
  -@@ -153,7 +153,7 @@
  -     int16_t caretSlopeRun;
  -     int16_t reserved[5];
  -     int16_t metricDataFormat;
  --    u_int16_t numberOfHMetrics;
  -+    uint16_t numberOfHMetrics;
  - };
  - 
  - struct tt_Box
  -@@ -166,7 +166,7 @@
  - 
  - struct tt_longHorMetric
  - {
  --    u_int16_t advanceWidth;
  -+    uint16_t advanceWidth;
  -     int16_t lsb;
  - };
  - 
  -@@ -174,15 +174,15 @@
  - 
  - struct KernTable
  - {
  --    u_int16_t version;
  --    u_int16_t nTables;
  -+    uint16_t version;
  -+    uint16_t nTables;
  - };
  - 
  - struct KernSubTableHeader
  - {
  --    u_int16_t version;
  --    u_int16_t length;
  --    u_int16_t coverage;
  -+    uint16_t version;
  -+    uint16_t length;
  -+    uint16_t coverage;
  - };
  - 
  - #define kernHorizontal 0x0001
  -@@ -193,16 +193,16 @@
  - 
  - struct KernSubTable
  - {
  --    u_int16_t nPairs;
  --    u_int16_t searchRange;
  --    u_int16_t entrySelector;
  --    u_int16_t rangeShift;
  -+    uint16_t nPairs;
  -+    uint16_t searchRange;
  -+    uint16_t entrySelector;
  -+    uint16_t rangeShift;
  - };
  - 
  - struct KernEntry
  - {
  --    u_int16_t left;
  --    u_int16_t right;
  -+    uint16_t left;
  -+    uint16_t right;
  -     int16_t value;
  - };
  ++#include "config.h"
  ++#ifdef HAVE_INTTYPES_H
  ++#include <inttypes.h>
  ++#endif
  ++
  + #include <sys/types.h>
    
  + #ifndef MAKE_ID
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/scribus/scribus.spec
  ============================================================================
  $ cvs diff -u -r1.16 -r1.17 scribus.spec
  --- openpkg-src/scribus/scribus.spec  13 Aug 2003 09:01:55 -0000      1.16
  +++ openpkg-src/scribus/scribus.spec  20 Aug 2003 07:01:41 -0000      1.17
  @@ -23,20 +23,17 @@
   ##  SUCH DAMAGE.
   ##
   
  -#   FIXME: ms: Has JUNK status, it locks up during a fcntl(2) on FreeBSD.
  -#   FIXME: ms: Missing TIFF and JPEG logic, because of faulty configure.
  -
   #   package information
   Name:         scribus
   Summary:      Desktop Publishing Application
   URL:          http://web2.altmuehlnet.de/fschmid/
   Vendor:       Franz Schmid
   Packager:     The OpenPKG Project
  -Distribution: OpenPKG [JUNK]
  +Distribution: OpenPKG [EVAL]
   Group:        Editor
   License:      GPL
   Version:      1.0.1
  -Release:      20030813
  +Release:      20030820
   
   #   list of sources
   Source0:      http://scribus.planetmirror.com/scribus-%{version}.tar.gz
  @@ -68,6 +65,10 @@
       %{l_shtool} subst \
           -e 's; ! -f $libstdcpp;;g' \
           configure
  +    %{l_shtool} subst \
  +        -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \
  +        scribus/*.cpp \
  +        scribus/*.h
   
   %build
       CC="%{l_cc}" \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.6241 -r1.6242 news.txt
  --- openpkg-web/news.txt      20 Aug 2003 06:55:40 -0000      1.6241
  +++ openpkg-web/news.txt      20 Aug 2003 07:01:38 -0000      1.6242
  @@ -1,3 +1,4 @@
  +20-Aug-2003: Upgraded package: P<scribus-1.0.1-20030820>
   20-Aug-2003: Upgraded package: P<xmlsec-1.1.0-20030820>
   20-Aug-2003: Upgraded package: P<sqlite-2.8.5-20030820>
   20-Aug-2003: Upgraded package: P<qt-3.2.0-20030820>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to