2008年5月15日木曜日

パッケージなど検索ページとりまとめ

FreeBSD ports

公式 ports検索ページ
http://www.freebsd.org/ports/
freshports
http://www.freshports.org/search.php

Debian

Debian パッケージ
http://www.debian.org/distrib/packages
Unofficial APT repositories
http://www1.apt-get.org/search.php

Ubuntu

Ubuntu packages
http://packages.ubuntu.com/

だいたい公式で事足りてしまうので、まとめというほどもなく。キーワードを1つ入れれば上のサイトを横断的に検索できるようにする方法はないものか……

2008年5月9日金曜日

pTeXパッケージ関係のメモ(2008年5月)

FreeBSD, Debian, Ubuntu について日本語TeX環境(ptex)パッケージの状況を整理しておくメモ。自分で適当に調べたものなので、事実誤認や調べ不足があったらごめんなさい。
予備知識はTeXディストリビューションあたりを見ていただくとして。
FreeBSD ports:
ptex(japanese/ptex)を入れておけばOK。teTeX(print/teTeX-base)に依存。
tgifなどlocaleにja_JP.eucJPを要求するものがあるので locale も ja_JP.eucJP でいい気がする?
FreeBSDのドキュメントプロジェクト用メタポート (textproj/docproj) で jadetex (print/jadetex) を用いる場合、これも teTeXを参照する。jadatexにも日本語対応版 (japanese/jadetex-ptex)がある。

とにかく TeX関係の ports が teTeX ベースになっているため、(p)texlive を手で入れると、portsからTeXまわりに依存しているものを入れようとしたとき不都合が起こる場合がある。
(例:http://d.hatena.ne.jp/isano/20080404/1207240012
teTeX→texlive関係の議論はportsのMLで話し合われているようだ。
http://groups.google.com/group/mailing.freebsd.ports/browse_thread/thread/5f8d90bcfc0f3822/

ports 側が texlive の移行に踏み切らないと、ptexliveの動作検証は進めづらいのかもしれない。

Debian stable(etch):
Debian系列はtetexからtexliveに移行している。etchは古いためtetexが残っているようだ。
ptex-base は tetex-basetexlive-base のどちらかに依存しているが、とりあえずptex-baseを入れて、あとは任せてしまうのがいい、かも?
http://packages.debian.org/ja/etch/tex/ptex-base
localeがja_JP.UTF-8で、ptexがtexliveに依存していても、texファイルの文字コードはptex(platex)を使う限り EUC などが期待される?
参考:http://d.hatena.ne.jp/n314/20080419/1208582479

Debian testing(lenny):

ptex-baseが基本であることに変わりははない。tetex-baseがtransitionalになっており、事実上 texlive-base への移行を完了しているようだ。

Ubuntu 8.04 LTS(hardy):
Debian testing(2008/5)と同じく ptex-base が基本。こちらもtexlive-baseに依存している。
日本語での作業環境を整えるため、メタパッケージの開発が進んでいる模様。

ptexメインで使うことを想定している限りtexファイルの文字コードはlocaleに関わらずEUCなどで安定ということか。(-kanji=euc|jis|sjis を使うってことで)

texファイルもUTF-8で書きたいという場合、処理方法が2種類あるようです。

ptexlive/ptetex3を使う。
UTF-8で書いたtexファイルをEUC?などに変換して処理するタイプ。日本語 ASCII pTeX をベースに tetex/texlive の一部としてptexを使うのが目標。日本語特化と見なして差し支えなし? ディストロに対するパッケージ化の進捗はあまりよろしくない、ようなので難易度は高め。動作報告を募集中みたいですよ。
本家:http://tutimura.ath.cx/ptexlive/
Debianパッケージ:http://www1.pm.tokushima-u.ac.jp/~kohda/tex/ptexlive.html

xetexなどを使う。
UTF-8の多言語文章として処理することになる。使ったことがないので分からないが、このような処理系があるようだ。 xetex自体はMacOS X用に開発されたそうだが、texlive-xetexという名前でDebian/Ubuntuにパッケージがある。texソースとしてUTF-8文章が混在するときには候補にしてもいいのかも。ただ日本語処理部分がまだ弱い? dvi関係の周辺ツールの対応状況は確認する必要あり?(ptex環境で使っていたものとは違う?)


余談:TeXの周辺アプリケーションを一括導入するパッケージの話と、TeXの処理系の話がごっちゃになっていて分かりづらい。これをすっきり理解することが『TeX利用のレディネス』のひとつなのか。敷居が高いよなあ……

おまけ:いずれはまること間違いなしの PDF絡みの話。あと学会関連のスタイルファイル。

2008年4月22日火曜日

gnome2、いつ、どれを入れたらいいのやら

普段はfvwmがあれば生きていける暮らしを営んでいるわけですが、今回は珍しくgnome2など入れてみようと思い立ちました。しかしmeta-portが結構あるのでまいってしまったわけで。さすがデスクトップ環境。ウィンドウマネジャーだけじゃ収まらない世界ですねえ。

x11/gnome2x11/gnome2-liteはどれくらい違うか? 分からないときはとりあえずdiffとって眺めてみると……


% diff -u x11/gnome2-lite/Makefile x11/gnome2/Makefile
--- x11/gnome2-lite/Makefile 2007-10-25 08:36:58.000000000 +0900
+++ x11/gnome2/Makefile 2008-04-12 19:08:57.000000000 +0900
@@ -1,43 +1,112 @@
-# New ports collection makefile for: gnome2-lite
-# Date created: 30 November 2003
+# New ports collection makefile for: gnome2
+# Date created: 21 May 2002
(中略)
-RUN_DEPENDS= ${LOCALBASE}/libexec/gweather-applet-2:${PORTSDIR}/x11/gnome-applets \
+RUN_DEPENDS?= ${LOCALBASE}/libexec/gweather-applet-2:${PORTSDIR}/x11/gnome-applets \
gnome-cd:${PORTSDIR}/audio/gnome-media \
gnome-dictionary:${PORTSDIR}/deskutils/gnome-utils \
eog:${PORTSDIR}/graphics/eog \
+ gconf-editor:${PORTSDIR}/sysutils/gconf-editor \
+ gnect:${PORTSDIR}/games/gnome-games \
gedit:${PORTSDIR}/editors/gedit \
gnome-terminal:${PORTSDIR}/x11/gnome-terminal \
gnome-session:${PORTSDIR}/x11/gnome-session \
+ bug-buddy:${PORTSDIR}/devel/bug-buddy \
gnome-system-monitor:${PORTSDIR}/sysutils/gnome-system-monitor \
nautilus:${PORTSDIR}/x11-fm/nautilus \
+ ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm \
${LOCALBASE}/share/gnome/help/user-guide/C/user-guide.xml:${PORTSDIR}/misc/gnome-user-docs \
${LOCALBASE}/share/sounds/question.wav:${PORTSDIR}/audio/gnome-audio \
+ ${LOCALBASE}/libdata/pkgconfig/libgail-gnome.pc:${PORTSDIR}/x11-toolkits/libgail-gnome \
file-roller:${PORTSDIR}/archivers/file-roller \
${LOCALBASE}/share/themes/HighContrast/gtk-2.0/gtkrc:${PORTSDIR}/x11-themes/gnome-themes \
- evince:${PORTSDIR}/graphics/evince \
+ gok:${PORTSDIR}/accessibility/gok \
+ nautilus-cd-burner:${PORTSDIR}/sysutils/nautilus-cd-burner \
gcalctool:${PORTSDIR}/math/gcalctool \
gucharmap:${PORTSDIR}/deskutils/gucharmap \
+ zenity:${PORTSDIR}/x11/zenity \
${LOCALBASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera \
- gconf-editor:${PORTSDIR}/sysutils/gconf-editor \
+ ${LOCALBASE}/libexec/gnome-netstatus-applet:${PORTSDIR}/net/gnome-netstatus \
+ dasher:${PORTSDIR}/accessibility/dasher \
+ evolution:${PORTSDIR}/mail/evolution \
+ ${LOCALBASE}/libexec/evolution-webcal:${PORTSDIR}/www/evolution-webcal \
+ network-admin:${PORTSDIR}/sysutils/gnome-system-tools \
+ gnome-nettool:${PORTSDIR}/net/gnome-nettool \
+ vino-session:${PORTSDIR}/net/vino \
+ exchange-connector-setup-2.22:${PORTSDIR}/mail/evolution-exchange \
+ ${LOCALBASE}/lib/gstreamer-0.10/.gstreamer-plugins-core.keep:${PORTSDIR}/multimedia/gstreamer-plugins-core \
+ ${LOCALBASE}/lib/gstreamer-0.10/libgstgconfelements.so:${PORTSDIR}/devel/gstreamer-plugins-gconf \
+ totem:${PORTSDIR}/multimedia/totem \
gnome-control-center:${PORTSDIR}/sysutils/gnome-control-center \
- gnome-mount:${PORTSDIR}/sysutils/gnome-mount \
- totem:${PORTSDIR}/multimedia/totem
-
-MASTERDIR= ${.CURDIR}/../gnome2
-CONFLICTS= gnome2-[0-9]*
-
-DESCR= ${.CURDIR}/pkg-descr
-PKGMESSAGE= ${.CURDIR}/pkg-message
+ ${LOCALBASE}/share/gnome-background-properties/gnome-branded.xml:${PORTSDIR}/x11-themes/gnome-backgrounds \
+ sound-juicer:${PORTSDIR}/audio/sound-juicer \
+ ${LOCALBASE}/libdata/pkgconfig/libgtkhtml-2.0.pc:${PORTSDIR}/www/libgtkhtml \
+ evince:${PORTSDIR}/graphics/evince \
+ ${LOCALBASE}/libexec/fast-user-switch-applet:${PORTSDIR}/x11/fast-user-switch-applet \
+ ${LOCALBASE}/lib/deskbar-applet/deskbar-applet:${PORTSDIR}/deskutils/deskbar-applet \
+ alacarte:${PORTSDIR}/deskutils/alacarte \
+ gnome-power-manager:${PORTSDIR}/sysutils/gnome-power-manager \
+ ${LOCALBASE}/libexec/gnome-volume-manager:${PORTSDIR}/sysutils/gnome-volume-manager \
+ orca:${PORTSDIR}/accessibility/orca \
+ gnome-mount:${PORTSDIR}/sysutils/gnome-mount \
+ ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon \
+ seahorse:${PORTSDIR}/security/seahorse \
+ swfdec-player:${PORTSDIR}/multimedia/swfdec-gnome \
+ mousetweaks:${PORTSDIR}/accessibility/mousetweaks \
+ vinagre:${PORTSDIR}/net/vinagre \
+ cheese:${PORTSDIR}/multimedia/cheese \
+ ${LOCALBASE}/share/hal/fdi/information/10freedesktop/10-camera-ptp.fdi:${PORTSDIR}/sysutils/hal-info
(中略)
+.if !defined(GNOME_SLAVE)
+.if (${ARCH}!="sparc64" ${OSVERSION} >= 601101) && ${ARCH}!="ia64"
+RUN_DEPENDS+= yelp:${PORTSDIR}/x11/yelp \
+ epiphany:${PORTSDIR}/www/epiphany
+.endif
+.if ${.CURDIR:T}!="gnome2-lite"
+.if ${ARCH} == "i386"
+RUN_DEPENDS+= tomboy:${PORTSDIR}/deskutils/tomboy
+.endif
+.if ${OSVERSION}>=600000
+RUN_DEPENDS+= ekiga:${PORTSDIR}/net/ekiga
+.endif
+.endif
+.endif

これはなんだろう、gnome2のほうが、マシンを面前にしてgdmからログインし、デスクトップ環境として使う場合で、gnome2-liteはコンソールログインしてstartxするとか、vncあたりから使う、ウィンドウマネージャーという位置づけでしょうかね。gstreamer、電源関係、CDバーナーなどが無いあたりからの想像です。きっと探せばports作ってる人の主張がどこかにあるのでしょう。


他にもいくつかのツールが別のメタポートに纏められている様子。

http://www.freebsd.org/gnome/docs/faq2.html#q4  より引用

* The GNOME Fifth Toe (x11/gnome2-fifth-toe) consists of stable GNOME applications that many users expect to find in a functional desktop environment. This includes image manipulation applications, chat and instant messenger applications, and music and multimedia players

* The GNOME Hacker Tools (devel/gnome2-hacker-tools) consists of applications developers would need to create and maintain GNOME software projects. This includes IDEs, interface builders, "hacker" editors, and code generation tools.

* The GNOME Office (editors/gnome2-office) consists of applications that are commonly found in office or productivity suites. This includes a spreadsheet application, word processor, project management application, database access application, groupware suite, and diagramming application.


* The GNOME Power Tools (x11/gnome2-power-tools) consists of utilities and applets for the technically-minded GNOME user. It also contains many useful add-on utilities for some of the applications found in the Desktop and Fifth Toe.

どれで何が入るかはMakefileをのぞいていただくとして。このようにいろいろなアプリがあるようなのですが、とりあえず今回はベタにliteを……

と思ってよく見たらx11/gnome2は2.22.1なのに x11/gnome2-lite は 2.20.1 のままだった……念のため、しばらく延期ということにします。orz