BSD Ports

devel/astyle 3.6.18 FreeBSD

Source code indenter and formatter for C, C++, C#, and Java

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
b6de6bc136
License
MIT
Categories
devel, textproc
Package size
259.3 KiB, 1020.9 KiB installed

Description

Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective-C, C# and Java programming languages.

When indenting source code, we as programmers have a tendency to use both spaces and tab characters to create the wanted indentation. Moreover, some editors by default insert spaces instead of tabs when pressing the tab key. Other editors (Emacs for example) have the ability to "pretty up" lines by automatically setting up the white space before the code on the line, possibly inserting spaces in code that up to now used only tabs for indentation.

The NUMBER of spaces for each tab character in the source code can change between editors (unless the user sets up the number to his liking...). One of the standard problems programmers face when moving from one editor to another is that code containing both spaces and tabs, which was perfectly indented, suddenly becomes a mess to look at. Even if you as a programmer take care to ONLY use spaces or tabs, looking at other people's source code can still be problematic.

To address this problem, Artistic Style was created -- a filter written in C++ that automatically re-indents and re-formats C / C++ / Objective-C / C++/CLI / C# / Java source files. It can be used from a command line, or it can be incorporated as a library in another program.

In the other systems

SystemPortVersion
FreeBSDdevel/astyle3.6.18
OpenBSDdevel/astyle3.5.2p2
NetBSDdevel/astyle3.6.13
DragonFlydevel/astyle3.4.10
MidnightBSDdevel/astyle3.6.13

Install

Binary package:

pkg install astyle

From the ports tree:

cd /usr/ports/devel/astyle/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	astyle>0:devel/astyle

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.6.183.6.183.1_33.6.113.6.18
FreeBSD:14:quarterly3.6.183.6.18n/a3.6.93.6.18
FreeBSD:15:latest3.6.183.6.18n/a3.6.113.6.11
FreeBSD:15:quarterly3.6.183.6.18n/an/an/a
FreeBSD:16:latest3.6.183.6.18n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3

Configuration

Options name: devel_astyle

OptionDefaultDescription
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
USES
compiler:c++11-lang dos2unix gmake tar:bz2
Service scripts
none

Files

pkg-plist 35
  • bin/astyle
  • share/doc/astyle/astyle.html
  • share/doc/astyle/development.html
  • share/doc/astyle/favicon.ico
  • share/doc/astyle/index.html
  • share/doc/astyle/install.html
  • share/doc/astyle/links.html
  • share/doc/astyle/news.html
  • share/doc/astyle/newsArchives.html
  • share/doc/astyle/notes.html
  • share/doc/astyle/notesArchives.html
  • share/doc/astyle/scripts.html
  • share/doc/astyle/styles.css
  • share/doc/astyle/subversion.html
  • share/doc/astyle/vsinstall.html
  • share/examples/astyle/README.md
  • share/examples/astyle/allman.ini
  • share/examples/astyle/astyle.ini
  • share/examples/astyle/chromium.ini
  • share/examples/astyle/clang-chromium.yaml
  • share/examples/astyle/clang-google.yaml
  • share/examples/astyle/clang-llvm.yaml
  • share/examples/astyle/clang-mozilla.yaml
  • share/examples/astyle/clang-visualstudio.yaml
  • share/examples/astyle/clang-webkit.yaml
  • share/examples/astyle/gnu.ini
  • share/examples/astyle/google.ini
  • share/examples/astyle/horstmann.ini
  • share/examples/astyle/java.ini
  • share/examples/astyle/linux.ini
  • share/examples/astyle/llvm.ini
  • share/examples/astyle/mozilla.ini
  • share/examples/astyle/stroustrup.ini
  • share/examples/astyle/visualstudio.ini
  • share/examples/astyle/webkit.ini
distinfo 1
FileSizeSHA256
astyle-3.6.18.tar.bz2226298d4fc433cfeacc952de295961bc8ae9eab722e08580baa6c1e8e7b39a7a2fbb48
Master sites 1
  • SF/astyle/astyle/astyle%20${PORTVERSION:R}

Commit history 2

DateCommitCreditsLog message
b6de6bc136 Po-Chuan Hsieh devel/astyle: Update to 3.6.18
Changes: https://astyle.sourceforge.net/news.html https://astyle.sourceforge.net/notes.html
6e1cb6b6d0 Po-Chuan Hsieh devel/astyle: Update to 3.6.17
Changes: https://astyle.sourceforge.net/news.html https://astyle.sourceforge.net/notes.html