diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-22 18:04:17 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-22 18:04:17 +0000 |
commit | 8e4f79348a6536de9668365641f2bd508c08aee2 (patch) | |
tree | d24b024c1bfc98a562dec0bcbeff36a79398219a | |
parent | waste of space - removed (diff) | |
download | historical-8e4f79348a6536de9668365641f2bd508c08aee2.tar.gz historical-8e4f79348a6536de9668365641f2bd508c08aee2.tar.bz2 historical-8e4f79348a6536de9668365641f2bd508c08aee2.zip |
Add missing patch.
Package-Manager: portage-2.1.2.7
-rw-r--r-- | dev-java/poi/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/poi/Manifest | 18 | ||||
-rw-r--r-- | dev-java/poi/files/poi-3.0-src-isDateFormat.patch | 95 |
3 files changed, 111 insertions, 8 deletions
diff --git a/dev-java/poi/ChangeLog b/dev-java/poi/ChangeLog index 5e9c1e6ea8e1..123f47f4ddba 100644 --- a/dev-java/poi/ChangeLog +++ b/dev-java/poi/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/poi # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/poi/ChangeLog,v 1.28 2007/05/22 18:00:03 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/poi/ChangeLog,v 1.29 2007/05/22 18:04:17 betelgeuse Exp $ + + 22 May 2007; Petteri Räty <betelgeuse@gentoo.org> + +files/poi-3.0-src-isDateFormat.patch: + Add missing patch. *poi-3.0 (22 May 2007) diff --git a/dev-java/poi/Manifest b/dev-java/poi/Manifest index f196970507df..e6e2089d894b 100644 --- a/dev-java/poi/Manifest +++ b/dev-java/poi/Manifest @@ -5,6 +5,10 @@ AUX poi-2.5-jikes-fix.patch 1190 RMD160 f7cf0f41d37e6010edd5ca081f0a7566862991bb MD5 bf71154ca919a88d8c12da29e33ef4d9 files/poi-2.5-jikes-fix.patch 1190 RMD160 f7cf0f41d37e6010edd5ca081f0a7566862991bb files/poi-2.5-jikes-fix.patch 1190 SHA256 a786c5d718e3b934101607eeb7c76c2a5b5d8e245cde9e502d14cfecfc85bcf4 files/poi-2.5-jikes-fix.patch 1190 +AUX poi-3.0-src-isDateFormat.patch 3169 RMD160 ae92c237134a5c54d82b373339ccf14464319c50 SHA1 0363e82eae20fd369e15cb075e89eae730d99699 SHA256 3a19e3f9e44e92104f87f80a7e1771bb1f0718da393cf8c5396dded65870becc +MD5 30d662a9ad8ad89d2f67678a7891a9a1 files/poi-3.0-src-isDateFormat.patch 3169 +RMD160 ae92c237134a5c54d82b373339ccf14464319c50 files/poi-3.0-src-isDateFormat.patch 3169 +SHA256 3a19e3f9e44e92104f87f80a7e1771bb1f0718da393cf8c5396dded65870becc files/poi-3.0-src-isDateFormat.patch 3169 DIST poi-src-2.5.1-final-20040804.tar.gz 6870414 RMD160 47707ec7db9cb5b2650d6eddaf0f351fee3237f5 SHA1 3d7f211e47f58007c3d0bcf891adba33d25482d5 SHA256 783c6c36b9762aafd3386adcfbe71ad46aaa14d9fe20545c4a60eb591cfe0cc1 DIST poi-src-3.0-FINAL-20070503.tar.gz 16284462 RMD160 e4db3f249324ca84fb2b7b99d96c1879ebaf08ca SHA1 0cb36b01856649fdd8152d98ba999f44289dc89f SHA256 48a5aabb873d4cc654c95acf6576868d7a8a3ee97e1c6418e1d716698b6efa76 EBUILD poi-2.5.1-r1.ebuild 1624 RMD160 3f7f4af6ad9f1a41bc413c0dce075601e2496689 SHA1 9272b615965d4e76a80a8d6bcde4e7877e7c9403 SHA256 f16f5b758d6a37c1b406587223a98f4ccb84417b8e537aa08eb082c16514595d @@ -15,10 +19,10 @@ EBUILD poi-3.0.ebuild 2104 RMD160 51402913f997402cd5499fc5a114704dc8d55972 SHA1 MD5 5d6282e8114e23a78d5ca1a18313ceda poi-3.0.ebuild 2104 RMD160 51402913f997402cd5499fc5a114704dc8d55972 poi-3.0.ebuild 2104 SHA256 9273727da8934975bddca1a5ba0a0d0cdcf91e76062e83757cdf9c936b6dab05 poi-3.0.ebuild 2104 -MISC ChangeLog 3936 RMD160 9bfe8a0d62dd863e401127656dfcf4a0e4a6bd1a SHA1 a6c6f431b5521111ac42cfade205b9fa36c3f6d6 SHA256 69c195b76cb1fb495e5146682f73e620863e62b0b51f72b932002612dafe62bb -MD5 41e2249761e5264353e607feb35c8cf0 ChangeLog 3936 -RMD160 9bfe8a0d62dd863e401127656dfcf4a0e4a6bd1a ChangeLog 3936 -SHA256 69c195b76cb1fb495e5146682f73e620863e62b0b51f72b932002612dafe62bb ChangeLog 3936 +MISC ChangeLog 4052 RMD160 84a12cc94cb85eed31e3f673520b5c51a47be46c SHA1 645d561282dee8e7c74bacc9ff4d447d5832a1e8 SHA256 32bdfcdb29b5f689f60ab7225f48ba3ce41876b42b4f9c442f799ee24e4778e0 +MD5 490b002a67ed85dfd0737c0b7fa8dacf ChangeLog 4052 +RMD160 84a12cc94cb85eed31e3f673520b5c51a47be46c ChangeLog 4052 +SHA256 32bdfcdb29b5f689f60ab7225f48ba3ce41876b42b4f9c442f799ee24e4778e0 ChangeLog 4052 MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157 @@ -32,7 +36,7 @@ SHA256 2c25f03585175e624b8a3abbcdd873cb6a7d129bc96fcc9bebc09126c4359530 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) -iD8DBQFGUy+qcxLzpIGCsLQRAibpAKCYVIrYZfCgreCeoVzAfmyoFBJUYQCfUMhz -wQ9ftXdWE8a8vo1S/l0181U= -=GZQr +iD8DBQFGUzCncxLzpIGCsLQRAmwhAJ0V+Y56poZR1cYaU48kdUxYvx+0FgCdF0md +uHaZaq2PRDLq+uPSva74Kn4= +=ev/k -----END PGP SIGNATURE----- diff --git a/dev-java/poi/files/poi-3.0-src-isDateFormat.patch b/dev-java/poi/files/poi-3.0-src-isDateFormat.patch new file mode 100644 index 000000000000..ee887268d482 --- /dev/null +++ b/dev-java/poi/files/poi-3.0-src-isDateFormat.patch @@ -0,0 +1,95 @@ +diff -ru poi.original/src/java/org/apache/poi/hssf/model/Workbook.java poi/src/java/org/apache/poi/hssf/model/Workbook.java +--- poi.original/src/java/org/apache/poi/hssf/model/Workbook.java 2006-01-03 12:41:36.000000000 +0100 ++++ poi/src/java/org/apache/poi/hssf/model/Workbook.java 2006-11-03 21:10:29.000000000 +0100 +@@ -103,6 +103,19 @@ + + private static POILogger log = POILogFactory.getLogger(Workbook.class); + ++ /** ++ * The date strings to look for ++ */ ++ private static final String[] dateStrings = new String[] ++ { ++ "dd", ++ "mm", ++ "yy", ++ "hh", ++ "ss", ++ "m/", ++ "/d" ++ }; + /** + * Creates new Workbook with no intitialization --useless right now + * @see #createWorkbook(List) +@@ -2221,6 +2234,58 @@ + { + return drawingManager; + } ++ ++ public FormatRecord getFormat(final short index) { ++ FormatRecord foundFormat = null; ++ Iterator iterator = formats.iterator(); ++ while (iterator.hasNext()) { ++ final FormatRecord format = (FormatRecord) iterator.next(); ++ if (format.getIndexCode() == index) { ++ foundFormat = format; ++ break; ++ } ++ } ++ return foundFormat; ++ } + +-} ++ public boolean isDateFormat(final short index) { ++ boolean isDate = false; ++ final FormatRecord format = getFormat(index); ++ if (format != null) { ++ switch(format.getIndexCode()) { ++ // Internal Date Formats as described on page 427 in ++ // Microsoft Excel Dev's Kit... ++ case 0x0e: ++ case 0x0f: ++ case 0x10: ++ case 0x11: ++ case 0x12: ++ case 0x13: ++ case 0x14: ++ case 0x15: ++ case 0x16: ++ case 0x2d: ++ case 0x2e: ++ case 0x2f: ++ isDate = true; ++ break; + ++ default: ++ break; ++ } ++ ++ if (!isDate) { ++ final String formatString = format.getFormatString(); ++ for (int i = 0; i < dateStrings.length; i++) { ++ final String dateString = dateStrings[i]; ++ if (formatString.indexOf(dateString) != -1 || ++ formatString.indexOf(dateString.toUpperCase()) != -1) { ++ isDate = true; ++ break; ++ } ++ } ++ } ++ } ++ return isDate; ++ } ++} +diff -ru poi.original/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java poi/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +--- poi.original/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java 2006-07-27 16:15:11.000000000 +0200 ++++ poi/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java 2006-11-03 21:09:50.000000000 +0100 +@@ -1279,4 +1279,8 @@ + byte[] bytes = new byte[16]; + return bytes; + } ++ ++ public boolean isDateFormat(final short index) { ++ return workbook.isDateFormat(index); ++ } + } |