2009-04-19 7 views
1

MacPortsのローカルリポジトリにポートを追加しようとしています。MacPortsのローカルリポジトリにポートを追加できません

私はguideを知っています。私は/ユーザ/瑪斯/ binに/ MacPortsを/ポート/ Gitのに失敗した

portindex 
Creating software index in /Users/Masi/bin/MacPorts/ports/Git 

Total number of ports parsed: 0 
Ports successfully parsed: 0  
Ports failed:   0 

マイポート・ファイルで実行

は、以下の

PortSystem   1.0 

name    git-svn 
version    1.0 
categories   git 
maintainers   sl 
description   svn for Git 
long_description Git-svn is a tool which allows Git to use svn 
homepage   http://www.kernel.org/pub/software/scm/git/docs/git-svn.html 
platforms   darwin 
master_sites  http://git-scm.com/ 

checksums   md5 

depends_lib   
        port:syfi-dev\ 
        port:syfi-doc\ 
        port:python-syfi0\ 
        port:libcln5\ 
        port:libsyfi0\ 
        port:libginac1.4\ 
        port:libsyfi0-dev\ 
        port:syfi-bin\ 

#I do not know what these are: I leave them as they are by default 
configure.args  --enable-perl-site-install \ 
        --mandir=${prefix}/share/man 

マイsources.conf

です
# MacPorts system wide sources configuration file 
# $Id: sources.conf 42662 2008-11-28 23:18:50Z [email protected] $ 

# To setup a local ports repository, insert a "file://" entry following 
# the example below that points to your local ports directory: 
# Example: file:///Users/landonf/misc/MacPorts/ports 
file:///Users/Masi/bin/MacPorts/ports 
rsync://rsync.macports.org/release/ports 


# The default MacPorts repository should always be tagged [default] 
# for proper functionality of various resources (port groups, mirror 
# sites, etc). If you switch it from the rsync:// URL, be sure to keep 
# it tagged [default]. 

# To prevent a source from synchronizing when `port sync` is used, 
# append [nosync] at the end as shown in this example: 
# Example: file:///Users/landonf/misc/MacPorts/ports [nosync] 

# NOTE: The port command parses source URLs in order and installs the 
#  first occurrance when a port appears in multiple repositories. 
#  So keep "file://" URLs above other URL types. 


# To get the ports tree from the master MacPorts server in California, USA use: 
#  rsync://rsync.macports.org/release/ports/ 
# To get it from the mirror in Trondheim, Norway use: 
#  rsync://trd.no.rsync.macports.org/release/ports/ 
# A current list of mirrors is available at http://trac.macports.org/wiki/Mirrors 
rsync://rsync.macports.org/release/ports/ [default] 

ローカルMacPortsにポートを追加するにはどうすればいいですか?

答えて

3

でPortfiles 次の方法で整理する必要があります。

$LOCAL_PORT_DIR/{category}/{portname}/ 

すべてのファイルPortfileを含む、そのディレクトリの下に移動します。あなたのケースでは

、あなたのローカルポートdirが/Users/Masi/bin/MacPorts/portsあり、そしてあなたのポート、git-svn、ディレクトリ構造は次のようになりますので、カテゴリgitである:

/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile 

git-svnの特殊な場合には、しかし、あなたは常にバリアント+svnとポートgit-coreをインストールすることができ、そのような:。$ sudo port install git-core +svn

(また、別のサイドノートとして、Gitの関連のポートは通常、カテゴリ「develの」ではなく、「gitの下に編成されています")。

+0

オプション+とは何ですか?私はそのようなオプションについての詳細な文書を見つけようとしなかった。私のMacPorts tabCompletionはそのようなオプションを見つけません。 –

+0

次のエラーメッセージが表示されます。http://dpaste.com/35580/ –

+2

+記号を使用してポートバリアントを指定します。また、エラーはすでにgit-coreがインストールされているために発生します。まずgit-coreをアンインストールしてから、sudo port install git-core + svnを使用して再インストールします。 – mipadi

1

私は確信していませんが、あなたのディレクトリ構造をこのフォーマットに変更する必要があると思います:portcategory/portname/Portfile。あなたのルートローカルレポからportindexを実行しようと次に/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile

だろうあなたのケース(/Users/Masi/bin/MacPorts/ports

+0

$ portindexを実行しても同じ結果が得られます。 –

関連する問題