summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-04 15:17:37 +0000
committerjlam <jlam@pkgsrc.org>2008-04-04 15:17:37 +0000
commitef61c98032a31c32e8a2fa5d5dfbbce84cf1b3a1 (patch)
treeafd049abb3b13ec0cec36d8214df3a7b4a811a10 /devel
parent3c768968a8a50ae208f9bb10d117505a5ea9f443 (diff)
downloadpkgsrc-ef61c98032a31c32e8a2fa5d5dfbbce84cf1b3a1.tar.gz
Initial import of ruby18-log4r-1.0.5 as devel/ruby-log4r.
Log4r is a comprehensive and flexible logging library written in Ruby for use in Ruby programs. It features a hierarchical logging system of any number of levels, custom level names, logger inheritance, multiple output destinations, execution tracing, custom formatting, thread safteyness, XML and YAML configuration, and more. Log4r is an adherent to the philosophy of logging using simple print statements. What Log4r adds to this philosophy is a flexible way of controling the information being logged. Log information can be sent to any kind of destination and with varying degrees of importance. Log4r is designed so that logging statements can remain in production code with almost no extra computational cost.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-log4r/DESCR12
-rw-r--r--devel/ruby-log4r/Makefile26
-rw-r--r--devel/ruby-log4r/PLIST75
-rw-r--r--devel/ruby-log4r/distinfo6
-rw-r--r--devel/ruby-log4r/patches/patch-aa20
5 files changed, 139 insertions, 0 deletions
diff --git a/devel/ruby-log4r/DESCR b/devel/ruby-log4r/DESCR
new file mode 100644
index 00000000000..047812e9053
--- /dev/null
+++ b/devel/ruby-log4r/DESCR
@@ -0,0 +1,12 @@
+Log4r is a comprehensive and flexible logging library written in Ruby
+for use in Ruby programs. It features a hierarchical logging system of
+any number of levels, custom level names, logger inheritance, multiple
+output destinations, execution tracing, custom formatting, thread
+safteyness, XML and YAML configuration, and more.
+
+Log4r is an adherent to the philosophy of logging using simple print
+statements. What Log4r adds to this philosophy is a flexible way of
+controling the information being logged. Log information can be sent
+to any kind of destination and with varying degrees of importance.
+Log4r is designed so that logging statements can remain in production
+code with almost no extra computational cost.
diff --git a/devel/ruby-log4r/Makefile b/devel/ruby-log4r/Makefile
new file mode 100644
index 00000000000..c5eb067f890
--- /dev/null
+++ b/devel/ruby-log4r/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/04/04 15:17:37 jlam Exp $
+
+DISTNAME= log4r-1.0.5
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel
+
+HOMEPAGE= http://log4r.sourceforge.net/
+COMMENT= Flexible logging library
+
+GEM_BUILD= gemspec
+
+# The log4r gem installs the RDoc files under ${GEM_LIBDIR}/doc instead of
+# ${GEM_DOCDIR}, so we need to generate the dynamic PLIST entries for
+# those files.
+#
+GENERATE_PLIST+= \
+ ${ECHO} "@comment The following lines are automatically generated." && \
+ ( cd ${DESTDIR}${PREFIX} && \
+ ${FIND} ${GEM_LIBDIR:S|${PREFIX}/||}/doc \! -type d -print | \
+ ${SORT} && \
+ ${FIND} ${GEM_LIBDIR:S|${PREFIX}/||}/doc -type d -print | \
+ ${SORT} -r | ${SED} -e "s,^,@dirrm ," && \
+ ${ECHO} "@dirrm "${GEM_LIBDIR:S|${PREFIX}/||:Q} );
+
+.include "../../misc/rubygems/rubygem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-log4r/PLIST b/devel/ruby-log4r/PLIST
new file mode 100644
index 00000000000..d9b4d5c2473
--- /dev/null
+++ b/devel/ruby-log4r/PLIST
@@ -0,0 +1,75 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/04 15:17:37 jlam Exp $
+${GEM_HOME}/cache/log4r-${PKGVERSION}.gem
+${GEM_LIBDIR}/.require_paths
+${GEM_LIBDIR}/examples/README
+${GEM_LIBDIR}/examples/customlevels.rb
+${GEM_LIBDIR}/examples/fileroll.rb
+${GEM_LIBDIR}/examples/log4r_yaml.yaml
+${GEM_LIBDIR}/examples/logclient.rb
+${GEM_LIBDIR}/examples/logserver.rb
+${GEM_LIBDIR}/examples/moderate.xml
+${GEM_LIBDIR}/examples/moderateconfig.rb
+${GEM_LIBDIR}/examples/myformatter.rb
+${GEM_LIBDIR}/examples/outofthebox.rb
+${GEM_LIBDIR}/examples/rrconfig.xml
+${GEM_LIBDIR}/examples/rrsetup.rb
+${GEM_LIBDIR}/examples/simpleconfig.rb
+${GEM_LIBDIR}/examples/xmlconfig.rb
+${GEM_LIBDIR}/examples/yaml.rb
+${GEM_LIBDIR}/src/log4r.rb
+${GEM_LIBDIR}/src/log4r/base.rb
+${GEM_LIBDIR}/src/log4r/config.rb
+${GEM_LIBDIR}/src/log4r/configurator.rb
+${GEM_LIBDIR}/src/log4r/formatter/formatter.rb
+${GEM_LIBDIR}/src/log4r/formatter/patternformatter.rb
+${GEM_LIBDIR}/src/log4r/lib/drbloader.rb
+${GEM_LIBDIR}/src/log4r/lib/xmlloader.rb
+${GEM_LIBDIR}/src/log4r/logevent.rb
+${GEM_LIBDIR}/src/log4r/logger.rb
+${GEM_LIBDIR}/src/log4r/loggerfactory.rb
+${GEM_LIBDIR}/src/log4r/logserver.rb
+${GEM_LIBDIR}/src/log4r/outputter/consoleoutputters.rb
+${GEM_LIBDIR}/src/log4r/outputter/datefileoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/emailoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/fileoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/iooutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/outputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/outputterfactory.rb
+${GEM_LIBDIR}/src/log4r/outputter/remoteoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/rollingfileoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/staticoutputter.rb
+${GEM_LIBDIR}/src/log4r/outputter/syslogoutputter.rb
+${GEM_LIBDIR}/src/log4r/rdoc/configurator
+${GEM_LIBDIR}/src/log4r/rdoc/emailoutputter
+${GEM_LIBDIR}/src/log4r/rdoc/formatter
+${GEM_LIBDIR}/src/log4r/rdoc/log4r
+${GEM_LIBDIR}/src/log4r/rdoc/logger
+${GEM_LIBDIR}/src/log4r/rdoc/logserver
+${GEM_LIBDIR}/src/log4r/rdoc/outputter
+${GEM_LIBDIR}/src/log4r/rdoc/patternformatter
+${GEM_LIBDIR}/src/log4r/rdoc/syslogoutputter
+${GEM_LIBDIR}/src/log4r/rdoc/yamlconfigurator
+${GEM_LIBDIR}/src/log4r/repository.rb
+${GEM_LIBDIR}/src/log4r/staticlogger.rb
+${GEM_LIBDIR}/src/log4r/yamlconfigurator.rb
+${GEM_LIBDIR}/tests/include.rb
+${GEM_LIBDIR}/tests/runtest.rb
+${GEM_LIBDIR}/tests/testbase.rb
+${GEM_LIBDIR}/tests/testcustom.rb
+${GEM_LIBDIR}/tests/testdefault.rb
+${GEM_LIBDIR}/tests/testformatter.rb
+${GEM_LIBDIR}/tests/testlogger.rb
+${GEM_LIBDIR}/tests/testoutputter.rb
+${GEM_LIBDIR}/tests/testpatternformatter.rb
+${GEM_LIBDIR}/tests/testxmlconf.rb
+${GEM_LIBDIR}/tests/xml/testconf.xml
+${GEM_HOME}/specifications/log4r-${PKGVERSION}.gemspec
+@dirrm ${GEM_LIBDIR}/tests/xml
+@dirrm ${GEM_LIBDIR}/tests
+@dirrm ${GEM_LIBDIR}/src/log4r/rdoc
+@dirrm ${GEM_LIBDIR}/src/log4r/outputter
+@dirrm ${GEM_LIBDIR}/src/log4r/lib
+@dirrm ${GEM_LIBDIR}/src/log4r/formatter
+@dirrm ${GEM_LIBDIR}/src/log4r
+@dirrm ${GEM_LIBDIR}/src
+@dirrm ${GEM_LIBDIR}/examples
diff --git a/devel/ruby-log4r/distinfo b/devel/ruby-log4r/distinfo
new file mode 100644
index 00000000000..3daf469700b
--- /dev/null
+++ b/devel/ruby-log4r/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/04/04 15:17:37 jlam Exp $
+
+SHA1 (log4r-1.0.5.gem) = 4e85852ce03c7526ddf194b023b353d1784e0b48
+RMD160 (log4r-1.0.5.gem) = b5ea60108198bb88a24e5dc6c40d6df3447c178b
+Size (log4r-1.0.5.gem) = 311215 bytes
+SHA1 (patch-aa) = 88e9e7c0aea687ae844f263270984ca7dd8f2e4d
diff --git a/devel/ruby-log4r/patches/patch-aa b/devel/ruby-log4r/patches/patch-aa
new file mode 100644
index 00000000000..4ee24ddda99
--- /dev/null
+++ b/devel/ruby-log4r/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/04/04 15:17:37 jlam Exp $
+
+--- ../log4r-1.0.5.gemspec.orig 2008-03-30 11:43:58.000000000 -0400
++++ ../log4r-1.0.5.gemspec
+@@ -178,7 +178,6 @@ files:
+ - doc/images/crush/logo2.png
+ - examples/fileroll.rb
+ - examples/README
+-- examples/logs
+ - examples/customlevels.rb
+ - examples/log4r_yaml.yaml
+ - examples/logclient.rb
+@@ -233,7 +232,6 @@ files:
+ - src/log4r/rdoc/patternformatter
+ - src/log4r/rdoc/syslogoutputter
+ - src/log4r/rdoc/yamlconfigurator
+-- tests/junk
+ - tests/xml
+ - tests/include.rb
+ - tests/runtest.rb