Skip to content

Commit

Permalink
py-dns-lexicon: remove poetry dependency
Browse files Browse the repository at this point in the history
See https://trac.macports.org/ticket/62297
See https://trac.macports.org/ticket/62296
Closes https://trac.macports.org/ticket/62682

- Remove py-future dependency and fix setuptools category
- Simplify symlink
- Unpin py36 version
  • Loading branch information
harens authored and Schamschula committed May 2, 2021
1 parent 750981f commit 76360a8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 36 deletions.
45 changes: 14 additions & 31 deletions python/py-dns-lexicon/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ PortGroup select 1.0
name py-dns-lexicon
version 3.6.0
epoch 1
revision 0
revision 1
categories-append net
license MIT
supported_archs noarch
maintainers {mps @Schamschula} openmaintainer
description Manipulate DNS records on various DNS providers in a \
standardized/agnostic way.
long_description ${description}
long_description {*}${description}
platforms darwin
homepage https://github.com/AnalogJ/lexicon

Expand All @@ -24,15 +25,19 @@ checksums rmd160 3ecbdecae07aabe1d31f28a3f4374c636b2df501 \
size 156047

if {${name} ne ${subport}} {
depends_lib-append \
depends_run-append \
port:py${python.version}-beautifulsoup4 \
port:py${python.version}-cryptography \
port:py${python.version}-dnspython \
port:py${python.version}-future \
port:py${python.version}-requests \
port:py${python.version}-tldextract \
port:py${python.version}-yaml
port:py${python.version}-yaml \
port:lexicon_select

depends_lib-append \
port:py${python.version}-setuptools

if {${python.version} < 37} {
if {${python.version} eq 27} {
python.rootname \
lexicon
version 3.3.28
Expand All @@ -42,33 +47,11 @@ if {${name} ne ${subport}} {
checksums rmd160 350bc0315c4f176ab2774387f17110c1cc29cd37 \
sha256 0dc0c1a9a33ec53a6ac8eb78d1faf1d0062cce9338bbc80e6e45fb7e621599a7 \
size 6840070

depends_build-append \
port:py${python.version}-setuptools

} else {
PortGroup active_variants 1.1

python.pep517 yes

require_active_variants \
poetry python${python.version}

depends_build-append \
port:poetry \
port:py${python.version}-poetry-core \
port:py${python.version}-wheel

depends_lib-append \
port:py${python.version}-beautifulsoup4
}

post-destroot {
# binary is not set to executable, see https://trac.macports.org/ticket/62297
file attributes ${destroot}${frameworks_dir}/Python.framework/Versions/${python.branch}/bin/lexicon -permissions a+x

depends_run-append \
port:py${python.version}-future \
}

depends_run port:lexicon_select
select.group lexicon
select.file ${filespath}/lexicon${python.version}

Expand Down
2 changes: 1 addition & 1 deletion python/py-dns-lexicon/files/lexicon27
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${frameworks_dir}/Python.framework/Versions/2.7/bin/lexicon
bin/lexicon-2.7
2 changes: 1 addition & 1 deletion python/py-dns-lexicon/files/lexicon36
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${frameworks_dir}/Python.framework/Versions/3.6/bin/lexicon
bin/lexicon-3.6
2 changes: 1 addition & 1 deletion python/py-dns-lexicon/files/lexicon37
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${frameworks_dir}/Python.framework/Versions/3.7/bin/lexicon
bin/lexicon-3.7
2 changes: 1 addition & 1 deletion python/py-dns-lexicon/files/lexicon38
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${frameworks_dir}/Python.framework/Versions/3.8/bin/lexicon
bin/lexicon-3.8
2 changes: 1 addition & 1 deletion python/py-dns-lexicon/files/lexicon39
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${frameworks_dir}/Python.framework/Versions/3.9/bin/lexicon
bin/lexicon-3.9

0 comments on commit 76360a8

Please sign in to comment.