From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/cdegroot-db/Manifest | 8 + dev-java/cdegroot-db/cdegroot-db-0.08-r1.ebuild | 40 ++++ dev-java/cdegroot-db/cdegroot-db-0.08-r2.ebuild | 38 ++++ dev-java/cdegroot-db/files/build.xml | 59 ++++++ .../files/cdegroot-db-0.08-gentoo.patch | 205 +++++++++++++++++++++ dev-java/cdegroot-db/metadata.xml | 8 + 6 files changed, 358 insertions(+) create mode 100644 dev-java/cdegroot-db/Manifest create mode 100644 dev-java/cdegroot-db/cdegroot-db-0.08-r1.ebuild create mode 100644 dev-java/cdegroot-db/cdegroot-db-0.08-r2.ebuild create mode 100644 dev-java/cdegroot-db/files/build.xml create mode 100644 dev-java/cdegroot-db/files/cdegroot-db-0.08-gentoo.patch create mode 100644 dev-java/cdegroot-db/metadata.xml (limited to 'dev-java/cdegroot-db') diff --git a/dev-java/cdegroot-db/Manifest b/dev-java/cdegroot-db/Manifest new file mode 100644 index 000000000000..51807ee4b4aa --- /dev/null +++ b/dev-java/cdegroot-db/Manifest @@ -0,0 +1,8 @@ +AUX build.xml 1612 SHA256 23981c23a887e5032cc882131155725721dd3522b786cc0553ea6a4ffc2d284c SHA512 b7d08ecfbecd1615d9a73ba1ab95b10d07ebddda0d4d273dadba770b662957006d84f8057d86f59dd1506cab0fa9f0fc79df7577b7ba1620fbf0d2d6d446de32 WHIRLPOOL b5296dd21b2b6d82ab229ef2d286b551d3955ca13bae52f1f3d3a199b6f7b259aee2b287029bc8d9248dc591ebce7ecebe9d8c31eee71acdcc6599a6714e0db2 +AUX cdegroot-db-0.08-gentoo.patch 7914 SHA256 0ff3a0dabf0939735961dd53a3105513dcd5d6ff85a302a343e0f8b86d8c6d9d SHA512 f24f13acb265f75408e6cae2a432cbcebbcad912f77ce2883159dc93743ad85c636e5656f21478914712fe393c84a6fe11600c9394b81ce128403c8f59e521cf WHIRLPOOL a8d4cf8982b191c5c57b08a97f01f65b969e75da5e0c950681a434a76537e4d21b169babd1dd90888c528685311d09931d5cc55d6501e22badc7de9c66923178 +DIST com.cdegroot.db-0.08.tar.gz 154705 SHA256 9866cbd5b6bd67e12fbdf5b6dd3a911b657e211f776e3dd4b65e5c1343f63110 SHA512 c8a6a6a46add440499dce42f27876cadfb9d247f4e7f8852e94cc20ca9afacb400f91f884760bf3659bad46979ddd5a65f6dda4bd5416da14d89a93ff5b447d1 WHIRLPOOL a25a29f891d4bc9f4bdc8c1aabf6856396c67cf7373d07b4e25c4a801e62f460db30490be5cb8f6c0deec85c4216432afdf95f44baf9fc6d997da567ec7d27ad +EBUILD cdegroot-db-0.08-r1.ebuild 864 SHA256 d4873431f3aee675df4ea8e6b276691ca21f239a3eedc782d93e0ef17a6d889f SHA512 685922ae9b839edc402286835e2e0c2fe91662106f532435986667040db3fa1a42e687c2da9620f19bf375f10c3893b59ba48a4d05a043aba4de6108a0256949 WHIRLPOOL 2dadf641da73b8e6e090fa45d7d8ed82bcbbe7ddf3b1ba629507dcdbda87622557f3c30af814bb797a5b8938679c77747cb227861112eebb9f9c98ce94d4026a +EBUILD cdegroot-db-0.08-r2.ebuild 856 SHA256 9148af9542e8f2d6a8a329bd0b97cb7321cd82e391bb758c0bc76fe9cb9fb505 SHA512 fb052a28fc963e9bb2ed18aefa0ece7076054dce7923e0fb780becb314a3317649e066fb20360777ac05ffb2504e6b39c4aa2ffe408591ec7ea7bfe4ea9377e1 WHIRLPOOL 41fb7f738fe7ad43f46153ef5ba6bbe58940e1b8f22e7ce5e6984b1fd026523386b47b84b93ac3bcf7aa202b8f1dc96cc5114603002ad0b003528a5caa38e72a +MISC ChangeLog 2645 SHA256 a3d0bb7f04aba693ac5386c9b5c70ff242dee69f50c53450a012c19244e359d2 SHA512 7adc82d3b3e04c2c9c8517513ea18abe6d8a3094a0c97ce0d607f596872f965e28c7d8e471d235f490752101dd5be44b081b54a1d34fd1cc7aee7c3b87ff55d4 WHIRLPOOL cf45f9cee1f4421eb10341d138e4da8cf896dc15b86390b1f7e4d678845cbebf5515afda0038be30fff75ad6e6a24d3eb755ca0526b8594d36ae4edef4c27d96 +MISC ChangeLog-2015 1658 SHA256 01be41a34ca4b142cc3f3af7b396c9905a4cdb1741b77aaad8d6f5ad22c407ed SHA512 14198df883e1724bae0f26400cc5e4a792ee09a80522f0f1619d4c1863ba18fa2ce53c360e0a75a5e7516e8e195a868118b3c1f11b04a229de4d7a8b46ea4fe3 WHIRLPOOL 23719fcd1ee1bc89a39f97717666751472bdf804c78706e9e0ee9ac095b548b9acc26c0cd5ae5534d6ba01bf3f0906f631ba16de507891b84e56881e1769a511 +MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac diff --git a/dev-java/cdegroot-db/cdegroot-db-0.08-r1.ebuild b/dev-java/cdegroot-db/cdegroot-db-0.08-r1.ebuild new file mode 100644 index 000000000000..6be999d8cd5f --- /dev/null +++ b/dev-java/cdegroot-db/cdegroot-db-0.08-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="OO database written in Java" +HOMEPAGE="http://www.cdegroot.com/software/db/" +SRC_URI="http://www.cdegroot.com/software/db/download/com.${P/-/.}.tar.gz" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="amd64 ppc64 x86" +IUSE="doc source" + +DEPEND=">=virtual/jdk-1.4" +RDEPEND=">=virtual/jre-1.4" + +S=${WORKDIR}/com.${P/-/.} + +src_unpack() { + unpack ${A} + cd "${S}" + rm -rv src/db/test || die + rm -v lib/*.jar || die + + cp "${FILESDIR}/build.xml" "${S}/build.xml" + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +EANT_DOC_TARGET="docs" + +src_install() { + java-pkg_dojar dist/${PN}.jar + + dodoc TODO VERSION CHANGES BUGS README || die + use doc && java-pkg_dojavadoc docs + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/cdegroot-db/cdegroot-db-0.08-r2.ebuild b/dev-java/cdegroot-db/cdegroot-db-0.08-r2.ebuild new file mode 100644 index 000000000000..4df2e8c05870 --- /dev/null +++ b/dev-java/cdegroot-db/cdegroot-db-0.08-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="OO database written in Java" +HOMEPAGE="http://www.cdegroot.com/software/db/" +SRC_URI="http://www.cdegroot.com/software/db/download/com.${P/-/.}.tar.gz" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="doc source" + +DEPEND=">=virtual/jdk-1.4" +RDEPEND=">=virtual/jre-1.4" + +S="${WORKDIR}/com.${P/-/.}" + +PATCHES=( "${FILESDIR}/${P}-gentoo.patch" ) +src_prepare() { + default + rm -rv src/db/test lib/*.jar || die + cp -v "${FILESDIR}/build.xml" "${S}/build.xml" || die +} + +EANT_DOC_TARGET="docs" + +src_install() { + java-pkg_dojar "dist/${PN}.jar" + dodoc TODO VERSION CHANGES BUGS README + use doc && java-pkg_dojavadoc docs + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/cdegroot-db/files/build.xml b/dev-java/cdegroot-db/files/build.xml new file mode 100644 index 000000000000..282ebdfc70e5 --- /dev/null +++ b/dev-java/cdegroot-db/files/build.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/cdegroot-db/files/cdegroot-db-0.08-gentoo.patch b/dev-java/cdegroot-db/files/cdegroot-db-0.08-gentoo.patch new file mode 100644 index 000000000000..f99584fdff1d --- /dev/null +++ b/dev-java/cdegroot-db/files/cdegroot-db-0.08-gentoo.patch @@ -0,0 +1,205 @@ +diff -urpN src.orig/db/com/cdegroot/db/hash/EntryPage.java src/db/com/cdegroot/db/hash/EntryPage.java +--- a/src/db/com/cdegroot/db/hash/EntryPage.java 2005-02-06 00:40:17.191151504 +0100 ++++ b/src/db/com/cdegroot/db/hash/EntryPage.java 2005-02-06 00:54:14.045930240 +0100 +@@ -25,7 +25,7 @@ final class EntryPage extends PageHeader + /** + * Constructs a page view from the indicated block. + */ +- EntryPage(BlockIo block) { ++ public EntryPage(BlockIo block) { + super(block); + } + +@@ -33,7 +33,7 @@ final class EntryPage extends PageHeader + * Factory method to create or return a data page for the + * indicated block. + */ +- static EntryPage getEntryPageView(BlockIo block) { ++ public static EntryPage getEntryPageView(BlockIo block) { + BlockView view = block.getView(); + if (view != null && view instanceof EntryPage) + return (EntryPage) view; +diff -urpN src.orig/db/com/cdegroot/db/recman/BlockIo.java src/db/com/cdegroot/db/recman/BlockIo.java +--- a/src/db/com/cdegroot/db/recman/BlockIo.java 2005-02-06 00:40:17.192151352 +0100 ++++ b/src/db/com/cdegroot/db/recman/BlockIo.java 2005-02-06 00:58:02.990125432 +0100 +@@ -31,7 +31,7 @@ package com.cdegroot.db.recman; + * @see java.io.DataInput + * @see java.io.DataOutput + */ +-final class BlockIo implements java.io.Serializable { ++final public class BlockIo implements java.io.Serializable { + private long blockId; + private final byte[] snapshot; // committed snapshot. + private boolean snapshotValid = false; +@@ -44,7 +44,7 @@ final class BlockIo implements java.io.S + * Constructs a new BlockIo instance working on the indicated + * buffer. + */ +- BlockIo(long blockId, byte[] data) { ++ public BlockIo(long blockId, byte[] data) { + // removeme for production version + if (blockId > 10000000000L) + throw new Error("bogus block id " + blockId); +@@ -108,7 +108,7 @@ final class BlockIo implements java.io.S + /** + * Returns the current view of the block. + */ +- BlockView getView() { ++ public BlockView getView() { + return view; + } + +@@ -172,17 +172,25 @@ final class BlockIo implements java.io.S + /** + * Reads a short from the indicated position + */ +- short readShort(int pos) { ++ public short readShort(int pos) { + return (short) + (((short) (data[pos+0] & 0xff) << 8) | + ((short) (data[pos+1] & 0xff) << 0)); + + } ++ ++ public byte readByte(int pos) { ++ return data[pos]; ++ } ++ ++ public void writeByte(int pos, byte value) ++ { data[pos] = value; ++ } + + /** + * Writes a short to the indicated position + */ +- void writeShort(int pos, short value) { ++ public void writeShort(int pos, short value) { + data[pos+0] = (byte)(0xff & (value >> 8)); + data[pos+1] = (byte)(0xff & (value >> 0)); + setDirty(); +@@ -191,7 +199,7 @@ final class BlockIo implements java.io.S + /** + * Reads an int from the indicated position + */ +- int readInt(int pos) { ++ public int readInt(int pos) { + return + (((int)(data[pos+0] & 0xff) << 24) | + ((int)(data[pos+1] & 0xff) << 16) | +@@ -202,7 +210,7 @@ final class BlockIo implements java.io.S + /** + * Writes an int to the indicated position + */ +- void writeInt(int pos, int value) { ++ public void writeInt(int pos, int value) { + data[pos+0] = (byte)(0xff & (value >> 24)); + data[pos+1] = (byte)(0xff & (value >> 16)); + data[pos+2] = (byte)(0xff & (value >> 8)); +@@ -213,7 +221,7 @@ final class BlockIo implements java.io.S + /** + * Reads a long from the indicated position + */ +- long readLong(int pos) { ++ public long readLong(int pos) { + return + (((long)(data[pos+0] & 0xff) << 56) | + ((long)(data[pos+1] & 0xff) << 48) | +@@ -228,7 +236,7 @@ final class BlockIo implements java.io.S + /** + * Writes a long to the indicated position + */ +- void writeLong(int pos, long value) { ++ public void writeLong(int pos, long value) { + data[pos+0] = (byte)(0xff & (value >> 56)); + data[pos+1] = (byte)(0xff & (value >> 48)); + data[pos+2] = (byte)(0xff & (value >> 40)); +diff -urpN src.orig/db/com/cdegroot/db/recman/BlockView.java src/db/com/cdegroot/db/recman/BlockView.java +--- a/src/db/com/cdegroot/db/recman/BlockView.java 2005-02-06 00:40:17.193151200 +0100 ++++ b/src/db/com/cdegroot/db/recman/BlockView.java 2005-02-06 00:47:57.632153832 +0100 +@@ -28,5 +28,5 @@ package com.cdegroot.db.recman; + * + * @see BlockIo.setView() + */ +-interface BlockView { ++public interface BlockView { + } +diff -urpN src.orig/db/com/cdegroot/db/recman/Magic.java src/db/com/cdegroot/db/recman/Magic.java +--- a/src/db/com/cdegroot/db/recman/Magic.java 2005-02-06 00:40:17.193151200 +0100 ++++ b/src/db/com/cdegroot/db/recman/Magic.java 2005-02-06 00:44:22.164909832 +0100 +@@ -25,7 +25,7 @@ package com.cdegroot.db.recman; + /** + * This interface contains magic cookies. + */ +-interface Magic { ++public interface Magic { + /** Magic cookie at start of file */ + short FILE_HEADER = 0x1350; + +@@ -57,4 +57,6 @@ interface Magic { + int SZ_INT = 4; + /** Size of an externalized long */ + int SZ_LONG = 8; ++ /** Size of byte */ ++ int SZ_BYTE = 1; + } +diff -urpN src.orig/db/com/cdegroot/db/recman/PageHeader.java src/db/com/cdegroot/db/recman/PageHeader.java +--- a/src/db/com/cdegroot/db/recman/PageHeader.java 2005-02-06 00:40:17.193151200 +0100 ++++ b/src/db/com/cdegroot/db/recman/PageHeader.java 2005-02-06 00:50:10.236994832 +0100 +@@ -28,15 +28,15 @@ import java.io.*; + * This class represents a page header. It is the common superclass for + * all different page views. + */ +-class PageHeader implements BlockView { ++public class PageHeader implements BlockView { + // offsets + private static final short O_MAGIC = 0; // short magic + private static final short O_NEXT = Magic.SZ_SHORT; // long next + private static final short O_PREV = O_NEXT + Magic.SZ_LONG; // long prev +- static final int SIZE = O_PREV + Magic.SZ_LONG; ++ public static final int SIZE = O_PREV + Magic.SZ_LONG; + + // my block +- BlockIo block; ++ public BlockIo block; + + /** + * Constructs a PageHeader object from a block +@@ -45,7 +45,7 @@ class PageHeader implements BlockView { + * @throws IOException if the block is too short to keep the file + * header. + */ +- PageHeader(BlockIo block) { ++ public PageHeader(BlockIo block) { + initialize(block); + if (!magicOk()) + throw new Error("CRITICAL: page header magic for block " +@@ -66,7 +66,7 @@ class PageHeader implements BlockView { + * Factory method to create or return a page header for the + * indicated block. + */ +- static PageHeader getView(BlockIo block) { ++ public static PageHeader getView(BlockIo block) { + BlockView view = block.getView(); + if (view != null && view instanceof PageHeader) + return (PageHeader) view; +diff -urpN src.orig/db/com/cdegroot/db/recman/RecordFile.java src/db/com/cdegroot/db/recman/RecordFile.java +--- a/src/db/com/cdegroot/db/recman/RecordFile.java 2005-02-06 00:40:17.193151200 +0100 ++++ b/src/db/com/cdegroot/db/recman/RecordFile.java 2005-02-06 00:45:38.616287456 +0100 +@@ -33,7 +33,7 @@ import java.util.*; + * The set of dirty records on the in-use list constitutes a transaction. + * Later on, we will send these records to some recovery thingy. + */ +-final class RecordFile { ++final public class RecordFile { + private final TransactionManager txnMgr; + + // Todo: reorganize in hashes and fifos as necessary. +@@ -48,7 +48,7 @@ final class RecordFile { + private boolean transactionsDisabled = false; + + /** The length of a single block. */ +- final static int BLOCK_SIZE = 8192;//4096; ++ final public static int BLOCK_SIZE = 8192;//4096; + + /** The extension of a record file */ + final static String extension = ".db"; diff --git a/dev-java/cdegroot-db/metadata.xml b/dev-java/cdegroot-db/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/cdegroot-db/metadata.xml @@ -0,0 +1,8 @@ + + + + + java@gentoo.org + Java + + -- cgit v1.2.3