Skip to content

xschem: new port of xschem schematic editor for EDA #28171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bpdegnan
Copy link
Contributor

@bpdegnan bpdegnan commented Apr 16, 2025

Description

xschem: new port for Xschem schematic editor

Type(s)

new Portfile

Tested on

macOS 13.7.5 22H527 x86_64
Xcode 14.3.1 14E300c

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

Copy link
Contributor

@reneeotten reneeotten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the submission @bpdegnan and apologies for the delay. Please find above/below some question/suggestions/requests.

PortSystem 1.0

name xschem
version 3.4.6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest upstream version is 3.4.7 by now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to get 3.4.7 to download through the existing framework on sourceforge, but I was unable to do so. I also have not extensively tested 3.4.7, and for that reason we are using 3.4.6 until I can get a chance to give it some testing.

homepage https://xschem.sourceforge.io/stefan/index.html

distname ${name}-${version}
master_sites master_sites sourceforge:xschem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplication of master_sites

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

port:tk \
port:xorg-libX11

use_configure yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default, please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

port:xorg-libX11

use_configure yes
configure.args --prefix=${prefix}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default, please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


set docdir ${prefix}/share/doc/${name}

depends_build port:pkgconfig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should become path:bin/pkg-config:pkgconfig so that the pkgconf port can also satisfy the dependence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

set docdir ${prefix}/share/doc/${name}

depends_build port:pkgconfig
depends_lib port:cairo \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you. might want to include path:include/turbojpeg.h:libjpeg-turbo \ here as well since the configure script looks for it.

There appear to be more dependencies listed than upstream gives as required/optional.... For example, where does freetype, Xft2, readline come from? I suggest to take another close look at the requirements here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed a bunch of stuff here, and honestly, I don't recall why I needed it. I have been using macports to support my local software for awhile, and I think a lot of this was legacy. I was able to strip out all of those except xpm.

port:readline \
port:tcl \
port:tk \
port:xorg-libX11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please align the dependencies in the same was as the rest of the Portfile - why four additional spaces here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I got this.

set sharedir ${destroot}${prefix}/share/xschem
set docdir ${destroot}${prefix}/share/doc/${name}

xinstall -d ${bindir} ${sharedir} ${docdir}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure that MacPorts creates the bin and share directory already so that seems redundant, please double check

use_configure yes
configure.args --prefix=${prefix}

destroot {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overriding the complete destroot phase is a bit unconventional; is there no install target that will take care of some of these things already? If you need to copy extra stuff, you would typically do that in a post-destroot phase.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope that I got this updated correctly. I, honestly, don't know what I was thinking.

@reneeotten
Copy link
Contributor

ping @bpdegnan

@bpdegnan
Copy link
Contributor Author

Please excuse the slow responses. I'm neck deep in a semiconductor tapeout and haven't looked at much else but pushing rectangles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants