These are a selection of libraries for Java which I have written because they are useful and not provided with normal Java. They are available for download here and are licensed under the GPL or LGPL. They all come with example applications using the libraries. Reproducible: Always
Created attachment 106624 [details] libmatthew-java/libmatthew-java-0.3.ebuild The ebuild
In future it would be great if you could describe the packages functionality in the ebuild. This is taken from the website. I apologies about the formatting. These are a selection of libraries for Java which I have written because they are useful and not provided with normal Java. They are available for download here and are licensed under the GPL or LGPL. They all come with example applications using the libraries. The ones I consider distribution-worthy are packaged up together. Unix Sockets Library This is a collection of classes and native code to allow you to read and write Unix sockets in Java. Debug Library This is a comprehensive logging and debugging solution. CGI Library This is a collection of classes and native code to allow you to write CGI applications in Java. I/O Library This provides a few much needed extensions to the Java I/O subsystem. Firstly, there is a class which will connect and InputStream with an OutputStream and copy data between them. Secondly there are two classes for inserting into an Input or OutputStream pipe a command line command, so that everything is piped through that command. Thirdly there are a pair of classes for splitting streams in two. This can either be to two OuputStreams, or to an OutputStream and a file. Equivelent to the UNIX tool tee in UNIX pipes. Hexdump This class formats byte-arrays in hex and ascii for display.
(In reply to comment #0) On amd64/no-multilib the ebuild emerged only when CFLAGS got -fPIC. Thank you, for this nice lib. I used it to compile dbus-java bindings.
In java-overlay. Also dbus-java is in that overlay too.
Created attachment 160470 [details] libmatthew-java-0.7.1-r1 libmatthew-java-0.7.1-r1 compile problem
An error occurs while compiling libmatthew-java. I've attached the log file. -------------- emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Timestamp of tree: Mon, 14 Jul 2008 20:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.linux.org.tr/pub/mirrors/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/zugaina /usr/portage/local/layman/sunrise /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/berkano /usr/portage/local/layman/lapis /usr/portage/local/layman/voip /usr/portage/local/layman/catalystframework /usr/portage/local/layman/sipx /usr/portage/local/layman/science /usr/portage/local/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 automount avahi bash-completion berkdb bitmap-fonts bzip2 chroot cjk cli cracklib crypt cups dbus divx divx4linux dri dvd dvdr dvdread encode ffmpeg foomaticdb fortran freetype fuse gif glibc glitz glut gnutls gpm gtk gtk2 hal hplj-1018 i8x0 iconv icq ieee1394 imagemagick immqt-bc ipv6 isdnlog ithreads jabber java jpeg jpeg2k kde kdehiddenvisibility libnotify mad matroska midi mjpeg mmx mmxext mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pcre pdf perl png pppd pthreads pulseaudio python qt3 qt4 readline reflection sdl session spl sqlite sse sse2 ssl svg tcpd threads truetype truetype-fonts type1 type1-fonts unicode vcd vorbis win32codecs wxwindows x86 xcomposite xorg xulrunner xv xvid zlib" ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev i810 v4l vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #6) > An error occurs while compiling libmatthew-java. I've attached the log file. > -------------- > emerge --info > Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, > 2.6.22-gentoo-r8 i686) > ================================================================= > System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz > Timestamp of tree: Mon, 14 Jul 2008 20:00:01 +0000 > ccache version 2.4 [enabled] > app-shells/bash: 3.2_p33 > dev-java/java-config: 1.3.7, 2.1.6 > dev-lang/python: 2.4.4-r13 > dev-python/pycrypto: 2.0.1-r6 > dev-util/ccache: 2.4-r7 > sys-apps/baselayout: 1.12.11.1 > sys-apps/sandbox: 1.2.18.1-r2 > sys-devel/autoconf: 2.13, 2.61-r2 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 > sys-devel/binutils: 2.18-r3 > sys-devel/gcc-config: 1.4.0-r4 > sys-devel/libtool: 1.5.26 > virtual/os-headers: 2.6.23-r3 > ACCEPT_KEYWORDS="x86" > CBUILD="i686-pc-linux-gnu" > CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 > -mmmx" > CHOST="i686-pc-linux-gnu" > CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env > /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" > CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf > /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ > /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo > /etc/udev/rules.d" > CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 > -mmmx" > DISTDIR="/usr/portage/distfiles" > FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms > sign strict unmerge-orphans userfetch" > GENTOO_MIRRORS="ftp://ftp.linux.org.tr/pub/mirrors/gentoo > http://distro.ibiblio.org/pub/linux/distributions/gentoo/" > LANG="en_US.UTF-8" > LC_ALL="en_US.UTF-8" > LDFLAGS="-Wl,-O1" > LINGUAS="en" > MAKEOPTS="-j3" > PKGDIR="/usr/portage/packages" > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress > --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles > --exclude=/local --exclude=/packages" > PORTAGE_TMPDIR="/var/tmp" > PORTDIR="/usr/portage" > PORTDIR_OVERLAY="/usr/portage/local/layman/zugaina > /usr/portage/local/layman/sunrise > /usr/portage/local/layman/webapps-experimental > /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/berkano > /usr/portage/local/layman/lapis /usr/portage/local/layman/voip > /usr/portage/local/layman/catalystframework /usr/portage/local/layman/sipx > /usr/portage/local/layman/science /usr/portage/local/layman/java-overlay > /usr/local/portage" > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > USE="X a52 aac acl acpi alsa apache2 automount avahi bash-completion berkdb > bitmap-fonts bzip2 chroot cjk cli cracklib crypt cups dbus divx divx4linux dri > dvd dvdr dvdread encode ffmpeg foomaticdb fortran freetype fuse gif glibc glitz > glut gnutls gpm gtk gtk2 hal hplj-1018 i8x0 iconv icq ieee1394 imagemagick > immqt-bc ipv6 isdnlog ithreads jabber java jpeg jpeg2k kde kdehiddenvisibility > libnotify mad matroska midi mjpeg mmx mmxext mng mp3 mpeg mudflap ncurses nls > nptl nptlonly nsplugin ogg opengl openmp oss pcre pdf perl png pppd pthreads > pulseaudio python qt3 qt4 readline reflection sdl session spl sqlite sse sse2 > ssl svg tcpd threads truetype truetype-fonts type1 type1-fonts unicode vcd > vorbis win32codecs wxwindows x86 xcomposite xorg xulrunner xv xvid zlib" > ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop > empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi > null plug rate route share shm softvol" APACHE2_MODULES="actions alias > auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm > authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache > dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache > filter headers include info log_config logio mem_cache mime mime_magic > negotiation rewrite setenvif speling status unique_id userdir usertrack > vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses > text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev i810 v4l vesa" > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS > Fixed in SVN. Thanks for reporting.
Added to portage.