无法将端口添加到 MacPorts 中的本地存储库

发布于 2024-07-17 12:43:34 字数 2970 浏览 4 评论 0原文

我正在尝试将端口添加到 MacPorts 中的本地存储库。

我知道指南

我在 /Users/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

我的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]

如何添加端口成功连接到本地 MacPort 吗?

I am trying to add a port to my local repo in MacPorts.

I know the guide.

I run at /Users/Masi/bin/MacPorts/ports/Git unsuccessfully

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

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

My port-file is the following

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

My 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]

How can you add a port to your local MacPorts successfully?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

躲猫猫 2024-07-24 12:43:34

Portfiles必须按以下方式组织:

$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 相关的端口通常组织在类别“devel”,而不是“git”。)

Portfiles must be organized in the following fashion:

$LOCAL_PORT_DIR/{category}/{portname}/

All files, including Portfile, go under that directory.

In your case, your local port dir is /Users/Masi/bin/MacPorts/ports, and your port, git-svn, is in the category git, so your directory structure should look like this:

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

(In the special case of git-svn, though, you can always install the port git-core with the variant +svn, like so: $ sudo port install git-core +svn.)

(Also, as another side note, Git-related ports are typically organized under the category "devel", not "git".)

生生漫 2024-07-24 12:43:34

我不确定,但我认为您需要将目录结构更改为以下格式:portcategory/portname/Portfile。 在您的情况下,这将是 /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile

然后尝试从本地存储库的根目录运行 portindex (/Users/ Masi/bin/MacPorts/ports)

I'm not sure but I think you need to change your directory structure to this format: portcategory/portname/Portfile. In your case that would be /Users/Masi/bin/MacPorts/ports/git/git-svn/Portfile

Then try to run portindex from the root of you local repo (/Users/Masi/bin/MacPorts/ports)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文