@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

= clojureをGentoo/Prefix MacOSXで

[2010-08-25 21:52:15]
>>>[gentoo]
>>>[clojure]

http://lowlife.jp/mft/stories/35.htmlを参考に進める

/Users/peccu/Gentoo% echo 'PORTDIR_OVERLAY="/Users/peccu/Gentoo/overlay"'>>$EPREFIX/etc/make.conf
/Users/peccu/Gentoo% mkdir overlay              
/Users/peccu/Gentoo% cd overlay                 
/Users/peccu/Gentoo/overlay% ecopy dev-lang/clojure
zsh: command not found: ecopy

Gentoo Linux Documentation -- Importing ebuilds in Gentoo Prefixによるとスクリプトらしい.パス通ってないんか.

/Users/peccu/Gentoo/overlay% ls $EPREFIX/usr/portage/scripts 
bootstrap-bash.sh  bootstrap-prefix.sh	deapify  eapify  ecleankw  ecopy  eupdate.in  ghc-binary-macos.sh  keyword-check.rb  pilots  startprefix.in  treesync
/Users/peccu/Gentoo/overlay% $EPREFIX/usr/portage/scripts/ecopy !ec:$
$EPREFIX/usr/portage/scripts/ecopy dev-lang/clojure
 * This script requires the use of qatom, please emerge
 * app-portage/portage-utils to continue.
/Users/peccu/Gentoo/overlay% emerge -uaDNvtj qatom             
!!! Invalid PORTDIR_OVERLAY (not a dir): '/User/peccu/Gentoo/overlay'

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "qatom".

Gentoo Wiki Archives - Portage-utilsによるとportage-utilsに入ってると

/Users/peccu/Gentoo/overlay% emerge -uaDNvtj portage-utils
!!! Invalid PORTDIR_OVERLAY (not a dir): '/User/peccu/Gentoo/overlay'

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] app-portage/portage-utils-0.2.1  87 kB

Total: 1 package (1 new), Size of downloads: 87 kB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-portage/portage-utils-0.2.1
>>> Installing (1 of 1) app-portage/portage-utils-0.2.1
>>> Recording app-portage/portage-utils in "world" favorites file...
>>> Jobs: 1 of 1 complete                           Load avg: 1.99, 1.81, 2.22

 * Messages for package app-portage/portage-utils-0.2.1:

 * /Users/peccu/Gentoo//etc/portage/postsync.d/q-reinitialize has been installed for convenience
 * If you wish for it to be automatically run at the end of every --sync simply chmod +x /Users/peccu/Gentoo//etc/portage/postsync.d/q-reinitialize
 * Normally this should only take a few seconds to run but file systems such as ext3 can take a lot longer.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 1 config files in '//Users/peccu/Gentoo/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

ecopy入ったみたい

/Users/peccu/Gentoo/overlay% $EPREFIX/usr/portage/scripts/ecopy dev-lang/clojure
clojure-1.2.0.ebuild
2010-08-25 21:59:28 URL:http://tinderbox.dev.gentoo.org/portage/dev-lang/clojure/ChangeLog [709/709] -> "ChangeLog" [1]
2010-08-25 21:59:28 URL:http://tinderbox.dev.gentoo.org/portage/dev-lang/clojure/metadata.xml [260/260] -> "metadata.xml" [1]
2010-08-25 21:59:29 URL:http://tinderbox.dev.gentoo.org/portage/dev-lang/clojure/Manifest [1169/1169] -> "Manifest" [1]
2010-08-25 21:59:29 URL:http://tinderbox.dev.gentoo.org/portage/dev-lang/clojure/clojure-1.2.0.ebuild [1402/1402] -> "clojure-1.2.0.ebuild" [1]
!!! Invalid PORTDIR_OVERLAY (not a dir): '/User/peccu/Gentoo/overlay'
Processing clojure-1.2.0.ebuild
  replacing ${D} -> ${ED} ... not found
  replacing ${ROOT} -> ${EROOT} ... not found
!!! Invalid PORTDIR_OVERLAY (not a dir): '/User/peccu/Gentoo/overlay'
Processing clojure-1.2.0.ebuild ... 
 * 
 * ekeyword not found! Please emerge app-portage/gentoolkit-dev then run 'ekeyword ~x86-macos clojure-1.2.0.ebuild' manually
!!! Invalid PORTDIR_OVERLAY (not a dir): '/User/peccu/Gentoo/overlay'
Appending /Users/peccu/Gentoo/overlay to PORTDIR_OVERLAY...
>>> Creating Manifest for /Users/peccu/Gentoo/overlay/dev-lang/clojure
/Users/peccu/Gentoo/overlay% emerge --search clojure
WARNING: One or more repositories have missing repo_name entries:

	/Users/peccu/Gentoo/overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Searching...    
[ Results for search key : clojure ]
[ Applications found : 1 ]

*  dev-lang/clojure [ Masked ]
      Latest version available: 1.2.0
      Latest version installed: [ Not Installed ]
      Size of files: 3,502 kB
      Homepage:      http://clojure.org/
      Description:   Clojure is a dynamic programming language that targets the Java Virtual Machine
      License:       EPL-1.0

出てきた.マスクして入れてみよかな

/Users/peccu/Gentoo/overlay% emerge -uaDNvtj clojure      
WARNING: One or more repositories have missing repo_name entries:

	/Users/peccu/Gentoo/overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "dev-lang/clojure" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/clojure-1.2.0 (masked by: missing keyword)


For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

/Users/peccu/Gentoo/overlay% autounmask "=dev-lang/clojure-1.2.0"

 autounmask version 0.27 (using PortageXS-0.02.09 and portage-2.2.01.15553)

 * Using repositories:
     /Users/peccu/Gentoo/usr/portage
     /Users/peccu/Gentoo/overlay

 * Using package.keywords file: /Users/peccu/Gentoo/etc/portage/package.keywords
 * Using package.unmask file: /Users/peccu/Gentoo/etc/portage/package.unmask
 * Using package.use file: /Users/peccu/Gentoo/etc/portage/package.use

 * Unmasking dev-lang/clojure-1.2.0 and its dependencies.. this might take a while..

WARNING: One or more repositories have missing repo_name entries:

	/Users/peccu/Gentoo/overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
 * Added '=dev-lang/clojure-1.2.0 **' to /Users/peccu/Gentoo/etc/portage/package.keywords
WARNING: One or more repositories have missing repo_name entries:

	/Users/peccu/Gentoo/overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
 * done!
/Users/peccu/Gentoo/overlay% emerge -uaDNvtj clojure             
WARNING: One or more repositories have missing repo_name entries:

	/Users/peccu/Gentoo/overlay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-lang/clojure-1.2.0  USE="-source -test" 3,503 kB [1]
[ebuild  N    ]  virtual/jre-1.6.0  0 kB [0]
[ebuild  N    ]  dev-java/ant-core-1.8.1  USE="-doc -source" 5,740 kB [0]
[ebuild  N    ]   virtual/jdk-1.6.0  0 kB [0]
[ebuild  N    ]    dev-java/apple-jdk-bin-1.6.0  0 kB [0]
[ebuild  N    ]   dev-java/javatoolkit-0.3.0-r3  17 kB [0]
[ebuild  N    ]    dev-python/pyxml-0.8.4-r2  USE="-doc -examples" 718 kB [0]
[ebuild  N    ]   dev-java/java-config-2.1.11  60 kB [0]
[ebuild  N    ]    dev-java/java-config-wrapper-0.16  8 kB [0]

Total: 9 packages (9 new), Size of downloads: 10,043 kB
Portage tree and overlays:
 [0] /Users/peccu/Gentoo/usr/portage
 [1] /Users/peccu/Gentoo/overlay

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 9) dev-java/java-config-wrapper-0.16
>>> Emerging (2 of 9) dev-python/pyxml-0.8.4-r2
>>> Installing (1 of 9) dev-java/java-config-wrapper-0.16
>>> Emerging (3 of 9) dev-java/java-config-2.1.11
>>> Installing (2 of 9) dev-python/pyxml-0.8.4-r2
>>> Installing (3 of 9) dev-java/java-config-2.1.11
>>> Emerging (4 of 9) dev-java/javatoolkit-0.3.0-r3
>>> Emerging (5 of 9) dev-java/apple-jdk-bin-1.6.0
>>> Installing (5 of 9) dev-java/apple-jdk-bin-1.6.0
>>> Installing (4 of 9) dev-java/javatoolkit-0.3.0-r3
>>> Emerging (6 of 9) virtual/jdk-1.6.0
>>> Installing (6 of 9) virtual/jdk-1.6.0
>>> Emerging (7 of 9) dev-java/ant-core-1.8.1
>>> Emerging (8 of 9) virtual/jre-1.6.0
>>> Installing (8 of 9) virtual/jre-1.6.0
>>> Installing (7 of 9) dev-java/ant-core-1.8.1
>>> Emerging (9 of 9) dev-lang/clojure-1.2.0 from unknown repo
>>> Installing (9 of 9) dev-lang/clojure-1.2.0
>>> Recording dev-lang/clojure in "world" favorites file...
>>> Jobs: 9 of 9 complete                           Load avg: 3.95, 3.22, 2.56

 * Messages for package dev-java/apple-jdk-bin-1.6.0:

 * Note: you're using your OSX (pre-)installed Java installation

 * Messages for package dev-java/ant-core-1.8.1:

 * The way of packaging ant in Gentoo has changed significantly since
 * the 1.7.0 version, For more information, please see:
 * http://www.gentoo.org/proj/en/java/ant-guide.xml
 * 
 * Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE
 * flags have been moved to dev-java/ant.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 1 config files in '//Users/peccu/Gentoo/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

 * IMPORTANT: 1 news items need reading for repository 'gentoo_prefix'.
 * Use eselect news to read news items.

これで無事入りましたとさ