Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Apr 2022 04:08:34 +0200
From:      "rollniak" <rollniak@courrier.dev>
To:        <freebsd-ports@freebsd.org>
Subject:   make don't know how to make-crates
Message-ID:  <CIYJCGLEJICI.1W48B75GMW34B@aramaki.int.rollniak.eu>

next in thread | raw e-mail | index | archive | help
Hello,

I'm trying to make my first port on FreeBSD with sendxmpp-rs (
https://github.com/moparisthebest/sendxmpp-rs ).
I wrote the following _Makefile_:

```
PORTNAME=3D			sendxmpp-rs
PORTVERSION=3D		2.0.0
DISTVERSIONPREFIX=3D	v
CATEGORIES=3D			net-im

MAINTAINER=3D			rollniak@courrier.dev
COMMENT=3D			Send XMPP messages from the command
line.

USE=3D				cargo
USE_GITHUB=3D			yes
GH_ACCOUNT=3D			moparisthebest
CONFLICTS=3D			sendxmpp
```

And executed `make makesum`:

```
$ make makesum
=3D=3D=3D>   sendxmpp-rs-2.0.0 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by sendxmpp-rs-2.0.0 for buildin=
g
```

But when I ran 'make cargo-crates`, I got the following message instead
of a CARGO_CRATES output I expected:

```
make: don't know how to make cargo-crates. Stop

make: stopped in /usr/local/poudriere/ports/devel/net-im/sendxmpp-rs
```

cargo is installed on my machine and based on the content of
_Cargo.toml_ I think I should have another output

_Cargo.toml_:

```
[package]
name =3D "sendxmpp"
version =3D "2.0.0"
authors =3D ["moparisthebest <admin@moparisthebest.com>"]

description =3D "Send XMPP messages from the command line."
repository  =3D
"https://code.moparisthebest.com/moparisthebest/sendxmpp-rs"
keywords    =3D ["xmpp"]

license =3D "AGPL-3.0-or-later"
readme =3D "README.md"

edition =3D "2018"

include =3D [
    "**/*.rs",
    "Cargo.toml",
    "*.md",
    "sendxmpp.toml",
]

[dependencies]
toml =3D "0.5"
serde_derive =3D "1.0"
serde =3D { version =3D "1.0", features =3D ["derive"] }
gumdrop =3D "0.8.0"
gumdrop_derive =3D "0.8.0"
dirs =3D "3.0.1"
tokio-xmpp =3D "3.0.0"
tokio =3D { version =3D "1", features =3D ["net", "rt",
"rt-multi-thread", "macros", "io-util", "io-std"] }
tokio-tls =3D { package =3D "tokio-native-tls", version =3D
"0.3" }
xmpp-parsers =3D "0.18"
die =3D "0.2.0"
anyhow =3D "1.0"
```

Can someone help me to find out what the output of `make cargo-crates`
mean or give me some hint about how to fix this issue ? :)

Have a nice day,
rollniak



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CIYJCGLEJICI.1W48B75GMW34B>