Bug 207932 - New port: devel/libarea
Summary: New port: devel/libarea
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Raphael Kubo da Costa
URL:
Keywords: feature, patch
Depends on:
Blocks:
 
Reported: 2016-03-12 19:40 UTC by Pedro F. Giffuni
Modified: 2016-03-14 21:39 UTC (History)
1 user (show)

See Also:


Attachments
libarea port as a shar file (2.17 KB, text/plain)
2016-03-12 19:40 UTC, Pedro F. Giffuni
no flags Details
libarea port as a shar file (2.16 KB, text/plain)
2016-03-13 15:19 UTC, Pedro F. Giffuni
no flags Details
libarea port as a shar file (2.18 KB, text/plain)
2016-03-13 18:21 UTC, Pedro F. Giffuni
no flags Details
Updated: libarea port as a shar file (2.21 KB, text/plain)
2016-03-14 00:19 UTC, Pedro F. Giffuni
no flags Details
Updated: libarea port as a shar file (2.27 KB, text/plain)
2016-03-14 18:45 UTC, Pedro F. Giffuni
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro F. Giffuni freebsd_committer freebsd_triage 2016-03-12 19:40:02 UTC
Created attachment 168057 [details]
libarea port as a shar file

libarea is a CAM-related software for profile and pocketing operation.

It is used in freecad, which is in the WantedPorts list.
Comment 1 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-13 12:22:52 UTC
> DEPENDS=	libboost_python:${PORTSDIR}/devel/boost-libs
Don't you mean LIB_DEPENDS?

> GH_PROJECT=	libarea
This is not needed because it's the same as PORTNAME.
Comment 2 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-03-13 15:19:03 UTC
Created attachment 168095 [details]
libarea port as a shar file

Update, following rakuco's comments:

/usr/ports/devel/libarea % portlint
looks fine.

(Thanks! I hadn't done a new port in years)
Comment 3 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-13 16:58:46 UTC
It fails to build here, libboost_python.so is in devel/boost-python-libs, not devel/boost-libs.

Additionally, you should add a WWW line to pkg-descr, and I suggest you run `portlint -AC' on the new port, it suggest USE_LDCONFIG=yes because you are installing new shared libraries.
Comment 4 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-03-13 18:21:15 UTC
Created attachment 168099 [details]
libarea port as a shar file

Yikes.. embarrassing amount of errors :-/.

Thanks for the feedback. About the WWW line, I would prefer not to add one for this port: there is the github page but it doesn't provide any valuable information.
Comment 5 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-13 18:46:25 UTC
Having any WWW is helpful, even if it does not provide a lot of information: we have a big number of broken ports whose original distfiles have vanished and it's hard to find out what happened because there's no associated website.
Comment 6 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-03-14 00:19:12 UTC
Created attachment 168122 [details]
Updated: libarea port as a shar file

Nice, while adding the URL I found a newer version.

This appears to be more frequently updated and includes MSVC warnings fixed.
Using the new URL.
Comment 7 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-14 11:36:33 UTC
The port still fails to build on Poudriere because it uses the python-configure binary to determine Python's include path. That comes from lang/python, which is not pulled by USES=python.

You need to add a line like this:
BUILD_DEPENDS=  python-config:${PORTSDIR}/lang/python
Comment 8 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-14 11:37:59 UTC
Since you'll need to change your shar file anyway, I also suggest using USES=cmake:outsource, which will build the port in a separate directory so that the sources and build files are kept away from each other.
Comment 9 Pedro F. Giffuni freebsd_committer freebsd_triage 2016-03-14 18:45:58 UTC
Created attachment 168177 [details]
Updated: libarea port as a shar file

Thanks ... did both updates and checked package still builds here.
Comment 10 commit-hook freebsd_committer freebsd_triage 2016-03-14 21:38:50 UTC
A commit references this bug:

Author: rakuco
Date: Mon Mar 14 21:38:22 UTC 2016
New revision: 411120
URL: https://svnweb.freebsd.org/changeset/ports/411120

Log:
  New port: devel/libarea.

  libarea is a CAM-related software for profile and pocketing operation.

  This project provides library and associated python-modules to compute
  profile and pocket operations.

  libarea is used by HeeksCNC and FreeCAD's Path workbench.

  Written by Dan Heeks <danheeks @ gmail>

  WWW: https://github.com/heeks/libarea

  PR:		207932
  Submitted by:	pfg

Changes:
  head/devel/Makefile
  head/devel/libarea/
  head/devel/libarea/Makefile
  head/devel/libarea/distinfo
  head/devel/libarea/pkg-descr
  head/devel/libarea/pkg-plist
Comment 11 Raphael Kubo da Costa freebsd_committer freebsd_triage 2016-03-14 21:39:37 UTC
Committed, thanks.