2009-04-19 4 views
1

MacPorts의 로컬 저장소에 포트를 추가하려고합니다.MacPorts의 로컬 저장소에 포트를 추가 할 수 없습니다.

저는 guide을 알고 있습니다. 내가/사용자/MASI/빈/MacPorts를/포트/힘내 실패

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을 포함하여 해당 디렉토리로 이동하십시오. 귀하의 경우에는

, 해당 지역의 포트 디렉토리는 /Users/Masi/bin/MacPorts/ports, 그리고 당신의 포트 git-svn는, 카테고리 git에 있으므로 디렉토리 구조는 다음과 같아야합니다

git-svn의 특별한 경우
/Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile 

(하지만, 당신은 항상 같이 변형 +svn와 포트를 git-core 설치할 수 있습니다. $ sudo port install git-core +svn) 또한

를 (다른 쪽 참고로, 힘내 관련 포트는 일반적으로 카테고리 "(STABLE)"에서 구성되어 있습니다, 없습니다 "자식 ").

+0

+ 무엇을 옵션이라고 부릅니까? 나는 그러한 옵션에 대한 더 많은 문서를 성공적으로 찾지 않으려 고 노력했다. 내 MacPorts tabCompletion은 이러한 옵션을 찾지 못합니다. –

+0

다음 오류 메시지가 나타납니다. http://dpaste.com/35580/ –

+2

+ 기호를 사용하여 포트 변형을 지정합니다. 또한 오류는 이미 git-core를 설치했기 때문에 발생합니다. git-core를 먼저 제거한 다음 sudo port install git-core + svn을 사용하여 다시 설치하십시오. – mipadi

1

잘 모르겠지만 디렉토리 구조를 portcategory/portname/Portfile으로 변경해야한다고 생각합니다. 귀하의 경우에는 그 /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile 다음

당신의 루트 지역의 repo에서 portindex를 실행하려고 할 것이다 (/Users/Masi/bin/MacPorts/ports)

+0

$ portindex를 실행 한 후에도 같은 결과가 나옵니다. –

관련 문제