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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/astyle | 3.6.18 |
| OpenBSD | devel/astyle | 3.5.2p2 |
| NetBSD | devel/astyle | 3.6.13 |
| DragonFly | devel/astyle | 3.4.10 |
| MidnightBSD | devel/astyle | 3.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.6.18 | 3.6.18 | 3.1_3 | 3.6.11 | 3.6.18 |
| FreeBSD:14:quarterly | 3.6.18 | 3.6.18 | n/a | 3.6.9 | 3.6.18 |
| FreeBSD:15:latest | 3.6.18 | 3.6.18 | n/a | 3.6.11 | 3.6.11 |
| FreeBSD:15:quarterly | 3.6.18 | 3.6.18 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.6.18 | 3.6.18 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 2
Configuration
Options name: devel_astyle
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| EXAMPLES | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| astyle-3.6.18.tar.bz2 | 226298 | d4fc433cfeacc952de295961bc8ae9eab722e08580baa6c1e8e7b39a7a2fbb48 |
Master sites 1
- SF/astyle/astyle/astyle%20${PORTVERSION:R}