Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
R-cran-getopt Accept short and long flags in Rscript
1.21.1 devel Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.21.1Version of this port present on the latest quarterly branch.
Maintainer: longros@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2019-11-16 16:50:49
Last Update: 2026-10-11 16:25:47
Commit Hash: a5f310c
License: GPLv2
WWW:
https://cran.r-project.org/package=getopt
Description: #
Package designed to be used with Rscript to write "#!" shebang scripts that accept short and long flags/options. Many users will prefer using instead the packages optparse or argparse which add extra features like automatically generated help option and usage, support for default values, positional argument support, etc.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (3 items)
Collapse this list.
  1. /usr/local/share/licenses/R-cran-getopt-1.21.1/catalog.mk
  2. /usr/local/share/licenses/R-cran-getopt-1.21.1/LICENSE
  3. /usr/local/share/licenses/R-cran-getopt-1.21.1/GPLv2
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • R-cran-getopt>0:devel/R-cran-getopt
To install the port: #
cd /usr/ports/devel/R-cran-getopt/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/R-cran-getopt
  • pkg install R-cran-getopt
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: R-cran-getopt
Flavors: there is no flavor information for this port. #
distinfo: #
TIMESTAMP = 1787345476 SHA256 (getopt_1.21.1.tar.gz) = 291b390500f153429500dee3e1196bb2792ce9320722408b6a0b95d9235b8da1 SIZE (getopt_1.21.1.tar.gz) = 27013

Packages (timestamps in pop-ups are UTC): #
R-cran-getopt
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest1.21.11.21.1-1.20.41.21.1
FreeBSD:14:quarterly1.21.11.21.1-1.20.41.21.1
FreeBSD:15:latest1.21.11.21.1n/a1.20.4n/a
FreeBSD:15:quarterly1.21.11.21.1n/a-n/a
FreeBSD:16:latest1.21.11.21.1n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. R : math/R
Runtime dependencies: #
  1. R : math/R
This port is required by: #
for Build #
  1. devel/R-cran-optparse
for Run #
  1. devel/R-cran-optparse

Configuration Options: #
No options to configure
Options name: #
devel_R-cran-getopt
USES: #
cran:auto-plist
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (14 items)
Collapse this list.
  1. http://cran.utstat.utoronto.ca/src/contrib/
  2. http://cran.utstat.utoronto.ca/src/contrib/Archive/getopt/
  3. https://cloud.r-project.org/src/contrib/
  4. https://cloud.r-project.org/src/contrib/Archive/getopt/
  5. https://cran.csiro.au/src/contrib/
  6. https://cran.csiro.au/src/contrib/Archive/getopt/
  7. https://cran.ma.imperial.ac.uk/src/contrib/
  8. https://cran.ma.imperial.ac.uk/src/contrib/Archive/getopt/
  9. https://mirror.las.iastate.edu/CRAN/src/contrib/
  10. https://mirror.las.iastate.edu/CRAN/src/contrib/Archive/getopt/
  11. https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/
  12. https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/Archive/getopt/
  13. https://stat.ethz.ch/CRAN/src/contrib/
  14. https://stat.ethz.ch/CRAN/src/contrib/Archive/getopt/
Collapse this list.

Number of commits found: 12 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.21.1
11 Oct 2026 16:25:47
commit hash: a5f310c868fc31ef11d6dd017fc0e6dcd9c2dacecommit hash: a5f310c868fc31ef11d6dd017fc0e6dcd9c2dacecommit hash: a5f310c868fc31ef11d6dd017fc0e6dcd9c2dacecommit hash: a5f310c868fc31ef11d6dd017fc0e6dcd9c2dace files touched by this commit
Christos Longros (longros) search for other commits by this committer
devel/R-cran-getopt, devel/R-cran-optparse: Take maintainership

Approved by:	jrm (mentor)
Differential Revision:	https://reviews.freebsd.org/D60613
1.21.1
08 Oct 2026 13:42:17
commit hash: 2414383046ebd2d1abafe9b901575b9c219fe33bcommit hash: 2414383046ebd2d1abafe9b901575b9c219fe33bcommit hash: 2414383046ebd2d1abafe9b901575b9c219fe33bcommit hash: 2414383046ebd2d1abafe9b901575b9c219fe33b files touched by this commit
Jason W. Bacon (jwb) search for other commits by this committer
Release numerous ports to ports@

I've been retired for a few years, and it is unlikely I will be doing
any more scientific computing support in the future.  I have continued
to maintain ~160 ports to the best of my ability, mainly as a favor to
the community, but I can no longer justify the time and effort
required.  I am therefore releasing most of my scientific ports, along
with a few others, to ports@.  I will continue to maintain ports I am
actively using and those for which I am upstream.
1.21.1
19 Sep 2026 01:59:22
commit hash: ce2322be51acbf69b62c0184368654549246c36bcommit hash: ce2322be51acbf69b62c0184368654549246c36bcommit hash: ce2322be51acbf69b62c0184368654549246c36bcommit hash: ce2322be51acbf69b62c0184368654549246c36b files touched by this commit
Devin Teske (dteske) search for other commits by this committer
Update R-cran-* WWW to modern URL

Old R-cran-* ports have https://cran.r-project.org/web/packages/${PORTNAME}

New R-cran-* ports have https://cran.r-project.org/package=${PORTNAME}

Replace all the old WWW URLs with new WWW URLs

Reviewed by:	fuz
Differential Revision:	https://reviews.freebsd.org/D59714
1.21.1
27 Aug 2026 11:16:41
commit hash: 3859635db7c8bc8a8591d9d9a1833106ae32af82commit hash: 3859635db7c8bc8a8591d9d9a1833106ae32af82commit hash: 3859635db7c8bc8a8591d9d9a1833106ae32af82commit hash: 3859635db7c8bc8a8591d9d9a1833106ae32af82 files touched by this commit
Jason W. Bacon (jwb) search for other commits by this committer
devel/R-cran-getopt: Update to 1.21.1

A few fixes and new functions
Changes: https://github.com/trevorld/r-getopt/releases

Reported by:    portscout
1.20.4
07 Oct 2023 13:32:24
commit hash: 726aa668267c09e5fccfcb215599e6ee542b82b7commit hash: 726aa668267c09e5fccfcb215599e6ee542b82b7commit hash: 726aa668267c09e5fccfcb215599e6ee542b82b7commit hash: 726aa668267c09e5fccfcb215599e6ee542b82b7 files touched by this commit
Jason W. Bacon (jwb) search for other commits by this committer
devel/R-cran-getopt: Update to 1.20.4

Documentation updates

Changes: devel/R-cran-getopt:

Reported by:    portscout
1.20.3_2
23 Apr 2023 09:09:58
commit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5b files touched by this commit
Gerald Pfeifer (gerald) search for other commits by this committer
*: Bump PORTREVISIONs for math/mpc update to 1.3.1
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
1.20.3_1
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1.20.3_1
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
1.20.3_1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
1.20.3_1
05 May 2020 16:07:54
Revision:534095Original commit files touched by this commit
jrm search for other commits by this committer
math/R: Update to version 4.0.0

Upstream changes:
https://stat.ethz.ch/pipermail/r-announce/2020/000653.html

Also bump PORTREVISION of ports that depend on math/R.

Submitted by:	wen (in part)
Reviewed by:	jwb, Rainer Hurling <rhurlin@gwdg.de>, thierry
Differential Revision:	https://reviews.freebsd.org/D24572
1.20.3
16 Nov 2019 16:50:42
Revision:517763Original commit files touched by this commit
jwb search for other commits by this committer
devel/R-cran-getopt: Accept short and long flags in Rscript

Package designed to be used with Rscript to write "#!" shebang scripts that
accept short and long flags/options. Many users will prefer using instead the
packages optparse or argparse which add extra features like automatically
generated help option and usage, support for default values, positional
argument support, etc.

Number of commits found: 12