{"id":17694179,"url":"https://github.com/vmagnin/gtkzero_fpm","last_synced_at":"2026-03-01T01:02:00.038Z","repository":{"id":139624264,"uuid":"373513550","full_name":"vmagnin/gtkzero_fpm","owner":"vmagnin","description":"We demonstrate how gtk-fortran can be used as a fpm (Fortran Package Manager) dependency.","archived":false,"fork":false,"pushed_at":"2024-05-08T09:05:14.000Z","size":151,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T09:43:31.896Z","etag":null,"topics":["fortran","fortran-package-manager","gtk","gtk-fortran","gui"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmagnin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-03T13:17:13.000Z","updated_at":"2024-05-08T10:45:33.000Z","dependencies_parsed_at":"2024-05-08T10:27:47.257Z","dependency_job_id":"4b878433-c519-456e-bbf2-33ad80f48d5c","html_url":"https://github.com/vmagnin/gtkzero_fpm","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"fee2ee5df9611281c191a51d9f118ae4248fd2be"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vmagnin/gtkzero_fpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmagnin%2Fgtkzero_fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmagnin%2Fgtkzero_fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmagnin%2Fgtkzero_fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmagnin%2Fgtkzero_fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmagnin","download_url":"https://codeload.github.com/vmagnin/gtkzero_fpm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmagnin%2Fgtkzero_fpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29957128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fortran","fortran-package-manager","gtk","gtk-fortran","gui"],"created_at":"2024-10-24T13:48:04.634Z","updated_at":"2026-03-01T01:02:00.004Z","avatar_url":"https://github.com/vmagnin.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using gtk-fortran as a fpm dependency\n\nWe demonstrate how the Fortran Package Manager [fpm](https://fpm.fortran-lang.org/) can be used to build and run a gtk-fortran program, using gtk-fortran as a fpm dependency. The present `gtkzero_fpm` example is based on the GTK 4 [`gtkzero_gapp` example](https://github.com/vmagnin/gtk-fortran/blob/gtk4/examples/gtkzero_gapp.f90) and just opens an empty GTK window.\n\n## Requirements\n\n- The GTK 4 development files are supposed to be installed on your system.\n- You need fpm,\n- and a modern Fortran compiler (\u003e= Fortran 2008).\n\n## The sources\n\nThe original `gtkzero_gapp.f90` has been divided in two files `main.f90` and `handlers.f90`. This is the tree of the project, before building:\n\n```bash\n├── app\n│   └── main.f90\n├── build\n├── fpm.toml\n├── LICENSE\n├── README.md\n├── src\n│   └── handlers.f90\n└── test\n    └── check.f90\n```\n\nThe `fpm.toml` manifest must contain a dependencies section with gtk-fortran:\n\n```toml\n[dependencies]\ngtk-fortran = { git = \"https://github.com/vmagnin/gtk-fortran.git\", branch = \"gtk4\" }\n```\n\n## Building and running\n\nThe project can be downloaded, built and run very simply:\n\n```bash\n$ git clone git@github.com:vmagnin/gtkzero_fpm.git\n$ cd gtkzero_fpm\n$ fpm run\n```\nYou should see on screen an empty GTK window with an \"hello world\" title.\n\n## License\n\nThis example is under MIT license. You can therefore use it to begin your own project, and just copy that license above the concerned code sections.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmagnin%2Fgtkzero_fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmagnin%2Fgtkzero_fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmagnin%2Fgtkzero_fpm/lists"}