summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-12-19 08:29:11 +0000
committerMamoru Komachi <usata@gentoo.org>2003-12-19 08:29:11 +0000
commit88c346ab3e17bb2c31acb66400d16776c4101310 (patch)
treeced100937d8aef5c3e42beeaf73fe8742cc58cfd /net-www/ci
parentFixed wrong file creation bug (diff)
downloadhistorical-88c346ab3e17bb2c31acb66400d16776c4101310.tar.gz
historical-88c346ab3e17bb2c31acb66400d16776c4101310.tar.bz2
historical-88c346ab3e17bb2c31acb66400d16776c4101310.zip
Fixed wrong file creation bug
Diffstat (limited to 'net-www/ci')
-rw-r--r--net-www/ci/Manifest6
-rw-r--r--net-www/ci/ci-1.1.2-r1.ebuild80
-rw-r--r--net-www/ci/files/ci-1.1.2-gentoo.diff20
-rw-r--r--net-www/ci/files/digest-ci-1.1.2-r11
4 files changed, 104 insertions, 3 deletions
diff --git a/net-www/ci/Manifest b/net-www/ci/Manifest
index 5f8383f7179e..d965b8385238 100644
--- a/net-www/ci/Manifest
+++ b/net-www/ci/Manifest
@@ -1,9 +1,9 @@
MD5 c8e7916571d4dcb297521c499b14ed7a ci-1.0.0.ebuild 1486
MD5 e92a48548554c80cf90e18df17ff6a82 metadata.xml 156
-MD5 0c4ca2f73eda0afb60dd4c084cf8cdd1 ChangeLog 489
-MD5 41c69da218fea946bb74cf7cd53c2d7a ci-1.1.2-r1.ebuild 1944
+MD5 35f5677114d26b064f85a21f108ea2ef ChangeLog 649
+MD5 23c5bdefc8803f87f6970bc24595da41 ci-1.1.2-r1.ebuild 1947
MD5 8d5698797feb923c0ba218eed41030d5 ci-1.1.2.ebuild 1866
MD5 41e4c44dfe9080815ed2d43627ca75cc files/digest-ci-1.0.0 58
-MD5 e529f16e11a7da1f2e8ee37c407f2290 files/ci-1.1.2-gentoo.diff 622
+MD5 a681a1cafe47da1d3802a5efcb1cb12b files/ci-1.1.2-gentoo.diff 639
MD5 ab143961dc235dfa27891c0eb2b35283 files/digest-ci-1.1.2-r1 61
MD5 ab143961dc235dfa27891c0eb2b35283 files/digest-ci-1.1.2 61
diff --git a/net-www/ci/ci-1.1.2-r1.ebuild b/net-www/ci/ci-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..05e4d14ddfe5
--- /dev/null
+++ b/net-www/ci/ci-1.1.2-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/ci/ci-1.1.2-r1.ebuild,v 1.1 2003/12/19 08:29:01 usata Exp $
+
+IUSE=""
+
+DESCRIPTION="C.i. - Compact Interface for 2ch"
+HOMEPAGE="http://wids.net/lab/Ci.html"
+if [ "${P/_/}" = "${P}" ] ; then
+ # normal release
+ #MY_P=${PN}.nr${PV%%.*}
+ MY_P=${PN}.delta${PV##*.}
+ SRC_URI="http://wids.net/archive/Ci/${MY_P}.tar.gz"
+else
+ # snapshot
+ MY_P=${PN}.snapshot-${PV#*_p}
+ SRC_URI="http://wids.net/archive/Ci/snapshot/${MY_P}.tar.gz"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="dev-lang/ruby
+ =x11-libs/gtk+-1.2*
+ >=dev-ruby/ruby-gtk-0.28
+ media-fonts/monafont"
+
+if [ "${P/_/}" = "${P}" ] ; then
+ S=${WORKDIR}/Ci
+else
+ S=${WORKDIR}/Ci-${PV#*_p}
+fi
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+
+ local rubycmd bindir libdir datadir
+
+ if [ -d /usr/share/migemo ] ; then
+ local migemoDict=/usr/share/migemo/migemo-dict
+ local migemoDictCache=/usr/share/migemo/migemo-dict.cache
+ sed -i -e "/^migemoDict /s|''|'${migemoDict}'|" \
+ -e "/^migemoDictCache /s|''|'${migemoDictCache}'|" \
+ Ci.rb
+ fi
+ sed -i -e "/^scriptRoot = ''/s:'':'/usr/share/ci/':" Ci.rb
+
+ sed -i -e "/^rubycmd = ''/s:'':'/usr/bin/ruby':" \
+ -e "/^bindir = ''/s:'':'/usr/bin':" \
+ -e "/^libdir = ''/s:'':'/usr/lib/ruby/site_ruby':" \
+ -e "/^datadir = ''/s:'':'/usr/share':" \
+ install.rb || die
+
+ ruby install.rb config || die
+}
+
+src_install() {
+
+ sed -i -e "/^bindir/s:/usr:${D}/usr:" \
+ -e "/^libdir/s:/usr:${D}/usr:" \
+ -e "/^datadir/s:/usr:${D}/usr:" \
+ install.rb || die
+ ruby install.rb install || die
+
+ dosed /usr/lib/ruby/site_ruby/ci/siteconfig.rb || die
+ #dosed /usr/lib/ruby/site_ruby/ci/gtkext.rb || die
+ dosed /usr/lib/ruby/site_ruby/ci/sitecfg.rb || die
+
+ dodoc Changelog README *.sample doc/*.rd
+ cd doc
+ dohtml -r .
+}
diff --git a/net-www/ci/files/ci-1.1.2-gentoo.diff b/net-www/ci/files/ci-1.1.2-gentoo.diff
new file mode 100644
index 000000000000..74a18774f253
--- /dev/null
+++ b/net-www/ci/files/ci-1.1.2-gentoo.diff
@@ -0,0 +1,20 @@
+diff -urN Ci/httpext.rb Ci-20031219/httpext.rb
+--- Ci/httpext.rb 2003-12-17 23:55:23.000000000 +0900
++++ Ci-20031219/httpext.rb 2003-12-19 08:30:03.000000000 +0900
+@@ -1,6 +1,6 @@
+ #
+ #
+-# $Id: ci-1.1.2-gentoo.diff,v 1.1 2003/12/19 08:29:01 usata Exp $
++# $Id: ci-1.1.2-gentoo.diff,v 1.1 2003/12/19 08:29:01 usata Exp $
+ #
+ #
+ $KCODE = 'e'
+@@ -113,7 +113,7 @@
+ fh.write response.body
+ fh.close
+ if GZIP
+- x = system("#{GZIP} #{local}.gz 2>1")
++ x = system("#{GZIP} #{local}.gz >/dev/null 2>&1")
+ File.rename("#{local}.gz", local) unless x
+ end
+ CacheInfo.write(response.header['Last-Modified'], local + POST_LAST)
diff --git a/net-www/ci/files/digest-ci-1.1.2-r1 b/net-www/ci/files/digest-ci-1.1.2-r1
new file mode 100644
index 000000000000..7c01fc123f88
--- /dev/null
+++ b/net-www/ci/files/digest-ci-1.1.2-r1
@@ -0,0 +1 @@
+MD5 d6c1506e287dd77fa137a601aacf4cc1 ci.delta2.tar.gz 125309