문제

MacPorts의 지역 저장소에 포트를 추가하려고합니다.

나는 알고있다 가이드.

나는/사용자/masi/bin/macports/ports/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

내 출처 .conf

#  MacPorts system wide sources configuration file
#  $Id: sources.conf 42662 2008-11-28 23:18:50Z raimue@macports.org $

#  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에 어떻게 포트를 추가 할 수 있습니까?

도움이 되었습니까?

해결책

포트 파일 ~ 해야 하다 다음과 같은 방식으로 구성하십시오.

$LOCAL_PORT_DIR/{category}/{portname}/

모든 파일을 포함한 모든 파일 Portfile, 그 디렉토리 아래로 이동하십시오.

귀하의 경우, 귀하의 로컬 포트는입니다 /Users/Masi/bin/MacPorts/ports, 그리고 당신의 항구, git-svn,, 카테고리에 있습니다 git, 디렉토리 구조는 다음과 같습니다.

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

(특별한 경우 git-svn, 그러나 항상 포트를 설치할 수 있습니다 git-core 변형으로 +svn, 그렇게 : $ sudo port install git-core +svn.)

(또 다른 참고로, git 관련 포트는 일반적으로 "git"이 아닌 "Devel"범주에 따라 구성됩니다.)

다른 팁

확실하지 않지만 디렉토리 구조를이 형식으로 변경해야한다고 생각합니다. portcategory/portname/Portfile. 당신의 경우 그럴 것입니다 /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile

그런 다음 로컬 리포의 루트에서 Portindex를 실행하십시오 (/Users/Masi/bin/MacPorts/ports)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top